From 64c48b637c1bd1bef679bff500f3e0ce5365358d Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 26 Apr 2003 19:12:45 +0000 Subject: added a setDocuments method --- (limited to 'noncore/apps') 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(); -- cgit v0.9.0.2