diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-10-01 18:08:45 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-10-01 19:33:35 +0200 |
commit | 12348780ecc7d112ffdd8d4f4dc4ccd6a63f10e7 (patch) | |
tree | 94abc892aabb1f4e2eab0cf1ff028ddfba454d60 /src/xosd.h | |
parent | 77649eee774e6f71da886d5c72a616a0b46e08fa (diff) | |
download | kooldock-12348780ecc7d112ffdd8d4f4dc4ccd6a63f10e7.tar.gz kooldock-12348780ecc7d112ffdd8d4f4dc4ccd6a63f10e7.zip |
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/xosd.h')
-rw-r--r-- | src/xosd.h | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -5,29 +5,29 @@ #include <config.h> #endif -#include <qstring.h> -#include <qwidget.h> -#include <qfont.h> -#include <qpixmap.h> -#include <qbitmap.h> +#include <ntqstring.h> +#include <ntqwidget.h> +#include <ntqfont.h> +#include <ntqpixmap.h> +#include <ntqbitmap.h> #include <netwm.h> #include <kwin.h> -class xosd : public QWidget +class xosd : public TQWidget { Q_OBJECT public: - xosd(QWidget* parent=0, const char *name=0); + xosd(TQWidget* parent=0, const char *name=0); virtual ~xosd(); - void setText(const QString& t); - void setFont(const QString& font); + void setText(const TQString& t); + void setFont(const TQString& font); void setItalic(); void setBold(); void setSize(int size); - void setColor(const QString& color); - void setShadowColor(const QString& color); + void setColor(const TQString& color); + void setShadowColor(const TQString& color); void setShadowOffset(int off); void move2(int x, int y); void setOrientation(int orientation, int w, int mh); @@ -36,23 +36,23 @@ Q_OBJECT int w, h; int fontSize; int fontStyle; - QString fontFamily; + TQString fontFamily; private: NETWinInfo *info; - QString text; - QFont f; - QString fontColor; - QString shadowColor; + TQString text; + TQFont f; + TQString fontColor; + TQString shadowColor; int shadowOffset; int fOrientation; - QPixmap bgBuffer; + TQPixmap bgBuffer; int dw, rdh; int lastX, lastY; int fCleaner; - QPixmap maskBuffer; + TQPixmap maskBuffer; protected: - void paintEvent(QPaintEvent *); + void paintEvent(TQPaintEvent *); }; #endif // XOSD_H_ |