diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ project(kmplot) cmake_minimum_required (VERSION 3.5 FATAL_ERROR) -set (QT_MIN_VERSION "5.3.0") +set (QT_MIN_VERSION "5.6.0") +set (KF5_MIN_VERSION "5.32.0") find_package (ECM 1.3.0 REQUIRED NO_MODULE) set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) @@ -14,7 +15,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Svg Widgets PrintSupport) -find_package (KF5 REQUIRED +find_package (KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Crash GuiAddons I18n diff --git a/kmplot/equationeditwidget.h b/kmplot/equationeditwidget.h --- a/kmplot/equationeditwidget.h +++ b/kmplot/equationeditwidget.h @@ -36,6 +36,7 @@ class EquationEditWidget : public KTextEdit { public: + Q_PROPERTY(QString document READ document NOTIFY textEdited USER true) explicit EquationEditWidget(EquationEdit* parent); /** diff --git a/kmplot/maindlg.cpp b/kmplot/maindlg.cpp --- a/kmplot/maindlg.cpp +++ b/kmplot/maindlg.cpp @@ -183,10 +183,6 @@ connect( m_saveCurrentStateTimer, &QTimer::timeout, this, &MainDlg::saveCurrentState ); //END undo/redo stuff - - - // Allow config manager to read from equation edits - KConfigDialogManager::changedMap()->insert( "EquationEdit", SIGNAL(textEdited(QString)) ); // Let's create a Configure Dialog m_settingsDialog = new KConfigDialog( parentWidget, "settings", Settings::self() );