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
27 void setAutoScrollToBottomEnabled(bool _enabled);
28 bool isAutoScrollToBottomEnabled(void) const { return m_autoScrollToBottom; }
29
30 void scrollToBottom(void);
31
32 public Q_SLOTS:
33 void slotTextChanged(void);
34
35 private:
36 bool m_autoScrollToBottom;
37
38 };
39
40}
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:28
virtual QWidget * getQWidget(void) override
Returns a pointer to the root widget of this object.
Definition PlainTextEdit.h:25
Definition QWidgetInterface.h:18
Definition Connector.h:8