]> cloud.milkyroute.net Git - dolphin.git/commitdiff
KIntSpinBox to QSpinBox
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Mon, 10 Nov 2014 08:12:33 +0000 (09:12 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Mon, 10 Nov 2014 08:12:33 +0000 (09:12 +0100)
src/settings/general/previewssettingspage.cpp
src/settings/general/previewssettingspage.h
src/views/renamedialog.cpp
src/views/renamedialog.h

index bd087f1ea2c9c70e35353e861b93d2a5e3e02e3b..3b85a201d4e54879acea5695abf8681dc187e84e 100644 (file)
@@ -79,7 +79,7 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) :
 
     QLabel* remoteFileSizeLabel = new QLabel(i18nc("@label", "Skip previews for remote files above:"), this);
 
-    m_remoteFileSizeBox = new KIntSpinBox(this);
+    m_remoteFileSizeBox = new QSpinBox(this);
     m_remoteFileSizeBox->setSingleStep(1);
     m_remoteFileSizeBox->setSuffix(QLatin1String(" MB"));
     m_remoteFileSizeBox->setRange(0, 9999999); /* MB */
@@ -96,7 +96,7 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) :
     loadSettings();
 
     connect(m_listView, &QListView::clicked, this, &PreviewsSettingsPage::changed);
-    connect(m_remoteFileSizeBox, static_cast<void(KIntSpinBox::*)(int)>(&KIntSpinBox::valueChanged), this, &PreviewsSettingsPage::changed);
+    connect(m_remoteFileSizeBox, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &PreviewsSettingsPage::changed);
 }
 
 PreviewsSettingsPage::~PreviewsSettingsPage()
index 3abf8f92697407c23668c43c08efcfbd0a77678a..6e896f05ecdf4c406c92fa7c5410462be69cfbfb 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <settings/settingspagebase.h>
 
-class KIntSpinBox;
+class QSpinBox;
 class QListView;
 class QModelIndex;
 
@@ -61,7 +61,7 @@ private:
     bool m_initialized;
     QListView *m_listView;
     QStringList m_enabledPreviewPlugins;
-    KIntSpinBox* m_remoteFileSizeBox;
+    QSpinBox* m_remoteFileSizeBox;
 };
 
 #endif
index c5001af08c782fdbb4d9435bc4f245255f32a0a9..f558f3c5fa29a09c6566b9f037193c1e89d9bd04 100644 (file)
@@ -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);
index 86318c5c4b3ddd329a1c2d598e264c5818a17284..7c02d1b8730df63a0f582ac526de4230ecb2bc15 100644 (file)
@@ -27,7 +27,7 @@
 #include <QString>
 
 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;
 };