diff options
author | txtsd <thexerothermicsclerodermoid@gmail.com> | 2022-05-17 12:14:34 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 12:14:34 +0530 |
commit | 9b387d73e55c0ed793224a6d4d5ab7aa3f0b0406 (patch) | |
tree | 5b106a9b1dd98153a15ae6ce3b6e31844370e771 /launcher/ui | |
parent | c02a6780b02144e6c0c9b8351e051c683fb321bb (diff) | |
parent | 29a53d7e95508f6c7cd6c1945d2100cca98533c1 (diff) | |
download | PrismLauncher-9b387d73e55c0ed793224a6d4d5ab7aa3f0b0406.tar.gz PrismLauncher-9b387d73e55c0ed793224a6d4d5ab7aa3f0b0406.tar.bz2 PrismLauncher-9b387d73e55c0ed793224a6d4d5ab7aa3f0b0406.zip |
Merge pull request #529 from flowln/vertical_toolbar
Set right orientation for instance toolbar when moving it around
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/MainWindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index ca345b1f..f016dc76 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -749,6 +749,9 @@ public: // disabled until we have an instance selected instanceToolBar->setEnabled(false); instanceToolBar->setMovable(true); + // Qt doesn't like vertical moving toolbars, so we have to force them... + // See https://github.com/PolyMC/PolyMC/issues/493 + connect(instanceToolBar, &QToolBar::orientationChanged, [=](Qt::Orientation){ instanceToolBar->setOrientation(Qt::Vertical); }); instanceToolBar->setAllowedAreas(Qt::LeftToolBarArea | Qt::RightToolBarArea); instanceToolBar->setToolButtonStyle(Qt::ToolButtonTextOnly); instanceToolBar->setFloatable(false); |