From 7a741e43ff09e70396a918956219b8316c48e522 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 27 Apr 2011 00:40:29 +0000 Subject: TQt4 port Dolphin This enables compilation under Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/infosidebarpage.h | 58 ++++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 28 deletions(-) (limited to 'src/infosidebarpage.h') diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h index 48e3dd4..47c7973 100644 --- a/src/infosidebarpage.h +++ b/src/infosidebarpage.h @@ -22,8 +22,8 @@ #include -#include -#include +#include +#include #include #include @@ -33,14 +33,14 @@ namespace KIO { class Job; }; -class QPixmap; -class QIconSet; -class QString; -class QPainter; +class TQPixmap; +class TQIconSet; +class TQString; +class TQPainter; class KFileItem; -class QLabel; -class QVBox; -class QGrid; +class TQLabel; +class TQVBox; +class TQGrid; class PixmapViewer; /** @@ -51,9 +51,10 @@ class PixmapViewer; class InfoSidebarPage : public SidebarPage { Q_OBJECT + TQ_OBJECT public: - InfoSidebarPage(QWidget* parent); + InfoSidebarPage(TQWidget* tqparent); virtual ~InfoSidebarPage(); protected: @@ -99,7 +100,7 @@ private slots: * Is invoked if a preview is available for the item. The preview * \a pixmap is shown inside the info page. */ - void gotPreview(const KFileItem* item, const QPixmap& pixmap); + void gotPreview(const KFileItem* item, const TQPixmap& pixmap); /** * Starts the service of m_actionsVector with the index \index on @@ -127,8 +128,8 @@ private: // TODO: the following methods are just a prototypes for meta // info generation... void createMetaInfo(); - void addInfoLine(const QString& labelText, - const QString& infoText); + void addInfoLine(const TQString& labelText, + const TQString& infoText); void beginInfoLines(); void endInfoLines(); @@ -136,7 +137,7 @@ private: * Returns true, if the string \a key represents a meta information * that should be shown. */ - bool showMetaInfo(const QString& key) const; + bool showMetaInfo(const TQString& key) const; /** * Inserts the available actions to the info page for the given item. @@ -145,33 +146,34 @@ private: bool m_multipleSelection; bool m_pendingPreview; - QTimer* m_timer; + TQTimer* m_timer; KURL m_shownURL; KURL m_urlCandidate; PixmapViewer* m_preview; - QLabel* m_name; + TQLabel* m_name; int m_currInfoLineIdx; - QGrid* m_infoGrid; - QPtrList m_infoWidgets; // TODO: use children() from QObject instead + TQGrid* m_infoGrid; + TQPtrList m_infoWidgets; // TODO: use tqchildren() from TQObject instead - QVBox* m_actionBox; - QPtrList m_actionWidgets; // TODO: use children() from QObject instead - QValueVector m_actionsVector; + TQVBox* m_actionBox; + TQPtrList m_actionWidgets; // TODO: use tqchildren() from TQObject instead + TQValueVector m_actionsVector; }; // TODO #1: move to SidebarPage? // TODO #2: quite same button from the optical point of view as URLNavigatorButton // -> provide helper class or common base class -class ServiceButton : public QPushButton +class ServiceButton : public TQPushButton { Q_OBJECT + TQ_OBJECT public: - ServiceButton(const QIconSet& icon, - const QString& text, - QWidget* parent, + ServiceButton(const TQIconSet& icon, + const TQString& text, + TQWidget* tqparent, int index); virtual ~ServiceButton(); @@ -179,9 +181,9 @@ signals: void requestServiceStart(int index); protected: - virtual void drawButton(QPainter* painter); - virtual void enterEvent(QEvent* event); - virtual void leaveEvent(QEvent* event); + virtual void drawButton(TQPainter* painter); + virtual void enterEvent(TQEvent* event); + virtual void leaveEvent(TQEvent* event); private slots: void slotReleased(); -- cgit v1.2.1