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

@ -415,7 +415,11 @@ ChatPage::load()
void ChatPage::on_pushButtonChangeChatFont_clicked()
{
bool ok;
#ifdef NATIVEDIALOGS
QFont font = QFontDialog::getFont(&ok, fontTempChat, this, tr("Choose your default font for Chat.") );
#else
QFont font = QFontDialog::getFont(&ok, fontTempChat, this, tr("Choose your default font for Chat."),QFontDialog::DontUseNativeDialog);
#endif
if (ok) {
fontTempChat = font;
// using fontTempChat.rawname() does not always work!