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 */
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()
#include <settings/settingspagebase.h>
-class KIntSpinBox;
+class QSpinBox;
class QListView;
class QModelIndex;
bool m_initialized;
QListView *m_listView;
QStringList m_enabledPreviewPlugins;
- KIntSpinBox* m_remoteFileSizeBox;
+ QSpinBox* m_remoteFileSizeBox;
};
#endif
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);
#include <QString>
class QLineEdit;
-class KIntSpinBox;
+class QSpinBox;
class QPushButton;
/**
QLineEdit* m_lineEdit;
KFileItemList m_items;
bool m_allExtensionsDifferent;
- KIntSpinBox* m_spinBox;
+ QSpinBox* m_spinBox;
QPushButton* m_okButton;
};