Make profile menu scrollable

This commit is contained in:
Kenneth Chew 2022-05-09 03:20:53 -04:00
parent f7f39854f8
commit 288e7bc9c5
No known key found for this signature in database
GPG Key ID: F17D3E14A07739DA

View File

@ -950,6 +950,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow
ui->mainToolBar->addWidget(spacer); ui->mainToolBar->addWidget(spacer);
accountMenu = new QMenu(this); 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(); repopulateAccountsMenu();