OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PlainTextEdit.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12// Qt header
13#include <QtWidgets/qplaintextedit.h>
14
15namespace ot {
16
17 class OT_WIDGETS_API_EXPORT PlainTextEdit : public QPlainTextEdit, public ot::QWidgetInterface {
18 Q_OBJECT
20 public:
21 PlainTextEdit(QWidget* _parent = (QWidget*)nullptr);
22 virtual ~PlainTextEdit();
23
25 virtual QWidget* getQWidget(void) override { return this; };
26 virtual const QWidget* getQWidget(void) const override { return this; };
27
28 void setAutoScrollToBottomEnabled(bool _enabled);
29 bool isAutoScrollToBottomEnabled(void) const { return m_autoScrollToBottom; }
30
31 void scrollToBottom(void);
32
33 public Q_SLOTS:
34 void slotTextChanged(void);
35
36 private:
37 bool m_autoScrollToBottom;
38
39 };
40
41}
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition PlainTextEdit.h:17
bool isAutoScrollToBottomEnabled(void) const
Definition PlainTextEdit.h:29
virtual QWidget * getQWidget(void) override
Returns a pointer to the root widget of this object.
Definition PlainTextEdit.h:25
virtual const QWidget * getQWidget(void) const override
Definition PlainTextEdit.h:26
Definition QWidgetInterface.h:18
Definition Connector.h:8