X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fpreviewbufferview.h;h=178ebc18b5fd9c9f0dd68244b9b3f2c5838781a5;hp=cd741e7e8de613f83f0108bce2fb7ce98270a94a;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=3e8cae7c0724d878ef0e7361d709711750164473 diff --git a/src/qtui/settingspages/previewbufferview.h b/src/qtui/settingspages/previewbufferview.h index cd741e7e..178ebc18 100644 --- a/src/qtui/settingspages/previewbufferview.h +++ b/src/qtui/settingspages/previewbufferview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-2018 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 PREVIEWBUFFERVIEW_H @@ -23,15 +23,18 @@ #include "bufferview.h" -class PreviewBufferView : public BufferView { - Q_OBJECT +class PreviewBufferView : public BufferView +{ + Q_OBJECT public: - PreviewBufferView(QWidget *parent = 0) : BufferView(parent) {} + PreviewBufferView(QWidget* parent = nullptr) + : BufferView(parent) + {} protected: - virtual void keyPressEvent(QKeyEvent *event) { QTreeView::keyPressEvent(event); } - virtual void contextMenuEvent(QContextMenuEvent *) {} + void keyPressEvent(QKeyEvent* event) override { QTreeView::keyPressEvent(event); } + void contextMenuEvent(QContextMenuEvent*) override {} }; -#endif //PREVIEWBUFFERVIEW_H +#endif // PREVIEWBUFFERVIEW_H