diff options
author | Kenneth Chew <kenneth.c0@protonmail.com> | 2022-05-09 03:20:53 -0400 |
---|---|---|
committer | Kenneth Chew <kenneth.c0@protonmail.com> | 2022-05-09 15:37:56 -0400 |
commit | 288e7bc9c5e1358d1ad78961cd1a771e6292014e (patch) | |
tree | f53d90a2c38adccfd8846cb71aa5d87bd1e690f0 /launcher/ui | |
parent | f7f39854f83002f528c6f05a67f6a3b0500a8038 (diff) | |
download | PrismLauncher-288e7bc9c5e1358d1ad78961cd1a771e6292014e.tar.gz PrismLauncher-288e7bc9c5e1358d1ad78961cd1a771e6292014e.tar.bz2 PrismLauncher-288e7bc9c5e1358d1ad78961cd1a771e6292014e.zip |
Make profile menu scrollable
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/MainWindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index f34cf1ab..9e1074f8 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -950,6 +950,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow ui->mainToolBar->addWidget(spacer); accountMenu = new QMenu(this); + // Use undocumented property... https://stackoverflow.com/questions/7121718/create-a-scrollbar-in-a-submenu-qt + accountMenu->setStyleSheet("QMenu { menu-scrollable: 1; }"); repopulateAccountsMenu(); |