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>
|
||||
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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -1549,8 +1549,10 @@ void DetailsDialog::initOptionsTab()
|
|||
cr->addLayout(ui_.peerConnectionsSectionLayout);
|
||||
cr->update();
|
||||
|
||||
// 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);
|
||||
|
|
Loading…
Reference in a new issue