diff options
Diffstat (limited to 'src/kvirc/ui/kvi_mdicaption.h')
-rw-r--r-- | src/kvirc/ui/kvi_mdicaption.h | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/src/kvirc/ui/kvi_mdicaption.h b/src/kvirc/ui/kvi_mdicaption.h index 6bec4051..d070e194 100644 --- a/src/kvirc/ui/kvi_mdicaption.h +++ b/src/kvirc/ui/kvi_mdicaption.h @@ -26,24 +26,25 @@ #include "kvi_settings.h" -#include <qtoolbutton.h> -#include <qlabel.h> +#include <tqtoolbutton.h> +#include <tqlabel.h> #include "kvi_styled_controls.h" class KviMdiManager; class KviMdiChild; -class KVIRC_API KviMdiCaptionButton : public QToolButton +class KVIRC_API KviMdiCaptionButton : public TQToolButton { Q_OBJECT + TQ_OBJECT public: - KviMdiCaptionButton(const QPixmap &pix,QWidget * parent,const char * name); + KviMdiCaptionButton(const TQPixmap &pix,TQWidget * tqparent,const char * name); ~KviMdiCaptionButton(); protected: - virtual void drawButton(QPainter * p); + virtual void drawButton(TQPainter * p); #ifdef COMPILE_USE_QT4 - virtual void paintEvent(QPaintEvent *e); + virtual void paintEvent(TQPaintEvent *e); #endif }; @@ -51,23 +52,25 @@ protected: class KviMenuBarToolButton : public KviStyledToolButton { Q_OBJECT + TQ_OBJECT public: - KviMenuBarToolButton(QWidget * par,const QPixmap &img, const char * name); + KviMenuBarToolButton(TQWidget * par,const TQPixmap &img, const char * name); ~KviMenuBarToolButton(); public: - virtual QSize sizeHint() const; + virtual TQSize tqsizeHint() const; }; -class KVIRC_API KviMdiCaption : public QWidget +class KVIRC_API KviMdiCaption : public TQWidget { friend class KviMdiChild; Q_OBJECT + TQ_OBJECT public: - KviMdiCaption(KviMdiChild * parent,const char * name); + KviMdiCaption(KviMdiChild * tqparent,const char * name); ~KviMdiCaption(); protected: - QPoint m_lastMousePos; + TQPoint m_lastMousePos; bool m_bMouseGrabbed; int m_iLineSpacing; bool m_bActive; @@ -75,25 +78,25 @@ protected: KviMdiCaptionButton * m_pMinimizeButton; KviMdiCaptionButton * m_pMaximizeButton; KviMdiCaptionButton * m_pCloseButton; - QPixmap m_pixSystemIcon; + TQPixmap m_pixSystemIcon; public: int heightHint(); void setActive(bool bActive); bool active(){ return m_bActive; }; - void setSystemIcon(const QPixmap &pix){ m_pSystemButton->setPixmap(pix); m_pixSystemIcon = pix; }; - const QPixmap * systemIcon(){ return &m_pixSystemIcon; }; + void setSystemIcon(const TQPixmap &pix){ m_pSystemButton->setPixmap(pix); m_pixSystemIcon = pix; }; + const TQPixmap * systemIcon(){ return &m_pixSystemIcon; }; void enableClose(bool bEnable){ m_pCloseButton->setEnabled(bEnable); }; bool closeEnabled(){ return m_pCloseButton->isEnabled(); }; - virtual void setFocusProxy(QWidget * w); + virtual void setFocusProxy(TQWidget * w); protected: void calcLineSpacing(); - virtual void fontChange(const QFont &old); - virtual void mousePressEvent(QMouseEvent *e); - virtual void mouseDoubleClickEvent(QMouseEvent *e); - virtual void mouseMoveEvent(QMouseEvent *e); - virtual void mouseReleaseEvent(QMouseEvent *e); - virtual void paintEvent(QPaintEvent * e); - virtual void resizeEvent(QResizeEvent * e); + virtual void fontChange(const TQFont &old); + virtual void mousePressEvent(TQMouseEvent *e); + virtual void mouseDoubleClickEvent(TQMouseEvent *e); + virtual void mouseMoveEvent(TQMouseEvent *e); + virtual void mouseReleaseEvent(TQMouseEvent *e); + virtual void paintEvent(TQPaintEvent * e); + virtual void resizeEvent(TQResizeEvent * e); void reloadImages(); }; |