X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fnicklistwidget.h;h=97ae4a0cac8f4d468c2da9e580ff4367755d8ef8;hb=f9efdde7f3a6004af8f834c409cfa6ae1d877692;hp=84fc432504eaa4c2f6619927b3dddaa1d24ecadb;hpb=1b09aae7fe4eb3b560f87d3b1c1698e6bc91257b;p=quassel.git diff --git a/src/qtui/nicklistwidget.h b/src/qtui/nicklistwidget.h index 84fc4325..97ae4a0c 100644 --- a/src/qtui/nicklistwidget.h +++ b/src/qtui/nicklistwidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 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 * @@ -39,7 +39,7 @@ class NickListWidget : public AbstractItemView Q_OBJECT public: - NickListWidget(QWidget *parent = 0); + NickListWidget(QWidget *parent = nullptr); public slots: void showWidget(bool visible); @@ -49,17 +49,17 @@ signals: void nickSelectionChanged(const QModelIndexList &); protected: - virtual QSize sizeHint() const; - virtual void hideEvent(QHideEvent *); - virtual void showEvent(QShowEvent *); + QSize sizeHint() const override; + void hideEvent(QHideEvent *) override; + void showEvent(QShowEvent *) override; protected slots: - virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); - virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end); + void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override; + void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override; -private slots: +private: void removeBuffer(BufferId bufferId); - void nickSelectionChanged(); + void onNickSelectionChanged(); private: Ui::NickListWidget ui; @@ -77,9 +77,11 @@ class NickListDock : public QDockWidget Q_OBJECT public: - NickListDock(const QString &title, QWidget *parent = 0); + NickListDock(const QString &title, QWidget *parent = nullptr); // ~NickListDock(); + void setLocked(bool locked); + // virtual bool event(QEvent *event); };