diff options
author | Tobias Markmann <tm@ayena.de> | 2018-05-09 13:23:40 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2018-05-09 15:44:38 (GMT) |
commit | 8fab33012e5ac7c03ab00ec30118dcb2c5218051 (patch) | |
tree | b9288b404ad40f0759c05848538b4a89bd51af39 /Swift/QtUI/QtMainWindow.cpp | |
parent | b616c9986a45b5090f23e2cb4b561eda044f676b (diff) | |
download | swift-8fab33012e5ac7c03ab00ec30118dcb2c5218051.zip swift-8fab33012e5ac7c03ab00ec30118dcb2c5218051.tar.bz2 |
Remove ability to hide rosters via QSplitter
Previously, you could move the QSplitter slider all to one
side and thereby hide the account and MUC rosters. However,
these splitters can be hard to get back their previous
positions.
Test-Information:
Verified in Swift that you can not hide/collapse the roster
in the UI anymore on macOS 10.13.4.
Change-Id: If6622684feb47e5b4172405fe15c3a90178d7b9d
Diffstat (limited to 'Swift/QtUI/QtMainWindow.cpp')
-rw-r--r-- | Swift/QtUI/QtMainWindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtMainWindow.cpp b/Swift/QtUI/QtMainWindow.cpp index cd38259..7eec8d1 100644 --- a/Swift/QtUI/QtMainWindow.cpp +++ b/Swift/QtUI/QtMainWindow.cpp @@ -78,6 +78,10 @@ QtMainWindow::QtMainWindow(Chattables& chattables, SettingsProvider* settings, U overviewScroll->setWidgetResizable(true); overviewScroll->setWidget(chatOverview_); tabs_->addTab(overviewScroll, tr("&All")); + + // When used with QSplitter and setChildrenCollapsible(false), the following prevents + // this widget to be hidden, i.e. resized to zero width. + chatOverview_->setMinimumWidth(20); } contactsTabWidget_ = new QWidget(this); |