mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
fix: code should be clang-formatted (#7184)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user