From eade2969fe4ad6e5ac543da868eedf285fa113ee Mon Sep 17 00:00:00 2001 From: novist Date: Wed, 21 Jan 2015 13:08:54 +0200 Subject: [PATCH] General settings UI cleanup --- src/widget/form/settings/generalform.cpp | 1 - src/widget/form/settings/generalsettings.ui | 435 +++++++++++--------- 2 files changed, 249 insertions(+), 187 deletions(-) diff --git a/src/widget/form/settings/generalform.cpp b/src/widget/form/settings/generalform.cpp index f70704387..0bbe26e4c 100644 --- a/src/widget/form/settings/generalform.cpp +++ b/src/widget/form/settings/generalform.cpp @@ -45,7 +45,6 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) : bodyUI->checkUpdates->setVisible(AUTOUPDATE_ENABLED); bodyUI->checkUpdates->setChecked(Settings::getInstance().getCheckUpdates()); - bodyUI->trayBehavior->addStretch(); bodyUI->cbEnableIPv6->setChecked(Settings::getInstance().getEnableIPv6()); for (int i = 0; i < langs.size(); i++) diff --git a/src/widget/form/settings/generalsettings.ui b/src/widget/form/settings/generalsettings.ui index 478b512ec..0e8855347 100644 --- a/src/widget/form/settings/generalsettings.ui +++ b/src/widget/form/settings/generalsettings.ui @@ -6,7 +6,7 @@ 0 0 - 545 + 573 644 @@ -34,16 +34,16 @@ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - + 0 - -173 - 511 - 797 + 0 + 540 + 779 - + 9 @@ -57,7 +57,7 @@ - + @@ -81,27 +81,40 @@ + + + + Save settings to the working directory instead of the usual conf dir + + + Make Tox portable + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + - - - - Save settings to the working directory instead of the usual conf dir - - - Make Tox portable - - - System tray - - - QFormLayout::AllNonFixedFieldsGrow - + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + @@ -109,49 +122,6 @@ - - - - - - - 0 - 0 - - - - Start in tray - - - - - - - - 0 - 0 - - - - Close to tray - - - - - - - - 0 - 0 - - - - Minimize to tray - - - - - @@ -159,16 +129,61 @@ + + + + + 0 + 0 + + + + Start in tray + + + + + + + + 0 + 0 + + + + Close to tray + + + + + + + + 0 + 0 + + + + Minimize to tray + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + - - - - Show contacts' status changes - - - @@ -177,42 +192,41 @@ - - - Focus qTox when a message is received + + + 0 - - - - - - Faux offline messaging - - - - - - - Compact contact list (restart required) - - - - - - - - - Provided in minutes - - - Qt::LeftToRight - + + - Auto away after (0 to disable) + Save files in - + + + + You can set this on a per-friend basis by right clicking them. + + + Autoaccept files + + + + + + + + 0 + 0 + + + + PushButton + + + + @@ -237,46 +251,85 @@ - - - - - - + + - You can set this on a per-friend basis by right clicking them. + Provided in minutes + + + Qt::LeftToRight - Autoaccept files + Auto away after (0 to disable) + + + + + + + + + Chat + + + + + + Show contacts' status changes + + + + + + + On new message: + + + + + + + 0 + - - - - - Save files in - - - - - - - - 0 - 0 - - - - PushButton - - - - + + + Focus window + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Faux offline messaging + + + + + + + Compact contact list (restart required) + + + @@ -485,32 +538,76 @@ 9 - - - Enable IPv6 (recommended) - - - - - - - Disabling this allows, e.g., toxing over Tor. It adds load to the Tox network however, so uncheck only when necessary. - - - Enable UDP (recommended) - - - - - + - + + + Disabling this allows, e.g., toxing over Tor. It adds load to the Tox network however, so uncheck only when necessary. + + + Enable UDP (recommended) + + + + + + + Enable IPv6 (recommended) + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + 0 + + + 65535 + + + + + Proxy type - + + + + Address + + + + + + + + + + Port + + + + @@ -537,40 +634,6 @@ - - - - 6 - - - - - Address - - - - - - - - - - Port - - - - - - - 0 - - - 65535 - - - - -