summaryrefslogtreecommitdiffstats
path: root/lib/kopalette/kopalette.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kopalette/kopalette.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kopalette/kopalette.h')
-rw-r--r--lib/kopalette/kopalette.h43
1 files changed, 22 insertions, 21 deletions
diff --git a/lib/kopalette/kopalette.h b/lib/kopalette/kopalette.h
index 8c7a1f98..6f5654ee 100644
--- a/lib/kopalette/kopalette.h
+++ b/lib/kopalette/kopalette.h
@@ -18,14 +18,14 @@
#ifndef _KO_PALETTE_
#define _KO_PALETTE_
-#include <qdockwindow.h>
-#include <qwidget.h>
-#include <qlabel.h>
-#include <qtoolbutton.h>
-#include <qpixmap.h>
-#include <qstring.h>
-#include <qfont.h>
-#include <qlayout.h>
+#include <tqdockwindow.h>
+#include <tqwidget.h>
+#include <tqlabel.h>
+#include <tqtoolbutton.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
+#include <tqfont.h>
+#include <tqlayout.h>
#include <koffice_export.h>
#include "kopalettemanager.h"
@@ -34,15 +34,16 @@
* to its organzing principle.
*
* There is currently no titlebar with a shade button; I hope to be
- * able to use QDockWidget's toggle view action for that.
+ * able to use TQDockWidget's toggle view action for that.
*/
-class KOPALETTE_EXPORT KoPalette : public QDockWindow {
+class KOPALETTE_EXPORT KoPalette : public TQDockWindow {
Q_OBJECT
+ TQ_OBJECT
public:
- KoPalette(QWidget * parent, const char * name);
+ KoPalette(TQWidget * tqparent, const char * name);
virtual ~KoPalette();
public:
@@ -52,23 +53,23 @@ public:
void setStyle(enumKoPaletteStyle style) { m_style = style; };
enumKoPaletteStyle style() { return m_style; };
- virtual void plug(QWidget * widget, const QString & name, int position) = 0;
- virtual void unplug(const QWidget * widget) = 0;
- virtual void showPage(QWidget *w) = 0;
- virtual void togglePageHidden(QWidget *w) = 0;
- virtual void hidePage(QWidget * w) = 0;
+ virtual void plug(TQWidget * widget, const TQString & name, int position) = 0;
+ virtual void unplug(const TQWidget * widget) = 0;
+ virtual void showPage(TQWidget *w) = 0;
+ virtual void togglePageHidden(TQWidget *w) = 0;
+ virtual void hidePage(TQWidget * w) = 0;
virtual void makeVisible(bool v) = 0;
- virtual bool isHidden(QWidget * w) = 0;
- virtual int indexOf(QWidget *w) = 0;
+ virtual bool isHidden(TQWidget * w) = 0;
+ virtual int indexOf(TQWidget *w) = 0;
protected:
- virtual void setMainWidget(QWidget * widget);
- QFont m_font;
+ virtual void setMainWidget(TQWidget * widget);
+ TQFont m_font;
enumKoPaletteStyle m_style;
private:
- QWidget * m_page;
+ TQWidget * m_page;
};