qt: Fix toolbar hiding menu appearing on KDE when right-clicked on an empty space of the main menu bar
This commit is contained in:
@@ -419,6 +419,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ui->toolBar->setIconSize(QSize(16 * screen()->devicePixelRatio(), 16 * screen()->devicePixelRatio()));
|
ui->toolBar->setIconSize(QSize(16 * screen()->devicePixelRatio(), 16 * screen()->devicePixelRatio()));
|
||||||
#endif
|
#endif
|
||||||
|
setContextMenuPolicy(Qt::PreventContextMenu);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::closeEvent(QCloseEvent *event) {
|
void MainWindow::closeEvent(QCloseEvent *event) {
|
||||||
|
Reference in New Issue
Block a user