diff options
| author | 2016-04-29 23:57:30 +0100 | |
|---|---|---|
| committer | 2016-04-29 23:57:48 +0100 | |
| commit | 690dd7a33ddc90678367d73adf313533536e10f2 (patch) | |
| tree | 2276fe7c384ebbc222b40a19c536d5c3c5606ce8 /src/modules/term/TermWidget.h | |
| parent | Add config for clang-format. (diff) | |
| download | KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.tar.gz KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.tar.bz2 KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.zip | |
Apply clang-format
Diffstat (limited to 'src/modules/term/TermWidget.h')
| -rw-r--r-- | src/modules/term/TermWidget.h | 95 |
1 files changed, 49 insertions, 46 deletions
diff --git a/src/modules/term/TermWidget.h b/src/modules/term/TermWidget.h index f1c2b3851..78d1b89c4 100644 --- a/src/modules/term/TermWidget.h +++ b/src/modules/term/TermWidget.h @@ -27,57 +27,60 @@ #include "kvi_settings.h" #ifdef COMPILE_KDE4_SUPPORT - #include <QFrame> - #include <QLabel> - #include <QPushButton> - #include "KviTalHBox.h" +#include <QFrame> +#include <QLabel> +#include <QPushButton> +#include "KviTalHBox.h" - #include "kparts/part.h" +#include "kparts/part.h" - class KviMainWindow; +class KviMainWindow; - class TermWidget : public QFrame - { - Q_OBJECT - Q_PROPERTY( int KviProperty_ChildFocusOwner READ dummy ) - public: - TermWidget(QWidget * par,bool bIsStandalone = false); - ~TermWidget(); - private: - KviTalHBox * m_pHBox; - QLabel * m_pTitleLabel; - QPushButton * m_pCloseButton; - KParts::Part * m_pKonsolePart; - bool m_bIsStandalone; - QWidget * m_pKonsoleWidget; - protected: - virtual void resizeEvent(QResizeEvent *e); - protected slots: - void closeClicked(); - void changeTitle(int i,const QString& str); - void notifySize(int,int); - void changeColumns(int); - public: - QWidget * konsoleWidget(){ return m_pKonsoleWidget ? m_pKonsoleWidget : this; }; - virtual QSize sizeHint() const; - int dummy() const { return 0; }; - protected slots: - void konsoleDestroyed(); - void autoClose(); - }; +class TermWidget : public QFrame +{ + Q_OBJECT + Q_PROPERTY(int KviProperty_ChildFocusOwner READ dummy) +public: + TermWidget(QWidget * par, bool bIsStandalone = false); + ~TermWidget(); + +private: + KviTalHBox * m_pHBox; + QLabel * m_pTitleLabel; + QPushButton * m_pCloseButton; + KParts::Part * m_pKonsolePart; + bool m_bIsStandalone; + QWidget * m_pKonsoleWidget; + +protected: + virtual void resizeEvent(QResizeEvent * e); +protected slots: + void closeClicked(); + void changeTitle(int i, const QString & str); + void notifySize(int, int); + void changeColumns(int); + +public: + QWidget * konsoleWidget() { return m_pKonsoleWidget ? m_pKonsoleWidget : this; }; + virtual QSize sizeHint() const; + int dummy() const { return 0; }; +protected slots: + void konsoleDestroyed(); + void autoClose(); +}; #else - // Dummy, to make moc happy - #include <QObject> - - class TermWidget : public QObject +// Dummy, to make moc happy +#include <QObject> + +class TermWidget : public QObject +{ + Q_OBJECT +public: + TermWidget() + : QObject() { - Q_OBJECT - public: - TermWidget() - : QObject() - { - } - }; + } +}; #endif #endif //_HELPWIDGET_H_ |
