disable context menu on QMainWindow to prevent hiding the toolbar

Signed-off-by: Le Tan <tamlokveer@gmail.com>
This commit is contained in:
Le Tan 2016-12-10 11:28:10 +08:00
parent edca922f5e
commit 67c1f69a5b

View File

@ -27,6 +27,9 @@ VMainWindow::VMainWindow(QWidget *parent)
initMenuBar(); initMenuBar();
initDockWindows(); initDockWindows();
initAvatar(); initAvatar();
setContextMenuPolicy(Qt::NoContextMenu);
restoreStateAndGeometry(); restoreStateAndGeometry();
notebookSelector->update(); notebookSelector->update();