]> sigrok.org Git - pulseview.git/commitdiff
about: Layout change to use space more efficiently.
authorUwe Hermann <redacted>
Sun, 19 Aug 2018 16:40:43 +0000 (18:40 +0200)
committerUwe Hermann <redacted>
Sun, 19 Aug 2018 16:41:27 +0000 (18:41 +0200)
pv/dialogs/settings.cpp

index 140e7775d2cb73c2d9b575edca9cef9d0af7a141..4c0715a8b936ae67a61abf2faf08c716c0f3de2c 100644 (file)
@@ -465,10 +465,14 @@ QWidget *Settings::get_about_page(QWidget *parent) const
        QTextBrowser *support_list = new QTextBrowser();
        support_list->setDocument(supported_doc);
 
-       QGridLayout *layout = new QGridLayout();
-       layout->addWidget(icon, 0, 0, 1, 1);
-       layout->addWidget(gpl_home_info, 0, 1, 1, 1);
-       layout->addWidget(support_list, 1, 1, 1, 1);
+       QHBoxLayout *h_layout = new QHBoxLayout();
+       h_layout->setAlignment(Qt::AlignLeft);
+       h_layout->addWidget(icon);
+       h_layout->addWidget(gpl_home_info);
+
+       QVBoxLayout *layout = new QVBoxLayout();
+       layout->addLayout(h_layout);
+       layout->addWidget(support_list);
 
        QWidget *page = new QWidget(parent);
        page->setLayout(layout);