/***************************************************************************
- * Copyright (C) 2005-09 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 *
* 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 NICKLISTWIDGET_H_
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);
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);
};