X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fnicklistwidget.h;h=a4e5ecbbab62011a09ad05afdc62476ea2c7116f;hp=1b7253f7f7558bde9640414d734448e46ced78ce;hb=20745bd0cbae035b84913127dfec9e8433d1282d;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b diff --git a/src/qtui/nicklistwidget.h b/src/qtui/nicklistwidget.h index 1b7253f7..a4e5ecbb 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,22 +39,23 @@ class NickListWidget : public AbstractItemView Q_OBJECT public: - NickListWidget(QWidget *parent = 0); + NickListWidget(QWidget *parent = nullptr); public slots: void showWidget(bool visible); + void setVisible(bool visible) override; 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: void removeBuffer(BufferId bufferId); @@ -76,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); };