summaryrefslogtreecommitdiffstats
path: root/src/kviewmpeg2.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
commitb0e912c8b3d02a518fedda28c3180eb4794a7520 (patch)
tree07d344862562fab58cbe2df39d13d16f2e4d2bea /src/kviewmpeg2.h
parent4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff)
downloadk9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz
k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kviewmpeg2.h')
-rwxr-xr-xsrc/kviewmpeg2.h46
1 files changed, 24 insertions, 22 deletions
diff --git a/src/kviewmpeg2.h b/src/kviewmpeg2.h
index bd21253..1c0b58b 100755
--- a/src/kviewmpeg2.h
+++ b/src/kviewmpeg2.h
@@ -23,13 +23,13 @@
#include "k9dvdtitle.h"
-#include <qthread.h>
+#include <tqthread.h>
#include <viewmpeg2.h>
-#include <qwidget.h>
-#include <qstring.h>
-#include <qevent.h>
-#include <qmutex.h>
-#include <qgl.h>
+#include <tqwidget.h>
+#include <tqstring.h>
+#include <tqevent.h>
+#include <tqmutex.h>
+#include <tqgl.h>
#include "k9plaympeg2.h"
#include "k9glwidget.h"
#include "k9mplayer.h"
@@ -38,57 +38,59 @@
*@author
*/
-class k9Widget : public QWidget {
+class k9Widget : public TQWidget {
Q_OBJECT
+ TQ_OBJECT
protected:
- QImage *m_image;
- void paintEvent ( QPaintEvent * _event);
+ TQImage *m_image;
+ void paintEvent ( TQPaintEvent * _event);
public:
- k9Widget (QWidget *_parent);
- void setImage(QImage *_image);
+ k9Widget (TQWidget *_parent);
+ void setImage(TQImage *_image);
};
class kViewMPEG2 : public ViewMPEG2 {
Q_OBJECT
+ TQ_OBJECT
public:
kViewMPEG2();
~kViewMPEG2();
private:
- QMutex mutex;
+ TQMutex mutex;
k9DVDTitle *m_title;
- QString dev;
+ TQString dev;
int selTitle;
unsigned long idxLect;
bool pause;
bool lockSlider;
- QImage img;
+ TQImage img;
bool stopped;
void sliderReleased();
/** No descriptions */
void sliderPressed();
void lock();
void unlock();
- QString file;
- QString errMsg;
+ TQString file;
+ TQString errMsg;
bool error;
- QString length;
+ TQString length;
uint startSector;
uint lastSector;
k9PlayMPEG2 m_player;
- QGridLayout *m_layout;
+ TQGridLayout *m_layout;
bool m_prefUseGL;
k9GLWidget *m_GLwidget;
k9Widget *m_widget;
protected:
- void closeEvent( QCloseEvent* );
- void resizeEvent ( QResizeEvent * );
+ void closeEvent( TQCloseEvent* );
+ void resizeEvent ( TQResizeEvent * );
public slots: // Public slots
/** No descriptions */
int open (k9DVD *_dvd,k9DVDTitle * title,int chapter);
- void drawPixmap( QImage *image);
+ void drawPixmap( TQImage *image);
void drawppm(uchar *_buf,int _width,int _height,int _len);
- void setError(const QString & err);
+ void setError(const TQString & err);
void setPosition(uint32_t _position);
void setMax(uint32_t _position);
void setMin(uint32_t _position);