summaryrefslogtreecommitdiff
path: root/client/Dialog.cpp
diff options
context:
space:
mode:
authorAlex Borisov <borisov.alexandr@rambler.ru>2011-12-04 23:12:00 +0200
committerAlex Borisov <borisov.alexandr@rambler.ru>2011-12-04 23:12:00 +0200
commit7648ef9f419974ddd5fccaeaa9bf06b9a5e660b3 (patch)
tree167e684dd3e04561a5175645469ce537621e6d88 /client/Dialog.cpp
parentdddb90056c37c9d094255ed8af956b4c049b41c9 (diff)
FIX static proxy button's content alignment
Diffstat (limited to 'client/Dialog.cpp')
-rw-r--r--client/Dialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/Dialog.cpp b/client/Dialog.cpp
index 3df6c19..4ce48be 100644
--- a/client/Dialog.cpp
+++ b/client/Dialog.cpp
@@ -75,8 +75,12 @@ ProxyDialog::ProxyDialog(QWidget *parent): QDialog(parent)
QLabel *btnLabel = new QLabel(btnStr);
btnLabel->setAttribute(Qt::WA_TransparentForMouseEvents);
QHBoxLayout *btnLayout = new QHBoxLayout;
+ // insert spacers at the beginning and
+ // the end to center-align button content
+ btnLayout->addStretch();
btnLayout->addWidget(btnLabel);
btnLayout->setSizeConstraint(QLayout::SetMinimumSize);
+ btnLayout->addStretch();
QPushButton *btn = new QPushButton();
btn->setObjectName("bottomBtn");
btn->setCheckable(true);