summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2014-10-06 05:41:26 (GMT)
committerMontel Laurent <montel@kde.org>2014-10-06 05:41:26 (GMT)
commit493467ec64299f5097a8d6da1f0b0e5a5cbf954e (patch)
treee868fa4e852bdd821ed64a4ed833d09b8ba9a160
parent5557598b470e9a68f2b33e7c33673fb45d399220 (diff)
Port to QSpinBox
-rw-r--r--ui/annotationwidgets.cpp2
-rw-r--r--ui/annotationwidgets.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/annotationwidgets.cpp b/ui/annotationwidgets.cpp
index 4b9098b..a90df00 100644
--- a/ui/annotationwidgets.cpp
+++ b/ui/annotationwidgets.cpp
@@ -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 %'", " %" ) );
diff --git a/ui/annotationwidgets.h b/ui/annotationwidgets.h
index 6e7a218..36fa5dd 100644
--- a/ui/annotationwidgets.h
+++ b/ui/annotationwidgets.h
@@ -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