diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,6 @@ find_package(KF5ConfigWidgets ${KF5_DEP_VERSION} REQUIRED) find_package(KF5I18n ${KF5_DEP_VERSION} REQUIRED) find_package(KF5IconThemes ${KF5_DEP_VERSION} REQUIRED) -find_package(KF5TextWidgets ${KF5_DEP_VERSION} REQUIRED) find_package(KF5WidgetsAddons ${KF5_DEP_VERSION} REQUIRED) find_package(KF5WindowSystem ${KF5_DEP_VERSION} REQUIRED) find_package(KF5Attica ${KF5_DEP_VERSION}) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -104,7 +104,6 @@ KF5::ItemViews #KWidgetItemDelegate in KAboutApplicationPersonListDelegate KF5::I18n #i18n and i18nc in many places KF5::IconThemes #KIconLoader and KIconThemes in KToolBar - KF5::TextWidgets #KTextEdit in kbugreport KF5::WindowSystem #KKeyServer in kkeysequencewidget ${XMLGUI_EXTRA_LIBS} ) diff --git a/src/kbugreport.cpp b/src/kbugreport.cpp --- a/src/kbugreport.cpp +++ b/src/kbugreport.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -43,7 +44,6 @@ #include #include #include -#include #include #include "kdepackages.h" @@ -74,7 +74,7 @@ QProcess *m_process; KAboutData m_aboutData; - KTextEdit *m_lineedit; + QTextEdit *m_lineedit; QLineEdit *m_subject; QLabel *m_from; QLabel *m_version; @@ -284,12 +284,10 @@ lay->addWidget(label); // The multiline-edit - d->m_lineedit = new KTextEdit(this); + d->m_lineedit = new QTextEdit(this); d->m_lineedit->setMinimumHeight(180); // make it big d->m_lineedit->setWordWrapMode(QTextOption::WrapAtWordBoundaryOrAnywhere); d->m_lineedit->setLineWrapMode(QTextEdit::WidgetWidth); - d->m_lineedit->setCheckSpellingEnabled(true); - d->m_lineedit->setSpellCheckingLanguage(QStringLiteral("en")); lay->addWidget(d->m_lineedit, 10 /*stretch*/); d->_k_slotSetFrom(); diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -22,4 +22,8 @@ kwindowtest ) -add_subdirectory(krichtexteditor) +# KTextWidgets dependency is only needed for this test +find_package(KF5TextWidgets QUIET) +if(TARGET KF5::TextWidgets) + add_subdirectory(krichtexteditor) +endif()