Application* a = qobject_cast<Application*>(QApplication::instance());
QString current_language = settings.value(GlobalSettings::Key_General_Language).toString();
- for (QString language : a->get_languages()) {
+ for (const QString& language : a->get_languages()) {
QLocale locale = QLocale(language);
QString desc = locale.languageToString(locale.language());
language_cb->addItem(desc, language);
settings.value(GlobalSettings::Key_View_SnapDistance).toInt());
connect(snap_distance_sb, SIGNAL(valueChanged(int)), this,
SLOT(on_view_snapDistance_changed(int)));
- trace_view_layout->addRow(tr("Maximum distance from edges before cursors snap to them"), snap_distance_sb);
+ trace_view_layout->addRow(tr("Maximum distance from edges before markers snap to them"), snap_distance_sb);
ColorButton* cursor_fill_cb = new ColorButton(parent);
cursor_fill_cb->set_color(QColor::fromRgba(
connect(ann_export_format_, SIGNAL(textChanged(const QString&)),
this, SLOT(on_dec_exportFormat_changed(const QString&)));
decoder_layout->addRow(tr("Annotation export format"), ann_export_format_);
- QLabel *description_1 = new QLabel(tr("%s = sample range; %d: decoder name; %r: row name; %q: use quotation marks"));
+ QLabel *description_1 = new QLabel(tr("%s = sample range; %d: decoder name; %r: row name; %c: class name"));
description_1->setAlignment(Qt::AlignRight);
decoder_layout->addRow(description_1);
- QLabel *description_2 = new QLabel(tr("%1: longest annotation text; %a: all annotation texts"));
+ QLabel *description_2 = new QLabel(tr("%1: longest annotation text; %a: all annotation texts; %q: use quotation marks"));
description_2->setAlignment(Qt::AlignRight);
decoder_layout->addRow(description_2);
GlobalSettings settings;
Application* a = qobject_cast<Application*>(QApplication::instance());
- for (QString language : a->get_languages()) {
+ for (const QString& language : a->get_languages()) {
QLocale locale = QLocale(language);
QString desc = locale.languageToString(locale.language());