Added logic to allow resizing of Qt Family Keyboard Dialog to minimum size via GUI

This commit is contained in:
mjbudd77 2022-03-06 22:02:19 -05:00
parent 3acbdc1c5a
commit 2b26c041d5
1 changed files with 10 additions and 0 deletions

View File

@ -830,6 +830,14 @@ QMenuBar *FKBConfigDialog::buildMenuBar(void)
viewMenu->addAction(act);
// View -> Shrink Window to Minimum Size
act = new QAction(tr("Shrink Window to Minimum Size"), this);
//act->setShortcut(QKeySequence::Close);
act->setStatusTip(tr("Shrink Window to Minimum Size"));
connect(act, SIGNAL(triggered(void)), this, SLOT(keyTreeResizeDone(void)) );
viewMenu->addAction(act);
return menuBar;
}
//*********************************************************************************
@ -847,6 +855,8 @@ void FKBConfigDialog::openFontDialog(void)
//printf("Font Changed to: '%s'\n", font.toString().toStdString().c_str() );
g_config->setOption("SDL.FamilyKeyboardFont", selFont.toString().toStdString().c_str() );
QTimer::singleShot( 100, this, SLOT(keyTreeResizeDone(void)) );
}
}
//----------------------------------------------------------------------------