summaryrefslogtreecommitdiffstats
path: root/kjots/kjotsentry.cpp
diff options
context:
space:
mode:
authormio <stigma@disroot.org>2024-10-27 21:57:29 +1000
committermio <stigma@disroot.org>2024-12-17 09:37:43 +1000
commit7304b1a1e7ee4c175abb21e4d810c1f4d45ef7f1 (patch)
treececf044282f342b5e8cf76cdc37be3e71ba75234 /kjots/kjotsentry.cpp
parentf5130739bb3d0e8aac2c4864cf8ab0b870a09143 (diff)
downloadtdeutils-7304b1a1.tar.gz
tdeutils-7304b1a1.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> (cherry picked from commit 72796561928a42dbffd9dbb422523bb599896ca9)
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);
}