mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-30 17:17:21 -04:00
Added switch to enable native dialogs at build time
CONFIG+=use_native_dialogs
This commit is contained in:
parent
3822d277ad
commit
584b9039c9
5 changed files with 32 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue