Message info
 
To:kde-commits@kde.org From:Daniele E. Domenichelli Subject:[ktp-accounts-kcm] src: Resize dialog and add stretch between label and icon Date:Fri, 30 Mar 2012 17:58:08 +0200 (CEST)
 

Git commit 5fb2ceeb81416b62813d57f723ed60875c4a91bc by Daniele E. Domenichelli.
Committed on 27/02/2012 at 23:57.
Pushed by ddomenichelli into branch 'master'.

Resize dialog and add stretch between label and icon

M +2 -1 src/edit-display-name-button.cpp

http://commits.kde.org/telepathy-accounts-kcm/5fb2ceeb81416b62813d57f723ed60875c4a91bc

diff --git a/src/edit-display-name-button.cpp b/src/edit-display-name-button.cpp
index eb3e3f6..4627895 100644
--- a/src/edit-display-name-button.cpp
+++ b/src/edit-display-name-button.cpp
@@ -63,7 +63,7 @@ EditDisplayNameDialog::EditDisplayNameDialog(Tp::AccountPtr account,
setCaption(i18n("Edit Display Name"));
setButtons( KDialog::Ok | KDialog::Cancel );
setWindowIcon(KIcon(QLatin1String("telepathy-kde")));
- setFixedSize(400, 150);
+ setFixedSize(250, 150);
enableButtonOk(false);

QVBoxLayout *mainLayout = new QVBoxLayout(this);
@@ -82,6 +82,7 @@ EditDisplayNameDialog::EditDisplayNameDialog(Tp::AccountPtr account,
icon->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);

topLayout->addWidget(topLabel);
+ topLayout->addStretch();
topLayout->addWidget(icon);

mainLayout->addLayout(topLayout);