From 424d20e435e07c6771cb96b493e74934fd58c0c1 Mon Sep 17 00:00:00 2001 From: Emmanuel Pescosta Date: Mon, 10 Nov 2014 09:12:33 +0100 Subject: KIntSpinBox to QSpinBox --- src/views/renamedialog.cpp | 7 ++++++- src/views/renamedialog.h | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src/views') diff --git a/src/views/renamedialog.cpp b/src/views/renamedialog.cpp index c5001af08..f558f3c5f 100644 --- a/src/views/renamedialog.cpp +++ b/src/views/renamedialog.cpp @@ -131,7 +131,12 @@ RenameDialog::RenameDialog(QWidget *parent, const KFileItemList& items) : QLabel* infoLabel = new QLabel(i18nc("@info", "# will be replaced by ascending numbers starting with:"), page); mainLayout->addWidget(infoLabel); - m_spinBox = new KIntSpinBox(0, 10000, 1, 1, page, 10); + m_spinBox = new QSpinBox(page); + m_spinBox->setMaximum(10000); + m_spinBox->setMinimum(0); + m_spinBox->setSingleStep(1); + m_spinBox->setValue(1); + m_spinBox->setDisplayIntegerBase(10); QHBoxLayout* horizontalLayout = new QHBoxLayout(page); horizontalLayout->setMargin(0); diff --git a/src/views/renamedialog.h b/src/views/renamedialog.h index 86318c5c4..7c02d1b87 100644 --- a/src/views/renamedialog.h +++ b/src/views/renamedialog.h @@ -27,7 +27,7 @@ #include class QLineEdit; -class KIntSpinBox; +class QSpinBox; class QPushButton; /** @@ -64,7 +64,7 @@ private: QLineEdit* m_lineEdit; KFileItemList m_items; bool m_allExtensionsDifferent; - KIntSpinBox* m_spinBox; + QSpinBox* m_spinBox; QPushButton* m_okButton; }; -- cgit v1.3