summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate
authorharlekin <harlekin>2003-04-26 19:12:45 (UTC)
committer harlekin <harlekin>2003-04-26 19:12:45 (UTC)
commit64c48b637c1bd1bef679bff500f3e0ce5365358d (patch) (side-by-side diff)
treeef7405ffc95384e52daa12af13a9e55f484d19a8 /noncore/apps/tinykate
parent9dfeb5f74c0d7f9611ec440e6e7760d2f19f73ae (diff)
downloadopie-64c48b637c1bd1bef679bff500f3e0ce5365358d.zip
opie-64c48b637c1bd1bef679bff500f3e0ce5365358d.tar.gz
opie-64c48b637c1bd1bef679bff500f3e0ce5365358d.tar.bz2
added a setDocuments method
Diffstat (limited to 'noncore/apps/tinykate') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tinykate/tinykate.cpp5
-rw-r--r--noncore/apps/tinykate/tinykate.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/tinykate.cpp b/noncore/apps/tinykate/tinykate.cpp
index 694efc6..ea7ea45 100644
--- a/noncore/apps/tinykate/tinykate.cpp
+++ b/noncore/apps/tinykate/tinykate.cpp
@@ -185,6 +185,11 @@ void TinyKate::open(const QString & filename)
viewCount++;
}
+void TinyKate::setDocument(const QString& fileref)
+{
+ open( fileref );
+}
+
void TinyKate::slotCurrentChanged( QWidget * view)
{
if (currentView) {
diff --git a/noncore/apps/tinykate/tinykate.h b/noncore/apps/tinykate/tinykate.h
index cdd8f43..2e8ca74 100644
--- a/noncore/apps/tinykate/tinykate.h
+++ b/noncore/apps/tinykate/tinykate.h
@@ -36,6 +36,7 @@ public:
public slots:
void slotNew();
+ void setDocument(const QString& fileref);
protected slots:
void slotOpen();