From: Uwe Hermann Date: Sun, 19 Aug 2018 16:40:43 +0000 (+0200) Subject: about: Layout change to use space more efficiently. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7d9dd6f4f619bf53a3b19096f6c4f02bbe1a257b;p=pulseview.git about: Layout change to use space more efficiently. --- diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index 140e7775..4c0715a8 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -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);