From c616c6f1cb2b6e27e982d570dc7fa594e87da5d6 Mon Sep 17 00:00:00 2001 From: Lars Bisballe Jensen Date: Mon, 7 Nov 2011 12:35:17 +0100 Subject: Refined the layout a bit to accomodate a long list of templates. To ensure you don't need to scroll unless you have A LOT of templates on the list --- client/template.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client/template.cc') diff --git a/client/template.cc b/client/template.cc index a5c4715..271f752 100644 --- a/client/template.cc +++ b/client/template.cc @@ -38,7 +38,7 @@ Template::Template(NetCom &n) QVBoxLayout *l = new QVBoxLayout(); wdg->setLayout(l); - wdg->setContentsMargins(50, 50, 50, 50); + wdg->setContentsMargins(50, 0, 0, 0); l->addStretch(); @@ -49,7 +49,6 @@ Template::Template(NetCom &n) templ->setFont(font); l->addWidget(templ); - l->addStretch(); QPushButton *btn = new QPushButton(tr("Open")); btn->setIcon(QIcon(":icons/open.png")); -- cgit v1.2.3 From 3d5fcad258dd3360df5e099c65bf8e3e599cb35e Mon Sep 17 00:00:00 2001 From: Lars Bisballe Jensen Date: Mon, 7 Nov 2011 12:38:38 +0100 Subject: Refined the layout a bit, added 10 px spacing between label and button --- client/template.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'client/template.cc') diff --git a/client/template.cc b/client/template.cc index 271f752..b3b1d5b 100644 --- a/client/template.cc +++ b/client/template.cc @@ -49,6 +49,7 @@ Template::Template(NetCom &n) templ->setFont(font); l->addWidget(templ); + l->addSpacing(10); QPushButton *btn = new QPushButton(tr("Open")); btn->setIcon(QIcon(":icons/open.png")); -- cgit v1.2.3