summaryrefslogtreecommitdiffstats
path: root/src/infosidebarpage.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
commit7a741e43ff09e70396a918956219b8316c48e522 (patch)
tree3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/infosidebarpage.h
parenta48487ef0c329434b58b6f920111bb0999f1109e (diff)
downloaddolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz
dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip
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
Diffstat (limited to 'src/infosidebarpage.h')
-rw-r--r--src/infosidebarpage.h58
1 files changed, 30 insertions, 28 deletions
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 <sidebarpage.h>
-#include <qvaluevector.h>
-#include <qpushbutton.h>
+#include <tqvaluevector.h>
+#include <tqpushbutton.h>
#include <kurl.h>
#include <ksortablevaluelist.h>
@@ -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<QLabel> m_infoWidgets; // TODO: use children() from QObject instead
+ TQGrid* m_infoGrid;
+ TQPtrList<TQLabel> m_infoWidgets; // TODO: use tqchildren() from TQObject instead
- QVBox* m_actionBox;
- QPtrList<QWidget> m_actionWidgets; // TODO: use children() from QObject instead
- QValueVector<KDEDesktopMimeType::Service> m_actionsVector;
+ TQVBox* m_actionBox;
+ TQPtrList<TQWidget> m_actionWidgets; // TODO: use tqchildren() from TQObject instead
+ TQValueVector<KDEDesktopMimeType::Service> 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();