Mercurial > trustbridge
diff ui/mainwindow.cpp @ 1103:c4e3498e716f
(issue111) Move detailed header into the scrollarea
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 15 Sep 2014 14:00:14 +0200 |
parents | 3d03aaeca6d4 |
children | a7a72353d6d2 |
line wrap: on
line diff
--- a/ui/mainwindow.cpp Mon Sep 15 13:56:43 2014 +0200 +++ b/ui/mainwindow.cpp Mon Sep 15 14:00:14 2014 +0200 @@ -641,7 +641,10 @@ updatesHeaderLayout->addWidget(line); updatesMainLayout->addLayout(updatesHeaderLayout); - /* Header 2: Details and update button */ + + /* Central Header Details and update button. Part of the scroll area */ + QScrollArea *centralScrollArea = new QScrollArea; + QVBoxLayout *updatesCenterLayout = new QVBoxLayout; mUpdatesDetailsHeader = new QLabel(QString()); QHBoxLayout *updateDateAndSearchButton = new QHBoxLayout; @@ -672,7 +675,7 @@ mUpdatesTip->setWordWrap(true); // addWidget(*Widget, row, column, rowspan, colspan) - updatesMainLayout->addWidget(mUpdatesDetailsHeader); + updatesCenterLayout->addWidget(mUpdatesDetailsHeader); detailsLayout->addWidget(mLastUpdateCheck, 0, 0, 1, 1); detailsLayout->addLayout(updateDateAndSearchButton, 0, 1, 1, 1); detailsLayout->addWidget(mCertListVersion, 1, 0, 1, 1); @@ -680,14 +683,12 @@ detailsLayout->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum), 2, 2, 1, 1); detailsLayout->setColumnStretch(2, 1); - updatesMainLayout->addLayout(detailsLayout); + updatesCenterLayout->addLayout(detailsLayout); - updatesMainLayout->addItem(new QSpacerItem(100, 10)); - updatesMainLayout->addWidget(mUpdatesTip); + updatesCenterLayout->addItem(new QSpacerItem(100, 10)); + updatesCenterLayout->addWidget(mUpdatesTip); /* The central panels. */ - QScrollArea *centralScrollArea = new QScrollArea; - QVBoxLayout *updatesCenterLayout = new QVBoxLayout; QHBoxLayout *updatesNewLayout = new QHBoxLayout; QHBoxLayout *updatesRemoveLayout = new QHBoxLayout; QHBoxLayout *updatesManualLayout = new QHBoxLayout;