X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fnicklistwidget.cpp;h=a47cc6e45aed273c969e15a542892472e163b8c5;hb=8cece06596c290d69c1f32b7221c796437f5fabb;hp=d5af971b480e968c920204b5d6fdc72492642831;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b;p=quassel.git diff --git a/src/qtui/nicklistwidget.cpp b/src/qtui/nicklistwidget.cpp index d5af971b..a47cc6e4 100644 --- a/src/qtui/nicklistwidget.cpp +++ b/src/qtui/nicklistwidget.cpp @@ -84,6 +84,19 @@ void NickListWidget::showWidget(bool visible) } } +void NickListWidget::setVisible(bool visible) +{ + QWidget::setVisible(visible); + QDockWidget *dock_ = dock(); + if (!dock_) + return; + + if (visible) + dock_->show(); + else + dock_->close(); +} + void NickListWidget::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) {