summaryrefslogtreecommitdiff
path: root/src/gui_qt.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_qt.cc')
-rw-r--r--src/gui_qt.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui_qt.cc b/src/gui_qt.cc
index c47d8fc..5cd16f9 100644
--- a/src/gui_qt.cc
+++ b/src/gui_qt.cc
@@ -287,7 +287,7 @@ public:
return QModelIndex();
}
- QModelIndex parent(const QModelIndex& UNUSED(index)) const override {
+ QModelIndex parent(const QModelIndex&) const override {
return QModelIndex();
}
@@ -1142,7 +1142,7 @@ protected:
v->check_->setChecked(v->value_);
v->check_->setEnabled(v->enable_);
v->check_->connect(v->check_, &QCheckBox::stateChanged,
- [=](int UNUSED(state)) {
+ [=](int) {
notify_changed(v->id_);
});
break;
@@ -1151,7 +1151,7 @@ protected:
auto vp = value.get();
if (edit) {
edit->connect(edit, &QLineEdit::textChanged,
- [=](QString const& UNUSED(text)) {
+ [=](QString const&) {
notify_changed(vp->id_);
});
edit->setEnabled(value->enable_);
@@ -1162,7 +1162,7 @@ protected:
v->button_->setEnabled(v->enable_);
edit->setReadOnly(true);
dialog_->connect(v->button_, &QPushButton::clicked,
- [=](bool UNUSED(checked)) {
+ [=](bool) {
showFileDialog(v);
});
layout->addWidget(label, row, 0);
@@ -1241,7 +1241,7 @@ protected:
}
}
- virtual int add_extra_widgets(QGridLayout*, int row, int UNUSED(columns)) {
+ virtual int add_extra_widgets(QGridLayout*, int row, int) {
return row;
}
@@ -1491,7 +1491,7 @@ public:
return true;
}
- void show(GuiWindow* UNUSED(parent)) override {
+ void show(GuiWindow*) override {
if (widget_) {
focus();
return;
@@ -1584,7 +1584,7 @@ bool QtGuiMain::run(int argc, char** argv) {
tree->setUniformRowHeights(true);
tree->setSelectionMode(QAbstractItemView::SingleSelection);
QObject::connect(tree->selectionModel(), &QItemSelectionModel::selectionChanged,
- [=](QItemSelection const& selected, QItemSelection const& UNUSED(previous)) {
+ [=](QItemSelection const& selected, QItemSelection const&) {
if (selected.size() == 1) {
notify_selected_row(selected.indexes()[0].row());
} else {