Migrating the remaining signal/slot connects with an ambigious activated(int) via qOverload<int>,

since QComboBox::activated(QString) still exists pre-Qt6 and makes &QComboBox::activated alone ambiguous:

- StyleEditor: outline_color/line_style/size_weight/filling_color,
  both connect (activeConnections(true)) and disconnect
  (activeConnections(false)) branches. antialiasing's stateChanged(int)
  connect modernized alongside them (single signal, no disambiguation
  needed).
- TitleBlockTemplateCellWidget: cell_type_input_ (two connects to
  different slots), horiz_align_input_, vert_align_input_, logo_input_.

Also modernises QETApp's system tray connect.

In two cases stateChanged already replaced with version guarded checkStateChanged for future proofing.
This commit is contained in:
Andre Rummler
2026-08-08 21:29:17 +02:00
parent 79da321ddc
commit a668ccfa90
5 changed files with 34 additions and 27 deletions
+3 -3
View File
@@ -117,10 +117,10 @@ void QTextOrientationSpinBoxWidget::build()
spin_box_ -> setSuffix("°");
// met en place les relations entre le SpinBox et le QTextOrientationWidget
connect(spin_box_,
SIGNAL(valueChanged(double)),
connect(spin_box_,
qOverload<double>(&QDoubleSpinBox::valueChanged),
orientation_widget_,
SLOT(setOrientation(double)));
&QTextOrientationWidget::setOrientation);
connect(orientation_widget_,
&QTextOrientationWidget::orientationChanged,
spin_box_,