Commit 493467ec authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to QSpinBox

parent 5557598b
......@@ -207,7 +207,7 @@ QWidget * AnnotationWidget::createAppearanceWidget()
tmplabel = new QLabel( i18n( "&Opacity:" ), widget );
gridlayout->addWidget( tmplabel, 1, 0, Qt::AlignRight );
m_opacity = new KIntNumInput( widget );
m_opacity = new QSpinBox( widget );
m_opacity->setRange( 0, 100 );
m_opacity->setValue( (int)( m_ann->style().opacity() * 100 ) );
m_opacity->setSuffix( i18nc( "Suffix for the opacity level, eg '80 %'", " %" ) );
......
......@@ -20,7 +20,7 @@ class QDoubleSpinBox;
class QLabel;
class QWidget;
class KColorButton;
class KIntNumInput;
class QSpinBox;
class KFontRequester;
class AnnotationWidget;
......@@ -95,7 +95,7 @@ protected:
QWidget * m_appearanceWidget;
QWidget * m_extraWidget;
KColorButton *m_colorBn;
KIntNumInput *m_opacity;
QSpinBox *m_opacity;
};
class TextAnnotationWidget
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment