mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-13 18:14:13 +02:00
Update old fashioned SIGNAL/SLOT to point-to-member. Only simple and clear cases.
This commit is contained in:
@@ -122,9 +122,9 @@ void QTextOrientationSpinBoxWidget::build()
|
||||
orientation_widget_,
|
||||
SLOT(setOrientation(double)));
|
||||
connect(orientation_widget_,
|
||||
SIGNAL(orientationChanged(double)),
|
||||
&QTextOrientationWidget::orientationChanged,
|
||||
spin_box_,
|
||||
SLOT(setValue(double)));
|
||||
&QDoubleSpinBox::setValue);
|
||||
|
||||
// cliquer sur un des carres du QTextOrientationWidget revient a finir une saisie dans le SpinBox
|
||||
connect(orientation_widget_,
|
||||
@@ -134,8 +134,7 @@ void QTextOrientationSpinBoxWidget::build()
|
||||
|
||||
// lorsque l'utilisateur a change l'orientation,
|
||||
// on emet un signal avec la valeur de la nouvelle orientation
|
||||
connect(spin_box_, SIGNAL(editingFinished()),
|
||||
this, SLOT(emitChangeSignals()));
|
||||
connect(spin_box_, &QDoubleSpinBox::editingFinished, this, &QTextOrientationSpinBoxWidget::emitChangeSignals);
|
||||
|
||||
// dispose les widgets : le QTextOrientationWidget a gauche, le SpinBox a droite
|
||||
QHBoxLayout *main_layout = new QHBoxLayout();
|
||||
|
||||
Reference in New Issue
Block a user