Commit 4da72476 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Replace deprecated KConfigDialogManager::changedMap with property in the class definition

Summary:
KConfigDialogManager::changedMap is deprecated since KF 5.32. This commit mimics the replacement commit from Okteta:

https://cgit.kde.org/okteta.git/commit/?id=1ed966965b656bac22e1fe99e1b7ede00da68263

Test Plan: Compiles. It seems that Equation editor behavior does not change.

Reviewers: #kde_edu, aacid

Reviewed By: aacid

Subscribers: kossebau, aacid, kde-edu

Tags: #kde_edu

Differential Revision: https://phabricator.kde.org/D25078
parent e59b6451
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 @@ include(KDECompilerSettings NO_POLICY_SCOPE)
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
......
......@@ -49,7 +49,7 @@ typedef QMap<QChar, QChar> CharMap;
class EquationEdit : public QWidget
{
Q_OBJECT
Q_PROPERTY( QString text READ text WRITE setText USER true )
Q_PROPERTY( QString text READ text WRITE setText NOTIFY textEdited USER true )
public:
enum InputType
......
......@@ -183,10 +183,6 @@ MainDlg::MainDlg(QWidget *parentWidget, QObject *parent, const QVariantList& ) :
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() );
......
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