author | llornkcor <llornkcor> | 2002-07-01 23:53:13 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-01 23:53:13 (UTC) |
commit | 947bd80f93998f75378db1d677b85eb121c10a1d (patch) (unidiff) | |
tree | 9559208fb4c5f5aa31e1f354415f91e95175ca4d /noncore/apps | |
parent | 7ae4965a4052808172e843356cdfb2d0a673bccf (diff) | |
download | opie-947bd80f93998f75378db1d677b85eb121c10a1d.zip opie-947bd80f93998f75378db1d677b85eb121c10a1d.tar.gz opie-947bd80f93998f75378db1d677b85eb121c10a1d.tar.bz2 |
changed caption and added cvsigonre
-rw-r--r-- | noncore/apps/opie-reader/.cvsignore | 3 | ||||
-rw-r--r-- | noncore/apps/opie-reader/QTReaderApp.cpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/.cvsignore b/noncore/apps/opie-reader/.cvsignore new file mode 100644 index 0000000..5344d1b --- a/dev/null +++ b/noncore/apps/opie-reader/.cvsignore | |||
@@ -0,0 +1,3 @@ | |||
1 | Makefile | ||
2 | Makefile.in | ||
3 | moc* \ No newline at end of file | ||
diff --git a/noncore/apps/opie-reader/QTReaderApp.cpp b/noncore/apps/opie-reader/QTReaderApp.cpp index 620e93e..06a35f6 100644 --- a/noncore/apps/opie-reader/QTReaderApp.cpp +++ b/noncore/apps/opie-reader/QTReaderApp.cpp | |||
@@ -994,30 +994,30 @@ void QTReaderApp::clear() | |||
994 | { | 994 | { |
995 | // QMessageBox::information(this, "QTReader", "Deleting doc", 1); | 995 | // QMessageBox::information(this, "QTReader", "Deleting doc", 1); |
996 | delete doc; | 996 | delete doc; |
997 | // QMessageBox::information(this, "QTReader", "Deleted doc", 1); | 997 | // QMessageBox::information(this, "QTReader", "Deleted doc", 1); |
998 | doc = 0; | 998 | doc = 0; |
999 | } | 999 | } |
1000 | reader->clear(); | 1000 | reader->clear(); |
1001 | } | 1001 | } |
1002 | 1002 | ||
1003 | void QTReaderApp::updateCaption() | 1003 | void QTReaderApp::updateCaption() |
1004 | { | 1004 | { |
1005 | if ( !doc ) | 1005 | if ( !doc ) |
1006 | setCaption( tr("QTReader") ); | 1006 | setCaption( tr("Opie Reader") ); |
1007 | else { | 1007 | else { |
1008 | QString s = doc->name(); | 1008 | QString s = doc->name(); |
1009 | if ( s.isEmpty() ) | 1009 | if ( s.isEmpty() ) |
1010 | s = tr( "Unnamed" ); | 1010 | s = tr( "Unnamed" ); |
1011 | setCaption( s + " - " + tr("QTReader") ); | 1011 | setCaption( s + " - " + tr("Opie Reader") ); |
1012 | } | 1012 | } |
1013 | } | 1013 | } |
1014 | 1014 | ||
1015 | void QTReaderApp::setDocument(const QString& fileref) | 1015 | void QTReaderApp::setDocument(const QString& fileref) |
1016 | { | 1016 | { |
1017 | bFromDocView = TRUE; | 1017 | bFromDocView = TRUE; |
1018 | //QMessageBox::information(0, "setDocument", fileref); | 1018 | //QMessageBox::information(0, "setDocument", fileref); |
1019 | openFile(DocLnk(fileref)); | 1019 | openFile(DocLnk(fileref)); |
1020 | // showEditTools(); | 1020 | // showEditTools(); |
1021 | } | 1021 | } |
1022 | 1022 | ||
1023 | void QTReaderApp::closeEvent( QCloseEvent *e ) | 1023 | void QTReaderApp::closeEvent( QCloseEvent *e ) |