Don't use QMessageBox::setInformativeText()
[pulseview.git] / pv / dialogs / settings.cpp
index 6878cadcf0bb4c45c995558bda32a3cbc81956c6..780a66655e91826083bad6e4932c8246f52959d0 100644 (file)
@@ -300,7 +300,7 @@ QWidget *Settings::get_view_settings_form(QWidget *parent) const
                settings.value(GlobalSettings::Key_View_FillSignalHighAreaColor).value<uint32_t>()));
        connect(high_fill_cb, SIGNAL(selected(QColor)),
                this, SLOT(on_view_fillSignalHighAreaColor_changed(QColor)));
-       trace_view_layout->addRow(tr("Fill high areas of logic signals"), high_fill_cb);
+       trace_view_layout->addRow(tr("Color to fill high areas of logic signals with"), high_fill_cb);
 
        cb = create_checkbox(GlobalSettings::Key_View_ShowAnalogMinorGrid,
                SLOT(on_view_showAnalogMinorGrid_changed(int)));
@@ -744,8 +744,7 @@ void Settings::on_log_saveToFile_clicked(bool checked)
 
                if (out_stream.status() == QTextStream::Ok) {
                        QMessageBox msg(this);
-                       msg.setText(tr("Success"));
-                       msg.setInformativeText(tr("Log saved to %1.").arg(file_name));
+                       msg.setText(tr("Success") + "\n\n" + tr("Log saved to %1.").arg(file_name));
                        msg.setStandardButtons(QMessageBox::Ok);
                        msg.setIcon(QMessageBox::Information);
                        msg.exec();
@@ -755,8 +754,7 @@ void Settings::on_log_saveToFile_clicked(bool checked)
        }
 
        QMessageBox msg(this);
-       msg.setText(tr("Error"));
-       msg.setInformativeText(tr("File %1 could not be written to.").arg(file_name));
+       msg.setText(tr("Error") + "\n\n" + tr("File %1 could not be written to.").arg(file_name));
        msg.setStandardButtons(QMessageBox::Ok);
        msg.setIcon(QMessageBox::Warning);
        msg.exec();