diff options
Diffstat (limited to 'ksquirrel/sq_slideshowwidget.h')
-rw-r--r-- | ksquirrel/sq_slideshowwidget.h | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/ksquirrel/sq_slideshowwidget.h b/ksquirrel/sq_slideshowwidget.h index 5d14a68..c6e1b43 100644 --- a/ksquirrel/sq_slideshowwidget.h +++ b/ksquirrel/sq_slideshowwidget.h @@ -18,13 +18,13 @@ #ifndef SQ_SLIDESHOWWIDGET_H #define SQ_SLIDESHOWWIDGET_H -#include <qwidget.h> -#include <qpixmap.h> +#include <tqwidget.h> +#include <tqpixmap.h> -class QTimer; -class QHBox; -class QLabel; -class QToolButton; +class TQTimer; +class TQHBox; +class TQLabel; +class TQToolButton; /** *@author Baryshev Dmitry @@ -35,19 +35,20 @@ class QToolButton; * "Action -> Slideshow advanced". */ -class SQ_SlideShowWidget : public QWidget +class SQ_SlideShowWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - SQ_SlideShowWidget(QWidget *parent = 0, const char *name = 0); + SQ_SlideShowWidget(TQWidget *tqparent = 0, const char *name = 0); ~SQ_SlideShowWidget(); void beginSlideShow(int totl); void endSlideShow(); - void loadImage(const QString &path, int); + void loadImage(const TQString &path, int); - virtual bool eventFilter(QObject * watched, QEvent *e); + virtual bool eventFilter(TQObject * watched, TQEvent *e); static SQ_SlideShowWidget* instance() { return m_inst; } @@ -55,12 +56,12 @@ class SQ_SlideShowWidget : public QWidget /* * Draw decoded image */ - virtual void paintEvent(QPaintEvent *); + virtual void paintEvent(TQPaintEvent *); /* * Ignore close event and tell KSquirrel to stop slideshow */ - virtual void closeEvent(QCloseEvent *); + virtual void closeEvent(TQCloseEvent *); /* * Return, Escape = stop slideshow @@ -68,12 +69,12 @@ class SQ_SlideShowWidget : public QWidget * Page Up = previous image * Page Down = next image */ - virtual void keyPressEvent(QKeyEvent *); + virtual void keyPressEvent(TQKeyEvent *); /* * show toolbar with actions */ - virtual void mouseMoveEvent(QMouseEvent *); + virtual void mouseMoveEvent(TQMouseEvent *); private: void constructMessage(); @@ -90,16 +91,16 @@ class SQ_SlideShowWidget : public QWidget void slotResetPause(); private: - QString path; + TQString path; int current; - QPixmap pixmap; - QColor bgcolor, tcolor; - QTimer *timerHide; - QLabel *message; - QHBox *options; + TQPixmap pixmap; + TQColor bgcolor, tcolor; + TQTimer *timerHide; + TQLabel *message; + TQHBox *options; bool messages, mes_name, mes_size, mes_pos; int total; - QToolButton *buttonPause; + TQToolButton *buttonPause; static SQ_SlideShowWidget *m_inst; }; |