summaryrefslogtreecommitdiffstats
path: root/kbfxlib/common/kbfxfontchooser.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 22:07:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 22:07:15 +0000
commit421b60af92c83b889f8903c2898f2bd07186fcd8 (patch)
treead873a24c9438baed4942fda795430a4c3dc9a9a /kbfxlib/common/kbfxfontchooser.h
parent39e896bddf25bf34cbf8be814d959181e2c1d1dd (diff)
downloadkbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.tar.gz
kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.zip
TQt4 port kbfx
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbfxlib/common/kbfxfontchooser.h')
-rw-r--r--kbfxlib/common/kbfxfontchooser.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/kbfxlib/common/kbfxfontchooser.h b/kbfxlib/common/kbfxfontchooser.h
index 639a674..d0535d1 100644
--- a/kbfxlib/common/kbfxfontchooser.h
+++ b/kbfxlib/common/kbfxfontchooser.h
@@ -24,33 +24,34 @@
#include <kfontdialog.h>
#include <klocale.h>
#include <kiconloader.h>
-#include <qwidget.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qfont.h>
-#include <qsizepolicy.h>
+#include <tqwidget.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqfont.h>
+#include <tqsizepolicy.h>
-class QLabel;
-class QPushButton;
-class QFont;
+class TQLabel;
+class TQPushButton;
+class TQFont;
/**
@author Petri Damsten <[email protected]>
*/
-class KBFXFontChooser : public QWidget
+class KBFXFontChooser : public TQWidget
{
Q_OBJECT
- Q_PROPERTY ( QFont font READ font WRITE setFont )
+ TQ_OBJECT
+ TQ_PROPERTY ( TQFont font READ font WRITE setFont )
public:
- KBFXFontChooser ( QWidget *parent = 0, const char *name = 0 );
+ KBFXFontChooser ( TQWidget *tqparent = 0, const char *name = 0 );
~KBFXFontChooser();
- QFont font() const { return m_font; };
+ TQFont font() const { return m_font; };
public slots:
- void setFont ( const QFont& font );
+ void setFont ( const TQFont& font );
protected:
void updateFontLabel();
@@ -59,9 +60,9 @@ class KBFXFontChooser : public QWidget
void buttonClicked();
private:
- QFont m_font;
- QLabel* m_label;
- QPushButton* m_button;
+ TQFont m_font;
+ TQLabel* m_label;
+ TQPushButton* m_button;
signals:
void FontChanged();