X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fverticaldock.h;h=9350abd39ece78c96765392b52932d78b1e34a49;hp=ba616ff97d308cc121761844406159e9117f77fb;hb=e38846f054ad1766f2e91992a57bbaffd33c7c06;hpb=25eb89768427a8c62f0ea776d05407db3aec2f97 diff --git a/src/qtui/verticaldock.h b/src/qtui/verticaldock.h index ba616ff9..9350abd3 100644 --- a/src/qtui/verticaldock.h +++ b/src/qtui/verticaldock.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005/06 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef VERTICALDOCKTITLE_H @@ -24,44 +24,46 @@ #include #include -class VerticalDockTitle : public QWidget { - Q_OBJECT +class VerticalDockTitle : public QWidget +{ + Q_OBJECT public: - VerticalDockTitle(QDockWidget *parent); + VerticalDockTitle(QDockWidget* parent); - virtual QSize sizeHint() const; - virtual QSize minimumSizeHint() const; - void show(bool show_); + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + void show(bool show_); protected: - virtual void paintEvent(QPaintEvent *event); + void paintEvent(QPaintEvent* event) override; private: - bool _show; + bool _show; }; -class EmptyDockTitle : public QWidget { - Q_OBJECT +class EmptyDockTitle : public QWidget +{ + Q_OBJECT public: - inline EmptyDockTitle(QDockWidget *parent) : QWidget(parent) {} + inline EmptyDockTitle(QDockWidget* parent) + : QWidget(parent) + {} - inline virtual QSize sizeHint() const { return QSize(0,0); } + inline QSize sizeHint() const override { return {0, 0}; } }; - -class VerticalDock : public QDockWidget { - Q_OBJECT +class VerticalDock : public QDockWidget +{ + Q_OBJECT public: - VerticalDock(const QString &title, QWidget *parent = 0, Qt::WindowFlags flags = 0); - VerticalDock(QWidget *parent = 0, Qt::WindowFlags flags = 0); + VerticalDock(const QString& title, QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr); + VerticalDock(QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr); - void showTitle(bool show); - void setDefaultTitleWidget(); + void showTitle(bool show); + void setDefaultTitleWidget(); }; - -#endif // VERTICALDOCKTITLE_H - +#endif // VERTICALDOCKTITLE_H