QLabel *icon = new QLabel();
icon->setPixmap(QPixmap(QString::fromUtf8(":/icons/pulseview.svg")));
- /* Setup the version field */
- QLabel *version_info = new QLabel();
- version_info->setText(tr("%1 %2<br />%3<br /><a href=\"http://%4\">%4</a>")
- .arg(QApplication::applicationName(),
- QApplication::applicationVersion(),
+ /* Setup the license field, with the project homepage link. */
+ QLabel *gpl_home_info = new QLabel();
+ gpl_home_info->setText(tr("%1<br /><a href=\"http://%2\">%2</a>").arg(
tr("GNU GPL, version 3 or later"),
QApplication::organizationDomain()));
- version_info->setOpenExternalLinks(true);
+ gpl_home_info->setOpenExternalLinks(true);
shared_ptr<sigrok::Context> context = device_manager_.context();
s.append("<table>");
- /* Library info */
+ /* Version, library, and feature info */
s.append("<tr><td colspan=\"2\"><b>" +
- tr("Libraries and features:") + "</b></td></tr>");
+ tr("Versions, libraries and features:") + "</b></td></tr>");
+ s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
+ .arg(QApplication::applicationName(),
+ QApplication::applicationVersion()));
s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
.arg(QString("Qt"), qVersion()));
s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
QTextBrowser *support_list = new QTextBrowser();
support_list->setDocument(supported_doc);
- QGridLayout *layout = new QGridLayout();
- layout->addWidget(icon, 0, 0, 1, 1);
- layout->addWidget(version_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);
// Background buffer size
QSpinBox *buffersize_sb = new QSpinBox();
buffersize_sb->setSuffix(tr(" lines"));
+ buffersize_sb->setMinimum(Logging::MIN_BUFFER_SIZE);
buffersize_sb->setMaximum(Logging::MAX_BUFFER_SIZE);
buffersize_sb->setValue(
settings.value(GlobalSettings::Key_Log_BufferSize).toInt());