summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/slideshow/imageloadthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'kipi-plugins/slideshow/imageloadthread.h')
-rw-r--r--kipi-plugins/slideshow/imageloadthread.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/kipi-plugins/slideshow/imageloadthread.h b/kipi-plugins/slideshow/imageloadthread.h
index 41c5386..b1bfe1d 100644
--- a/kipi-plugins/slideshow/imageloadthread.h
+++ b/kipi-plugins/slideshow/imageloadthread.h
@@ -28,33 +28,34 @@
// QT includes.
-#include <qimage.h>
-#include <qthread.h>
-#include <qwaitcondition.h>
-#include <qmutex.h>
-#include <qvaluelist.h>
-#include <qpair.h>
-#include <qstring.h>
-#include <qobject.h>
+#include <tqimage.h>
+#include <tqthread.h>
+#include <tqwaitcondition.h>
+#include <tqmutex.h>
+#include <tqvaluelist.h>
+#include <tqpair.h>
+#include <tqstring.h>
+#include <tqobject.h>
namespace KIPISlideShowPlugin
{
-class ImageLoadThread : public QObject, public QThread
+class ImageLoadThread : public TQObject, public TQThread
{
Q_OBJECT
+ TQ_OBJECT
public:
- ImageLoadThread(QValueList<QPair<QString, int> >& fileList, int width, int height);
+ ImageLoadThread(TQValueList<TQPair<TQString, int> >& fileList, int width, int height);
void quit();
void requestNewImage();
bool grabImage() { m_imageLock.lock(); return m_haveImages; };
void ungrabImage() { m_imageLock.unlock(); };
bool ready() { return m_initialized; };
- const QImage &image() { return m_texture; };
+ const TQImage &image() { return m_texture; };
float imageAspect() { return m_textureAspect; };
signals:
@@ -66,21 +67,21 @@ protected:
void run();
bool loadImage();
- void invalidateCurrentImageName();
+ void tqinvalidateCurrentImageName();
private:
int m_fileIndex;
- QValueList<QPair<QString, int> > m_fileList;
+ TQValueList<TQPair<TQString, int> > m_fileList;
int m_width, m_height;
- QWaitCondition m_imageRequest;
- QMutex m_condLock, m_imageLock;
+ TQWaitCondition m_imageRequest;
+ TQMutex m_condLock, m_imageLock;
bool m_initialized, m_needImage, m_haveImages, m_quitRequested, m_scanSubdirectories;
float m_textureAspect;
- QImage m_texture;
+ TQImage m_texture;
};
} // NameSpace KIPISlideShowPlugin