[-]
[+]
|
Changed |
ktexteditor.spec
|
|
[-]
[+]
|
Changed |
ktexteditor-5.10.0.tar.xz/CMakeLists.txt
^
|
@@ -3,7 +3,7 @@
project(KTextEditor)
# ECM setup
-find_package(ECM 5.9.0 REQUIRED NO_MODULE)
+find_package(ECM 5.10.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(FeatureSummary)
@@ -17,8 +17,8 @@
include(KDECMakeSettings)
include(GenerateExportHeader)
-set(KF5_VERSION "5.9.0") # handled by release scripts
-set(KF5_DEP_VERSION "5.9.0") # handled by release scripts
+set(KF5_VERSION "5.10.0") # handled by release scripts
+set(KF5_DEP_VERSION "5.10.0") # handled by release scripts
ecm_setup_version(
${KF5_VERSION}
|
[-]
[+]
|
Changed |
ktexteditor-5.10.0.tar.xz/autotests/src/plaintextsearch_test.cpp
^
|
@@ -25,8 +25,6 @@
#include <QtTestWidgets>
-Q_DECLARE_METATYPE(KTextEditor::Range)
-
QTEST_MAIN(PlainTextSearchTest)
QtMessageHandler PlainTextSearchTest::s_msgHandler = 0;
|
[-]
[+]
|
Changed |
ktexteditor-5.10.0.tar.xz/autotests/src/regexpsearch_test.cpp
^
|
@@ -25,8 +25,6 @@
#include <QtTestWidgets>
-Q_DECLARE_METATYPE(KTextEditor::Range)
-
QTEST_MAIN(RegExpSearchTest)
#define testNewRow() (QTest::newRow(QString("line %1").arg(__LINE__).toLatin1().data()))
|
[-]
[+]
|
Changed |
ktexteditor-5.10.0.tar.xz/autotests/src/scriptdocument_test.cpp
^
|
@@ -25,8 +25,6 @@
#include <QtTestWidgets>
-Q_DECLARE_METATYPE(KTextEditor::Cursor)
-
QTEST_MAIN(ScriptDocumentTest)
QtMessageHandler ScriptDocumentTest::s_msgHandler = 0;
|
[-]
[+]
|
Changed |
ktexteditor-5.10.0.tar.xz/src/include/ktexteditor/cursor.h
^
|
@@ -352,6 +352,7 @@
}
Q_DECLARE_TYPEINFO(KTextEditor::Cursor, Q_MOVABLE_TYPE);
+Q_DECLARE_METATYPE(KTextEditor::Cursor)
/**
* QHash function for KTextEditor::Cursor.
|
[-]
[+]
|
Changed |
ktexteditor-5.10.0.tar.xz/src/include/ktexteditor/range.h
^
|
@@ -567,6 +567,7 @@
}
Q_DECLARE_TYPEINFO(KTextEditor::Range, Q_MOVABLE_TYPE);
+Q_DECLARE_METATYPE(KTextEditor::Range)
/**
* QHash function for KTextEditor::Range.
|
[-]
[+]
|
Changed |
ktexteditor-5.10.0.tar.xz/src/spellcheck/ontheflycheck.cpp
^
|
@@ -69,8 +69,8 @@
this, SLOT(addView(KTextEditor::Document*,KTextEditor::View*)));
connect(document, SIGNAL(highlightingModeChanged(KTextEditor::Document*)),
this, SLOT(updateConfig()));
- connect(&document->buffer(), SIGNAL(respellCheckBlock(KTextEditor::DocumentPrivate*,int,int)),
- this, SLOT(handleRespellCheckBlock(KTextEditor::DocumentPrivate*,int,int)));
+ connect(&document->buffer(), SIGNAL(respellCheckBlock(int,int)),
+ this, SLOT(handleRespellCheckBlock(int,int)));
// load the settings for the speller
updateConfig();
@@ -119,11 +119,8 @@
}
}
-void KateOnTheFlyChecker::handleRespellCheckBlock(KTextEditor::DocumentPrivate *kateDocument, int start, int end)
+void KateOnTheFlyChecker::handleRespellCheckBlock(int start, int end)
{
- Q_ASSERT(kateDocument == m_document);
- Q_UNUSED(kateDocument);
-
ON_THE_FLY_DEBUG << start << end;
KTextEditor::Range range(start, 0, end, m_document->lineLength(end));
bool listEmpty = m_modificationList.isEmpty();
@@ -658,7 +655,7 @@
void KateOnTheFlyChecker::updateConfig()
{
ON_THE_FLY_DEBUG;
- m_speller.restore();
+ //m_speller.restore();
}
void KateOnTheFlyChecker::refreshSpellCheck(const KTextEditor::Range &range)
|
[-]
[+]
|
Changed |
ktexteditor-5.10.0.tar.xz/src/spellcheck/ontheflycheck.h
^
|
@@ -132,7 +132,7 @@
void handleModifiedRanges();
void handleInsertedText(const KTextEditor::Range &range);
void handleRemovedText(const KTextEditor::Range &range);
- void handleRespellCheckBlock(KTextEditor::DocumentPrivate *document, int start, int end);
+ void handleRespellCheckBlock(int start, int end);
bool removeRangeFromModificationList(KTextEditor::MovingRange *range);
void clearModificationList();
};
|
[-]
[+]
|
Changed |
ktexteditor-5.10.0.tar.xz/src/utils/kateconfig.cpp
^
|
@@ -34,6 +34,7 @@
#include <QTextCodec>
#include <QStringListModel>
+#include <QSettings>
//BEGIN KateConfig
KateConfig::KateConfig()
@@ -1147,8 +1148,10 @@
if (isGlobal()) {
// WARNING: this is slightly hackish, but it's currently the only way to
// do it, see also the KTextEdit class
- KConfigGroup configGroup(KSharedConfig::openConfig(), "Spelling");
- return configGroup.readEntry("checkerEnabledByDefault", false);
+ QSettings settings(QStringLiteral("KDE"), QStringLiteral("Sonnet"));
+ return settings.value(QStringLiteral("checkerEnabledByDefault"), false).toBool();
+ //KConfigGroup configGroup(KSharedConfig::openConfig(), "Spelling");
+ //return configGroup.readEntry("checkerEnabledByDefault", false);
}
if (m_onTheFlySpellCheckSet) {
return m_onTheFlySpellCheck;
|
[-]
[+]
|
Changed |
ktexteditor-5.10.0.tar.xz/src/view/kateview.h
^
|
@@ -968,11 +968,5 @@
}
-/**
- * metatype register
- */
-Q_DECLARE_METATYPE(KTextEditor::Cursor)
-Q_DECLARE_METATYPE(KTextEditor::Range)
-
#endif
|
[-]
[+]
|
Changed |
ktexteditor.yaml
^
|
@@ -1,5 +1,5 @@
Name : ktexteditor
-Version : 5.9.0
+Version : 5.10.0
Release : 1
Group : System/Base
License : GPLv2+
|