- // THIS STUFF IS NEEDED FOR NICKLIST AUTOHIDE...
- // AS THIS BRINGS LOTS OF FUCKUPS WITH IT IT'S DEACTIVATED FOR NOW...
-
-// QAction *toggleView = toggleViewAction();
-// disconnect(toggleView, SIGNAL(triggered(bool)), this, 0);
-// toggleView->setChecked(QtUiSettings().value("ShowNickList", QVariant(true)).toBool());
-
-// // reconnecting the closebuttons clicked signal to the action
-// foreach(QAbstractButton *button, findChildren<QAbstractButton *>()) {
-// if(disconnect(button, SIGNAL(clicked()), this, SLOT(close())))
-// connect(button, SIGNAL(clicked()), toggleView, SLOT(trigger()));
-// }
+ // THIS STUFF IS NEEDED FOR NICKLIST AUTOHIDE...
+ // AS THIS BRINGS LOTS OF FUCKUPS WITH IT IT'S DEACTIVATED FOR NOW...
+
+ // QAction *toggleView = toggleViewAction();
+ // disconnect(toggleView, SIGNAL(triggered(bool)), this, 0);
+ // toggleView->setChecked(QtUiSettings().value("ShowNickList", QVariant(true)).toBool());
+
+ // // reconnecting the closebuttons clicked signal to the action
+ // foreach(QAbstractButton *button, findChildren<QAbstractButton *>()) {
+ // if(disconnect(button, SIGNAL(clicked()), this, SLOT(close())))
+ // connect(button, SIGNAL(clicked()), toggleView, SLOT(trigger()));
+ // }
+}
+
+void NickListDock::setLocked(bool locked)
+{
+ if (locked) {
+ setFeatures({});
+ }
+ else {
+ setFeatures(QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetFloatable);
+ }