1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-02 21:16:04 +00:00

fix: code should be clang-formatted (#7184)

This commit is contained in:
Cœur 2024-10-21 03:37:06 +02:00 committed by GitHub
parent 64cf3a236a
commit a8bf44eeb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 6 deletions

View file

@ -20,13 +20,16 @@
template<typename T>
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:

View file

@ -18,14 +18,17 @@
template<typename T>
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:

View file

@ -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);