[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kparts/tests
From:       Roberto Raggi <roberto () kdevelop ! org>
Date:       2007-03-12 22:57:49
Message-ID: 1173740269.664103.31989.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 641955 by raggi:

compile.


 M  +4 -4      notepad.cpp  


--- trunk/KDE/kdelibs/kparts/tests/notepad.cpp #641954:641955
@@ -62,8 +62,8 @@
 
 bool NotepadPart::openFile()
 {
-  kDebug() << "NotepadPart: opening " << m_file << endl;
-  QFile f(m_file);
+  kDebug() << "NotepadPart: opening " << localFilePath() << endl;
+  QFile f(localFilePath());
   QString s;
   if ( f.open(QIODevice::ReadOnly) ) {
     QTextStream t( &f );
@@ -73,7 +73,7 @@
   }
   m_edit->setPlainText(s);
 
-  emit setStatusBarText( m_url.prettyUrl() );
+  emit setStatusBarText( url().prettyUrl() );
 
   return true;
 }
@@ -82,7 +82,7 @@
 {
   if ( !isReadWrite() )
     return false;
-  QFile f(m_file);
+  QFile f(localFilePath());
   QString s;
   if ( f.open(QIODevice::WriteOnly) ) {
     QTextStream t( &f );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic