summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate/libkate/document/katedocument.cpp
authorllornkcor <llornkcor>2002-12-26 03:48:32 (UTC)
committer llornkcor <llornkcor>2002-12-26 03:48:32 (UTC)
commitf736bf0ae774159a80a97b9492d7624e7caf07a3 (patch) (side-by-side diff)
tree6e66396c264e2d878920ba273487c81abe7a474e /noncore/apps/tinykate/libkate/document/katedocument.cpp
parent451d6a8692cf65d970b0c582e96e8a59072df191 (diff)
downloadopie-f736bf0ae774159a80a97b9492d7624e7caf07a3.zip
opie-f736bf0ae774159a80a97b9492d7624e7caf07a3.tar.gz
opie-f736bf0ae774159a80a97b9492d7624e7caf07a3.tar.bz2
added setDocFile function to change the filename needs more work
Diffstat (limited to 'noncore/apps/tinykate/libkate/document/katedocument.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tinykate/libkate/document/katedocument.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katedocument.cpp b/noncore/apps/tinykate/libkate/document/katedocument.cpp
index 10bc976..df1de8d 100644
--- a/noncore/apps/tinykate/libkate/document/katedocument.cpp
+++ b/noncore/apps/tinykate/libkate/document/katedocument.cpp
@@ -328,6 +328,7 @@ void KateDocument::openURL(const QString &filename)
bool KateDocument::saveFile()
{
+
QFile f( m_file );
if ( !f.open( IO_WriteOnly ) )
return false; // Error
@@ -1925,7 +1926,8 @@ void KateDocument::updateLines(int startLine, int endLine, int flags, int cursor
updateMaxLength(textLine);
}
endCtx = textLine->getContext();
- qDebug("DOHIGHLIGHT");
+// qDebug("DOHIGHLIGHT");
+
ctxNum = m_highlight->doHighlight(ctxNum,textLine);
textLine->setContext(ctxNum);
line++;
@@ -3030,6 +3032,12 @@ void KateDocument::setDocName (QString docName)
emit nameChanged (this);
}
+void KateDocument::setDocFile (QString docFile)
+{
+ m_file = docFile;
+ emit fileNameChanged ();
+}
+
void KateDocument::setMTime()
{
if (fileInfo && !fileInfo->fileName().isEmpty()) {