mirror of
https://github.com/transmission/transmission
synced 2025-01-03 05:25:52 +00:00
fix: code should be clang-formatted (#7184)
This commit is contained in:
parent
64cf3a236a
commit
a8bf44eeb1
3 changed files with 14 additions and 6 deletions
|
@ -20,13 +20,16 @@
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class FilterBase : public IF_GTKMM4(Gtk::Filter, Glib::Object)
|
class FilterBase : public IF_GTKMM4(Gtk::Filter, Glib::Object)
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
#if !GTKMM_CHECK_VERSION(4, 0, 0)
|
#if !GTKMM_CHECK_VERSION(4, 0, 0)
|
||||||
enum class Change : uint8_t{
|
public:
|
||||||
|
// clang-format off
|
||||||
|
enum class Change : uint8_t
|
||||||
|
{
|
||||||
DIFFERENT,
|
DIFFERENT,
|
||||||
LESS_STRICT,
|
LESS_STRICT,
|
||||||
MORE_STRICT,
|
MORE_STRICT,
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -18,14 +18,17 @@
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class SorterBase : public IF_GTKMM4(Gtk::Sorter, Glib::Object)
|
class SorterBase : public IF_GTKMM4(Gtk::Sorter, Glib::Object)
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
#if !GTKMM_CHECK_VERSION(4, 0, 0)
|
#if !GTKMM_CHECK_VERSION(4, 0, 0)
|
||||||
enum class Change : uint8_t{
|
public:
|
||||||
|
// clang-format off
|
||||||
|
enum class Change : uint8_t
|
||||||
|
{
|
||||||
DIFFERENT,
|
DIFFERENT,
|
||||||
INVERTED,
|
INVERTED,
|
||||||
LESS_STRICT,
|
LESS_STRICT,
|
||||||
MORE_STRICT,
|
MORE_STRICT,
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1549,8 +1549,10 @@ void DetailsDialog::initOptionsTab()
|
||||||
cr->addLayout(ui_.peerConnectionsSectionLayout);
|
cr->addLayout(ui_.peerConnectionsSectionLayout);
|
||||||
cr->update();
|
cr->update();
|
||||||
|
|
||||||
void (QComboBox::*const combo_index_changed)(int) = &QComboBox::currentIndexChanged;
|
// clang-format off
|
||||||
void (QSpinBox::*const spin_value_changed)(int) = &QSpinBox::valueChanged;
|
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_.bandwidthPriorityCombo, combo_index_changed, this, &DetailsDialog::onBandwidthPriorityChanged);
|
||||||
connect(ui_.idleCombo, combo_index_changed, this, &DetailsDialog::onIdleModeChanged);
|
connect(ui_.idleCombo, combo_index_changed, this, &DetailsDialog::onIdleModeChanged);
|
||||||
connect(ui_.idleSpin, &QSpinBox::editingFinished, this, &DetailsDialog::onSpinBoxEditingFinished);
|
connect(ui_.idleSpin, &QSpinBox::editingFinished, this, &DetailsDialog::onSpinBoxEditingFinished);
|
||||||
|
|
Loading…
Reference in a new issue