diff --git a/gtk/FilterBase.h b/gtk/FilterBase.h index 866a8194c..93e06af37 100644 --- a/gtk/FilterBase.h +++ b/gtk/FilterBase.h @@ -20,13 +20,16 @@ template class FilterBase : public IF_GTKMM4(Gtk::Filter, Glib::Object) { -public: #if !GTKMM_CHECK_VERSION(4, 0, 0) - enum class Change : uint8_t{ +public: + // clang-format off + enum class Change : uint8_t + { DIFFERENT, LESS_STRICT, MORE_STRICT, }; + // clang-format on #endif public: diff --git a/gtk/SorterBase.h b/gtk/SorterBase.h index e487d3beb..6bd19e1fe 100644 --- a/gtk/SorterBase.h +++ b/gtk/SorterBase.h @@ -18,14 +18,17 @@ template class SorterBase : public IF_GTKMM4(Gtk::Sorter, Glib::Object) { -public: #if !GTKMM_CHECK_VERSION(4, 0, 0) - enum class Change : uint8_t{ +public: + // clang-format off + enum class Change : uint8_t + { DIFFERENT, INVERTED, LESS_STRICT, MORE_STRICT, }; + // clang-format on #endif public: diff --git a/qt/DetailsDialog.cc b/qt/DetailsDialog.cc index 6790dd72b..c3e872c1a 100644 --- a/qt/DetailsDialog.cc +++ b/qt/DetailsDialog.cc @@ -1549,8 +1549,10 @@ void DetailsDialog::initOptionsTab() cr->addLayout(ui_.peerConnectionsSectionLayout); cr->update(); - void (QComboBox::*const combo_index_changed)(int) = &QComboBox::currentIndexChanged; - void (QSpinBox::*const spin_value_changed)(int) = &QSpinBox::valueChanged; + // clang-format off + void (QComboBox::* const combo_index_changed)(int) = &QComboBox::currentIndexChanged; + void (QSpinBox::* const spin_value_changed)(int) = &QSpinBox::valueChanged; + // clang-format on connect(ui_.bandwidthPriorityCombo, combo_index_changed, this, &DetailsDialog::onBandwidthPriorityChanged); connect(ui_.idleCombo, combo_index_changed, this, &DetailsDialog::onIdleModeChanged); connect(ui_.idleSpin, &QSpinBox::editingFinished, this, &DetailsDialog::onSpinBoxEditingFinished);