comparison 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
comparison
equal deleted inserted replaced
1102:3d03aaeca6d4 1103:c4e3498e716f
639 line->setFrameShape(QFrame::HLine); 639 line->setFrameShape(QFrame::HLine);
640 line->setFrameShadow(QFrame::Sunken); 640 line->setFrameShadow(QFrame::Sunken);
641 updatesHeaderLayout->addWidget(line); 641 updatesHeaderLayout->addWidget(line);
642 642
643 updatesMainLayout->addLayout(updatesHeaderLayout); 643 updatesMainLayout->addLayout(updatesHeaderLayout);
644 /* Header 2: Details and update button */ 644
645 /* Central Header Details and update button. Part of the scroll area */
646 QScrollArea *centralScrollArea = new QScrollArea;
647 QVBoxLayout *updatesCenterLayout = new QVBoxLayout;
645 mUpdatesDetailsHeader = new QLabel(QString()); 648 mUpdatesDetailsHeader = new QLabel(QString());
646 649
647 QHBoxLayout *updateDateAndSearchButton = new QHBoxLayout; 650 QHBoxLayout *updateDateAndSearchButton = new QHBoxLayout;
648 mCertListVersion = 651 mCertListVersion =
649 new QLabel(QString()); 652 new QLabel(QString());
670 mUpdatesTip = 673 mUpdatesTip =
671 new QLabel(QString()); 674 new QLabel(QString());
672 mUpdatesTip->setWordWrap(true); 675 mUpdatesTip->setWordWrap(true);
673 676
674 // addWidget(*Widget, row, column, rowspan, colspan) 677 // addWidget(*Widget, row, column, rowspan, colspan)
675 updatesMainLayout->addWidget(mUpdatesDetailsHeader); 678 updatesCenterLayout->addWidget(mUpdatesDetailsHeader);
676 detailsLayout->addWidget(mLastUpdateCheck, 0, 0, 1, 1); 679 detailsLayout->addWidget(mLastUpdateCheck, 0, 0, 1, 1);
677 detailsLayout->addLayout(updateDateAndSearchButton, 0, 1, 1, 1); 680 detailsLayout->addLayout(updateDateAndSearchButton, 0, 1, 1, 1);
678 detailsLayout->addWidget(mCertListVersion, 1, 0, 1, 1); 681 detailsLayout->addWidget(mCertListVersion, 1, 0, 1, 1);
679 detailsLayout->addWidget(mCertListVersionContents, 1, 1, 1, 1); 682 detailsLayout->addWidget(mCertListVersionContents, 1, 1, 1, 1);
680 detailsLayout->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum), 2, 2, 1, 1); 683 detailsLayout->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum), 2, 2, 1, 1);
681 detailsLayout->setColumnStretch(2, 1); 684 detailsLayout->setColumnStretch(2, 1);
682 685
683 updatesMainLayout->addLayout(detailsLayout); 686 updatesCenterLayout->addLayout(detailsLayout);
684 687
685 updatesMainLayout->addItem(new QSpacerItem(100, 10)); 688 updatesCenterLayout->addItem(new QSpacerItem(100, 10));
686 updatesMainLayout->addWidget(mUpdatesTip); 689 updatesCenterLayout->addWidget(mUpdatesTip);
687 690
688 /* The central panels. */ 691 /* The central panels. */
689 QScrollArea *centralScrollArea = new QScrollArea;
690 QVBoxLayout *updatesCenterLayout = new QVBoxLayout;
691 QHBoxLayout *updatesNewLayout = new QHBoxLayout; 692 QHBoxLayout *updatesNewLayout = new QHBoxLayout;
692 QHBoxLayout *updatesRemoveLayout = new QHBoxLayout; 693 QHBoxLayout *updatesRemoveLayout = new QHBoxLayout;
693 QHBoxLayout *updatesManualLayout = new QHBoxLayout; 694 QHBoxLayout *updatesManualLayout = new QHBoxLayout;
694 mUpdatesNewCertificates = 695 mUpdatesNewCertificates =
695 new QLabel("<h3>" + 696 new QLabel("<h3>" +

http://wald.intevation.org/projects/trustbridge/