summaryrefslogtreecommitdiff
path: root/ui/qt/preference_editor_frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/preference_editor_frame.cpp')
-rw-r--r--ui/qt/preference_editor_frame.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/qt/preference_editor_frame.cpp b/ui/qt/preference_editor_frame.cpp
index 6b193e36c0..6999f7273c 100644
--- a/ui/qt/preference_editor_frame.cpp
+++ b/ui/qt/preference_editor_frame.cpp
@@ -55,6 +55,12 @@ PreferenceEditorFrame::PreferenceEditorFrame(QWidget *parent) :
new_range_(NULL)
{
ui->setupUi(this);
+
+#ifdef Q_OS_MAC
+ foreach (QWidget *w, findChildren<QWidget *>()) {
+ w->setAttribute(Qt::WA_MacSmallSize, true);
+ }
+#endif
}
PreferenceEditorFrame::~PreferenceEditorFrame()
@@ -72,10 +78,10 @@ void PreferenceEditorFrame::editPreference(preference *pref, pref_module *module
return;
}
- ui->modulePreferencesToolButton->setText(tr("Open %1 preferences").arg(module_->title));
+ ui->modulePreferencesToolButton->setText(tr("Open %1 preferences…").arg(module_->title));
pref_stash(pref_, NULL);
- ui->preferenceTitleLabel->setText(pref->title);
+ ui->preferenceTitleLabel->setText(QString("%1:").arg(pref->title));
// Convert the pref description from plain text to rich text.
QString description;