Commit 4913452a authored by Mathieu Tillet's avatar Mathieu Tillet
Browse files

Fix minor style issues

parent 531c9612
......@@ -423,7 +423,7 @@ QString InstrumentWidget::getSaveFileName(const QString &title,
* Update the info text displayed at the bottom of the window.
*/
void InstrumentWidget::updateInfoText(const QString &text) {
if (text.length() == 0) {
if (text.isEmpty()) {
setInfoText(getSurfaceInfoText());
} else {
setInfoText(text);
......
......@@ -581,10 +581,10 @@ void InstrumentWidgetMaskTab::singlePixelPicked(size_t pickID) {
QString("Pixel %0 picked for grouping").arg(pickID));
} else if (m_tube->isChecked()) {
std::string message = "Parent " +
componentInfo.componentID(parent)->getName() +
" picked for grouping";
m_instrWidget->updateInfoText(QString::fromStdString(message));
QString message = QString("Component %0 picked for grouping")
.arg(QString::fromStdString(
componentInfo.componentID(parent)->getName()));
m_instrWidget->updateInfoText(message);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment