diff options
Diffstat (limited to 'ksquirrel/sq_glview.h')
-rw-r--r-- | ksquirrel/sq_glview.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/ksquirrel/sq_glview.h b/ksquirrel/sq_glview.h index a19fe7c..6841f04 100644 --- a/ksquirrel/sq_glview.h +++ b/ksquirrel/sq_glview.h @@ -18,8 +18,8 @@ #ifndef SQ_GLVIEW_H #define SQ_GLVIEW_H -#include <qvbox.h> -#include <qmap.h> +#include <tqvbox.h> +#include <tqmap.h> #include <ktoolbar.h> @@ -31,16 +31,16 @@ class SQ_Config; class KStatusBar; class KTabBar; -class QLabel; +class TQLabel; class SQ_ToolBar : public KToolBar { public: - SQ_ToolBar(QWidget *parent); + SQ_ToolBar(TQWidget *tqparent); ~SQ_ToolBar(); protected: - void mouseReleaseEvent(QMouseEvent *); + void mouseReleaseEvent(TQMouseEvent *); }; /* @@ -69,18 +69,19 @@ class SQ_ToolBar : public KToolBar * */ -class SQ_GLView : public QVBox +class SQ_GLView : public TQVBox { Q_OBJECT + TQ_OBJECT public: - SQ_GLView(QWidget *parent = 0); + SQ_GLView(TQWidget *tqparent = 0); ~SQ_GLView(); void leftTab(); void rightTab(); - void addPage(const QString &label); + void addPage(const TQString &label); void removePage(int); void removeTabs(); @@ -114,12 +115,12 @@ class SQ_GLView : public QVBox */ SQ_ToolBar* toolbar(); - QWidget* boxBar(); + TQWidget* boxBar(); /* * Get a pointer to a widget in statusbar by name. */ - QLabel* sbarWidget(const QString &name) const; + TQLabel* sbarWidget(const TQString &name) const; static SQ_GLView* window() { return m_instance; } @@ -133,7 +134,7 @@ class SQ_GLView : public QVBox * ignore close event. If current version is 'small', save all important * parameters to config file and accept close event (exit). */ - void closeEvent(QCloseEvent *e); + void closeEvent(TQCloseEvent *e); private: @@ -142,16 +143,16 @@ class SQ_GLView : public QVBox */ void createContent(); - virtual bool eventFilter(QObject *watched, QEvent *e); + virtual bool eventFilter(TQObject *watched, TQEvent *e); private: SQ_GLWidget *gl; KStatusBar *sbar; - QMap<QString, QLabel* > names; + TQMap<TQString, TQLabel* > names; SQ_ToolBar *m_toolbar; KTabBar *m_tabbar; bool m_tabs, m_tabsclose; - QVBox *box; + TQVBox *box; static SQ_GLView *m_instance; }; @@ -175,7 +176,7 @@ KStatusBar* SQ_GLView::statusbar() } inline -QLabel* SQ_GLView::sbarWidget(const QString &name) const +TQLabel* SQ_GLView::sbarWidget(const TQString &name) const { return names[name]; } @@ -193,7 +194,7 @@ bool SQ_GLView::tabsClose() const } inline -QWidget* SQ_GLView::boxBar() +TQWidget* SQ_GLView::boxBar() { return box; } |