summaryrefslogtreecommitdiffstats
path: root/client/fahrenheitclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/fahrenheitclient.h')
-rw-r--r--client/fahrenheitclient.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/client/fahrenheitclient.h b/client/fahrenheitclient.h
index a3c6552..ab52d0b 100644
--- a/client/fahrenheitclient.h
+++ b/client/fahrenheitclient.h
@@ -27,12 +27,12 @@
#ifndef FAHRENHEITCLIENT_H
#define FAHRENHEITCLIENT_H
-#include <qbutton.h>
+#include <ntqbutton.h>
#include <kdecoration.h>
#include <kdecorationfactory.h>
-class QSpacerItem;
-class QPoint;
+class TQSpacerItem;
+class TQPoint;
namespace Fahrenheit {
@@ -59,49 +59,49 @@ public:
virtual bool reset(unsigned long changed);
static bool initialized();
- static Qt::AlignmentFlags titleAlign();
+ static TQt::AlignmentFlags titleAlign();
private:
bool readConfig();
private:
static bool initialized_;
- static Qt::AlignmentFlags titlealign_;
+ static TQt::AlignmentFlags titlealign_;
};
inline bool FahrenheitFactory::initialized()
{ return initialized_; }
-inline Qt::AlignmentFlags FahrenheitFactory::titleAlign()
+inline TQt::AlignmentFlags FahrenheitFactory::titleAlign()
{ return titlealign_; }
// FahrenheitButton //////////////////////////////////////////////////////////////
-class FahrenheitButton : public QButton
+class FahrenheitButton : public TQButton
{
public:
FahrenheitButton(FahrenheitClient *parent=0, const char *name=0,
- const QString &tip=NULL,
+ const TQString &tip=NULL,
ButtonType type=ButtonHelp,
- QString pixmap=NULL);
+ TQString pixmap=NULL);
~FahrenheitButton();
- void setPixmap(QString pixmap);
- QSize sizeHint() const;
+ void setPixmap(TQString pixmap);
+ TQSize sizeHint() const;
int lastMousePress() const;
void reset();
private:
- void enterEvent(QEvent *e);
- void leaveEvent(QEvent *e);
- void mousePressEvent(QMouseEvent *e);
- void mouseReleaseEvent(QMouseEvent *e);
- void drawButton(QPainter *painter);
+ void enterEvent(TQEvent *e);
+ void leaveEvent(TQEvent *e);
+ void mousePressEvent(TQMouseEvent *e);
+ void mouseReleaseEvent(TQMouseEvent *e);
+ void drawButton(TQPainter *painter);
private:
FahrenheitClient *client_;
ButtonType type_;
- QPixmap *deco_;
+ TQPixmap *deco_;
int lastmouse_;
};
@@ -132,19 +132,19 @@ public:
virtual void doShape();
virtual void borders(int &l, int &r, int &t, int &b) const;
- virtual void resize(const QSize &size);
- virtual QSize minimumSize() const;
- virtual Position mousePosition(const QPoint &point) const;
+ virtual void resize(const TQSize &size);
+ virtual TQSize minimumSize() const;
+ virtual Position mousePosition(const TQPoint &point) const;
private:
- void addButtons(QBoxLayout* layout, const QString& buttons);
+ void addButtons(TQBoxLayout* layout, const TQString& buttons);
bool isTool();
- bool eventFilter(QObject *obj, QEvent *e);
- void mouseDoubleClickEvent(QMouseEvent *e);
- void paintEvent(QPaintEvent *e);
- void resizeEvent(QResizeEvent *);
- void showEvent(QShowEvent *);
+ bool eventFilter(TQObject *obj, TQEvent *e);
+ void mouseDoubleClickEvent(TQMouseEvent *e);
+ void paintEvent(TQPaintEvent *e);
+ void resizeEvent(TQResizeEvent *);
+ void showEvent(TQShowEvent *);
private slots:
void maxButtonPressed();
@@ -153,12 +153,12 @@ private slots:
private:
int buttonWidth_;
FahrenheitButton *button[ButtonTypeCount];
- QBoxLayout *mainLayout_;
- QBoxLayout *topLayout_;
- QBoxLayout *menuLayout_;
- QBoxLayout *buttonLayout_;
- QSpacerItem *titleSpacer_;
- QSpacerItem *barSpacer_;
+ TQBoxLayout *mainLayout_;
+ TQBoxLayout *topLayout_;
+ TQBoxLayout *menuLayout_;
+ TQBoxLayout *buttonLayout_;
+ TQSpacerItem *titleSpacer_;
+ TQSpacerItem *barSpacer_;
};
} // namespace Fahrenheit