mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-13 18:14:13 +02:00
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:
@@ -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_,
|
||||
|
||||
Reference in New Issue
Block a user