Added switch to enable native dialogs at build time

CONFIG+=use_native_dialogs
This commit is contained in:
hunbernd 2018-07-29 21:08:33 +02:00
parent 3822d277ad
commit 584b9039c9
5 changed files with 32 additions and 0 deletions

View file

@ -1487,7 +1487,11 @@ void ChatWidget::chooseFont()
{
bool ok;
//Use NULL as parent as with this QFontDialog don't take care of title nether options.
#ifdef NATIVEDIALOGS
QFont font = QFontDialog::getFont(&ok, currentFont, NULL, tr("Choose your font.") );
#else
QFont font = QFontDialog::getFont(&ok, currentFont, NULL, tr("Choose your font."),QFontDialog::DontUseNativeDialog);
#endif
if (ok) {
currentFont = font;
setFont();