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/urlnavigator.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'src/urlnavigator.h') diff --git a/src/urlnavigator.h b/src/urlnavigator.h index 706215a..ecd50b1 100644 --- a/src/urlnavigator.h +++ b/src/urlnavigator.h @@ -21,14 +21,14 @@ #ifndef URLNAVIGATOR_H #define URLNAVIGATOR_H -#include +#include #include -#include +#include class DolphinView; -class QPopupMenu; -class QPushButton; -class QComboBox; +class TQPopupMenu; +class TQPushButton; +class TQComboBox; class BookmarkSelector; class KURLComboBox; class KFileItem; @@ -52,9 +52,10 @@ class KFileItem; * * @author Peter Penz */ -class URLNavigator : public QHBox +class URLNavigator : public TQHBox { Q_OBJECT + TQ_OBJECT public: /** @@ -72,8 +73,8 @@ public: const KURL& url() const { return m_url; } - void setCurrentFileName(const QString& name) { m_currentFileName = name; } - const QString& currentFileName() const { return m_currentFileName; } + void setCurrentFileName(const TQString& name) { m_currentFileName = name; } + const TQString& currentFileName() const { return m_currentFileName; } void setContentsX(int x) { m_contentsX = x; } int contentsX() const { return m_contentsX; } @@ -83,7 +84,7 @@ public: private: KURL m_url; - QString m_currentFileName; + TQString m_currentFileName; int m_contentsX; int m_contentsY; }; @@ -110,7 +111,7 @@ public: * @param index Output parameter which indicates the current * index of the location. */ - const QValueList& history(int& index) const; + const TQValueList& history(int& index) const; /** * Goes back one step in the URL history. The signals @@ -168,10 +169,10 @@ signals: protected: /** If the Escape key is pressed, the navigation bar should switch to the browse mode. */ - virtual void keyReleaseEvent(QKeyEvent* event); + virtual void keyReleaseEvent(TQKeyEvent* event); private slots: - void slotReturnPressed(const QString& text); + void slotReturnPressed(const TQString& text); void slotURLActivated(const KURL& url); void slotRequestActivation(); @@ -194,8 +195,8 @@ private slots: private: int m_historyIndex; DolphinView* m_dolphinView; - QValueList m_history; - QPushButton* m_toggleButton; + TQValueList m_history; + TQPushButton* m_toggleButton; BookmarkSelector* m_bookmarkSelector; KURLComboBox* m_pathBox; -- cgit v1.2.1