summaryrefslogtreecommitdiffstats
path: root/kjots/kjotsentry.cpp
diff options
context:
space:
mode:
authormio <stigma@disroot.org>2024-10-27 21:57:29 +1000
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2024-12-16 23:32:27 +0000
commit72796561928a42dbffd9dbb422523bb599896ca9 (patch)
treeead043c9762288df79aea8aa4d25259977108192 /kjots/kjotsentry.cpp
parent834febe1fd138859a6384428c108d4d163e0fd2f (diff)
downloadtdeutils-72796561928a42dbffd9dbb422523bb599896ca9.tar.gz
tdeutils-72796561928a42dbffd9dbb422523bb599896ca9.zip
Update KJots to use KTextEdit
KEdit is deprecated and KTextEdit is one of the replacements. KTextEdit doesn't provide the find & replace functionality, so we have to re-implement that in KJotsEdit. Signed-off-by: mio <stigma@disroot.org>
Diffstat (limited to 'kjots/kjotsentry.cpp')
-rw-r--r--kjots/kjotsentry.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kjots/kjotsentry.cpp b/kjots/kjotsentry.cpp
index 0a20072..61ea63d 100644
--- a/kjots/kjotsentry.cpp
+++ b/kjots/kjotsentry.cpp
@@ -882,10 +882,10 @@ void KJotsPage::initNewPage(void)
TQString KJotsPage::body()
{
//if we're being edited we want the current text, not whatever we saved before.
- if ( m_editor && m_editor->edited() )
+ if (m_editor && m_editor->isModified())
{
m_text = m_editor->text();
- m_editor->setEdited(false);
+ m_editor->setModified(false);
setDirty(true);
}
@@ -1079,7 +1079,7 @@ void KJotsPage::setEditor( KJotsEdit *editor )
{
m_editor->getCursorPosition(&m_paraPos, &m_indexPos);
- if ( m_editor->edited() )
+ if (m_editor->isModified())
{
m_text = m_editor->text();
setDirty(true);
@@ -1091,7 +1091,7 @@ void KJotsPage::setEditor( KJotsEdit *editor )
//and in with the new
if ( m_editor )
{
- m_editor->setEdited(false);
+ m_editor->setModified(false);
m_editor->setCursorPosition(m_paraPos, m_indexPos);
}
@@ -1105,7 +1105,7 @@ void KJotsPage::setEditor( KJotsEdit *editor )
*/
bool KJotsPage::isDirty()
{
- if ( m_editor && m_editor->edited() )
+ if (m_editor && m_editor->isModified())
{
setDirty(true);
}