drop ktextwidgets dependency just for a single plural handling spinbox

parent 9876a392
......@@ -29,7 +29,6 @@ find_package(KF5 REQUIRED COMPONENTS
WidgetsAddons
KIO
XmlGui
TextWidgets
)
add_definitions(-DQT_USE_QSTRINGBUILDER)
......@@ -330,7 +329,6 @@ add_executable(kolourpaint ${kolourpaint_SRCS})
target_link_libraries(kolourpaint
KF5::XmlGui
KF5::TextWidgets
KF5::KIOFileWidgets
Qt5::PrintSupport
Qt5::Widgets
......
......@@ -55,7 +55,7 @@
#include <kactioncollection.h>
#include <KSharedConfig>
#include <kconfiggroup.h>
#include <KPluralHandlingSpinBox>
#include <QSpinBox>
#include <KJobWidgets>
#include <KIO/StatJob>
#include <kmessagebox.h>
......@@ -664,9 +664,9 @@ void kpMainWindow::slotScreenshot()
connect (buttons, &QDialogButtonBox::rejected, dialog, &QDialog::reject);
auto *label = new QLabel(i18n("Snapshot Delay"));
auto *seconds = new KPluralHandlingSpinBox;
auto *seconds = new QSpinBox;
seconds->setRange(0, 99);
seconds->setSuffix(ki18np(" second", " seconds"));
seconds->setSuffix(i18n(" second(s)"));
seconds->setSpecialValueText(i18n("No delay"));
auto *hideWindow = new QCheckBox(i18n("Hide Main Window"));
......
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