New question #284742 on qpdfview:
https://answers.launchpad.net/qpdfview/+question/284742
Hello,
I have a suggestions, which is quit easy but usefull. A shortcut to hide and
show the menubar for small displays. Is there a possibility to take into the
offical code?
Mainwindow.ccp:
void MainWindow::on_hideMenuBar_activated()
{
if(menuBar()->isHidden())
{
menuBar()->show();
return;
}
menuBar()->hide();
}
mainwindow.h:
void on_hideMenuBar_activated();
QShortcut* m_hideMenuBarShortcut;
mainwindow.cpp: (in createToolbars() ):
m_hideMenuBarShortcut = new QShortcut(QKeySequence(Qt::CTRL +
Qt::ALT+Qt::Key_R), this, SLOT(on_hideMenuBar_activated()));
for me it does not work only with Qt::ALT but I don't know why.
Martin
--
You received this question notification because your team qpdfview is an
answer contact for qpdfview.
--
Mailing list: https://launchpad.net/~qpdfview
Post to : [email protected]
Unsubscribe : https://launchpad.net/~qpdfview
More help : https://help.launchpad.net/ListHelp