mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-08 14:22:31 -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
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue