diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
commit | bf7f88413be3831a9372d323d02fc0335b9f9188 (patch) | |
tree | 516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvimagepart/gvimagepart.h | |
parent | e238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff) | |
download | gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip |
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvimagepart/gvimagepart.h')
-rw-r--r-- | src/gvimagepart/gvimagepart.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/gvimagepart/gvimagepart.h b/src/gvimagepart/gvimagepart.h index 3930e2c..7ba2be2 100644 --- a/src/gvimagepart/gvimagepart.h +++ b/src/gvimagepart/gvimagepart.h @@ -24,8 +24,8 @@ Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. #include <ktempfile.h> // Forward declarations -class QFile; -class QPoint; +class TQFile; +class TQPoint; class KAboutData; class KAction; @@ -45,6 +45,7 @@ class GVImagePart; */ class GVImagePartBrowserExtension: public KParts::BrowserExtension { Q_OBJECT + TQ_OBJECT public: GVImagePartBrowserExtension(GVImagePart* viewPart, const char* name=0L); @@ -63,8 +64,9 @@ private: */ class GVImagePart : public KParts::ReadOnlyPart { Q_OBJECT + TQ_OBJECT public: - GVImagePart(QWidget*, const char*, QObject*, const char*, const QStringList &); + GVImagePart(TQWidget*, const char*, TQObject*, const char*, const TQStringList &); virtual ~GVImagePart(); /** @@ -75,7 +77,7 @@ public: /** * Returns m_file */ - QString filePath(); + TQString filePath(); /** * Print the image being viewed @@ -118,7 +120,7 @@ private slots: void slotLoading(); void slotLoaded(const KURL& url); - void openContextMenu(const QPoint&); + void openContextMenu(const TQPoint&); void saveAs(); @@ -153,7 +155,7 @@ private: KAction* mNextImage; KAction* mPreviousImage; // alphabetically sorted filenames of images in the picture's directory - QStringList mImagesInDirectory; + TQStringList mImagesInDirectory; ImageLoader* mPrefetch; enum LastDirection { DirectionUnknown, DirectionNext, DirectionPrevious }; @@ -164,17 +166,18 @@ private: /** * This simple helper class uploads data to a remote URL asynchronously */ -class DataUploader : public QObject { +class DataUploader : public TQObject { Q_OBJECT + TQ_OBJECT public: - DataUploader(QWidget* dialogParent, const QByteArray& data, const KURL& destURL); + DataUploader(TQWidget* dialogParent, const TQByteArray& data, const KURL& destURL); private slots: void slotJobFinished(KIO::Job*); private: KTempFile mTempFile; - QWidget* mDialogParent; + TQWidget* mDialogParent; }; } // namespace |