X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.cpp;h=22d55c21be4d72c80e22c98e798ddda29c99d620;hp=f5db3e29c25b4ee8777fd4c5a333d02cae9bf3d3;hb=HEAD;hpb=47b54cd3ad35201ff2ab9ef6bfdba83fc086558d diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index f5db3e29..22d55c21 100644 --- a/src/uisupport/bufferview.cpp +++ b/src/uisupport/bufferview.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2020 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -44,8 +44,8 @@ /***************************************** * The TreeView showing the Buffers *****************************************/ -// Please be carefull when reimplementing methods which are used to inform the view about changes to the data -// to be on the safe side: call QTreeView's method aswell (or TreeViewTouch's) +// Please be careful when reimplementing methods which are used to inform the view about changes to the data +// to be on the safe side: call QTreeView's method as well (or TreeViewTouch's) BufferView::BufferView(QWidget* parent) : TreeViewTouch(parent) { @@ -728,7 +728,7 @@ BufferViewDock::BufferViewDock(BufferViewConfig* config, QWidget* parent) void BufferViewDock::setLocked(bool locked) { if (locked) { - setFeatures(nullptr); + setFeatures({}); } else { setFeatures(QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetFloatable);