summaryrefslogtreecommitdiffstats
path: root/quanta/src/viewmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/src/viewmanager.h')
-rw-r--r--quanta/src/viewmanager.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/quanta/src/viewmanager.h b/quanta/src/viewmanager.h
index 05278901..9b600d00 100644
--- a/quanta/src/viewmanager.h
+++ b/quanta/src/viewmanager.h
@@ -29,22 +29,23 @@ class KMdiChildView;
/** This singleton class takes care of creating new views for documents, help, plugins, preview and so.
* As the name says, it also manages the views. */
-class ViewManager : public QObject
+class ViewManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/** Returns a reference to the viewmanager object */
- static ViewManager* const ref(TQObject *parent = 0L, const char *name = 0L)
+ static ViewManager* const ref(TQObject *tqparent = 0L, const char *name = 0L)
{
static ViewManager *m_ref;
- if (!m_ref) m_ref = new ViewManager(parent, name);
+ if (!m_ref) m_ref = new ViewManager(tqparent, name);
return m_ref;
}
/** The destructor. */
virtual ~ViewManager(){};
/** Creates a QuantaView object */
- QuantaView *createView(const TQString &caption = TQString::null);
+ QuantaView *createView(const TQString &caption = TQString());
/** Removes a QuantaView object. Returns false on failure (eg. the view was not saved and it refused
the delete itself.) If force is true, the view is removed without asking for save.
*/
@@ -123,7 +124,7 @@ private slots:
private:
/** Private constructor for the singleton object. */
- ViewManager(TQObject * parent = 0, const char * name = 0);
+ ViewManager(TQObject * tqparent = 0, const char * name = 0);
/** Returns true if there isn't any opened view holding an editor */
bool allEditorsClosed();