# HG changeset patch # User Andre Heinecke # Date 1410782414 -7200 # Node ID c4e3498e716f51d2537efa0da639ca907837f8a4 # Parent 3d03aaeca6d4eed6d8630d782bee5627a7257e7b (issue111) Move detailed header into the scrollarea diff -r 3d03aaeca6d4 -r c4e3498e716f ui/mainwindow.cpp --- 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;