diff --git a/ui/annotationwidgets.cpp b/ui/annotationwidgets.cpp --- a/ui/annotationwidgets.cpp +++ b/ui/annotationwidgets.cpp @@ -535,12 +535,12 @@ connect( m_useColor, &QAbstractButton::toggled, this, &AnnotationWidget::dataChanged ); connect(m_useColor, &QCheckBox::toggled, m_innerColor, &KColorButton::setEnabled); } - connect( m_spinSize, SIGNAL(valueChanged(double)), this, SIGNAL(dataChanged()) ); + connect( m_spinSize, static_cast(&QDoubleSpinBox::valueChanged), this, &LineAnnotationWidget::dataChanged ); //Line Term Styles QLabel * tmplabel3 = new QLabel( i18n( "Line End:" ), widget ); gridlay2->addWidget( tmplabel3, 1, 0, Qt::AlignRight ); - m_termStyleCombo = new KComboBox( widget ); + m_termStyleCombo = new QComboBox( widget ); tmplabel3->setBuddy( m_termStyleCombo ); gridlay2->addWidget( m_termStyleCombo ); tmplabel3->setToolTip( i18n("Only for PDF documents")); @@ -558,7 +558,7 @@ m_termStyleCombo->addItem( i18n( "-/ Slash" ) ); m_termStyleCombo->setCurrentIndex( m_lineAnn->lineEndStyle() ); - connect( m_termStyleCombo, SIGNAL(currentIndexChanged(int)), this, SIGNAL(dataChanged()) ); + connect( m_termStyleCombo, static_cast(&QComboBox::currentIndexChanged), this, &LineAnnotationWidget::dataChanged ); return widget; }