-rw-r--r-- | noncore/apps/tinykate/tinykate.cpp | 5 | ||||
-rw-r--r-- | noncore/apps/tinykate/tinykate.h | 1 |
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) | |||
185 | viewCount++; | 185 | viewCount++; |
186 | } | 186 | } |
187 | 187 | ||
188 | void TinyKate::setDocument(const QString& fileref) | ||
189 | { | ||
190 | open( fileref ); | ||
191 | } | ||
192 | |||
188 | void TinyKate::slotCurrentChanged( QWidget * view) | 193 | void TinyKate::slotCurrentChanged( QWidget * view) |
189 | { | 194 | { |
190 | if (currentView) { | 195 | 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: | |||
36 | 36 | ||
37 | public slots: | 37 | public slots: |
38 | void slotNew(); | 38 | void slotNew(); |
39 | void setDocument(const QString& fileref); | ||
39 | 40 | ||
40 | protected slots: | 41 | protected slots: |
41 | void slotOpen(); | 42 | void slotOpen(); |