diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -4,7 +4,7 @@ macro(ktextwidgets_unit_tests) foreach(_testname ${ARGN}) - ecm_add_test(${_testname}.cpp TEST_NAME ktextwidgets-${_testname} LINK_LIBRARIES Qt5::Test KF5::TextWidgets KF5::ConfigWidgets) + ecm_add_test(${_testname}.cpp TEST_NAME ktextwidgets-${_testname} LINK_LIBRARIES Qt5::Test KF5::TextWidgets KF5::ConfigWidgets KF5::I18n) endforeach() endmacro() diff --git a/autotests/kpluralhandlingspinboxtest.cpp b/autotests/kpluralhandlingspinboxtest.cpp --- a/autotests/kpluralhandlingspinboxtest.cpp +++ b/autotests/kpluralhandlingspinboxtest.cpp @@ -20,6 +20,8 @@ #include "kpluralhandlingspinboxtest.h" #include "kpluralhandlingspinbox.h" +#include + #include QTEST_MAIN(KPluralHandlingSpinBoxTest) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -30,8 +30,8 @@ PUBLIC Qt5::Widgets KF5::SonnetUi - KF5::I18n PRIVATE + KF5::I18n KF5::SonnetCore KF5::Service KF5::ConfigWidgets diff --git a/src/widgets/kpluralhandlingspinbox.h b/src/widgets/kpluralhandlingspinbox.h --- a/src/widgets/kpluralhandlingspinbox.h +++ b/src/widgets/kpluralhandlingspinbox.h @@ -21,9 +21,9 @@ #define KPLURALHANDLINGSPINBOX_H #include -#include #include +class KLocalizedString; /** * @class KPluralHandlingSpinBox kpluralhandlingspinbox.h diff --git a/src/widgets/kpluralhandlingspinbox.cpp b/src/widgets/kpluralhandlingspinbox.cpp --- a/src/widgets/kpluralhandlingspinbox.cpp +++ b/src/widgets/kpluralhandlingspinbox.cpp @@ -19,6 +19,8 @@ #include "kpluralhandlingspinbox.h" +#include + class Q_DECL_HIDDEN KPluralHandlingSpinBox::KPluralHandlingSpinBoxPrivate { public: