summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-30 12:23:09 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-30 12:51:47 (GMT)
commit5aefb383447aaca7525302ec43e8cffc047f806c (patch)
treee328b2d6bbf88754a0ff9ddf705d78db87287a5c
parent324a34abf2a97b3db31b30263b0c58c7a9f17400 (diff)
Avoid to hide label when label uses wrapword settings
-rw-r--r--resources/contacts/settingsdialog.cpp3
-rw-r--r--resources/vcarddir/dirsettingsdialog.cpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/resources/contacts/settingsdialog.cpp b/resources/contacts/settingsdialog.cpp
index 49f478f..501ed2a 100644
--- a/resources/contacts/settingsdialog.cpp
+++ b/resources/contacts/settingsdialog.cpp
@@ -45,6 +45,9 @@ SettingsDialog::SettingsDialog(ContactsResourceSettings *settings, WId windowId)
setWindowIcon(QIcon::fromTheme(QStringLiteral("text-directory")));
ui.kcfg_Path->setMode(KFile::LocalOnly | KFile::Directory);
+ ui.label_3->setMinimumSize(ui.label_3->sizeHint());
+ ui.label_2->setMinimumSize(ui.label_2->sizeHint());
+
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
mOkButton = buttonBox->button(QDialogButtonBox::Ok);
mOkButton->setDefault(true);
diff --git a/resources/vcarddir/dirsettingsdialog.cpp b/resources/vcarddir/dirsettingsdialog.cpp
index b8a5ba1..36280d9 100644
--- a/resources/vcarddir/dirsettingsdialog.cpp
+++ b/resources/vcarddir/dirsettingsdialog.cpp
@@ -59,7 +59,8 @@ SettingsDialog::SettingsDialog(WId windowId)
connect(ui.kcfg_ReadOnly, &QCheckBox::toggled, this, &SettingsDialog::validate);
QTimer::singleShot(0, this, &SettingsDialog::validate);
-
+ ui.label_2->setMinimumSize(ui.label_2->sizeHint());
+ ui.label_3->setMinimumSize(ui.label_3->sizeHint());
ui.kcfg_Path->setUrl(QUrl::fromLocalFile(Settings::self()->path()));
ui.kcfg_AutosaveInterval->setSuffix(ki18np(" minute", " minutes"));
mManager = new KConfigDialogManager(this, Settings::self());