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/dolphin.h | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) (limited to 'src/dolphin.h') diff --git a/src/dolphin.h b/src/dolphin.h index bccfbba..ca295b2 100644 --- a/src/dolphin.h +++ b/src/dolphin.h @@ -28,9 +28,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include "dolphinview.h" @@ -38,11 +38,11 @@ class KPrinter; class KURL; -class QLineEdit; +class TQLineEdit; class KFileIconView; -class QHBox; -class QIconViewItem; -class QSplitter; +class TQHBox; +class TQIconViewItem; +class TQSplitter; class KAction; class URLNavigator; class leftSidebar; @@ -58,6 +58,7 @@ class rightSidebar; class Dolphin : public KMainWindow { Q_OBJECT + TQ_OBJECT public: /** @@ -107,9 +108,9 @@ public: * of the 'Create New...' sub menu. Usually the list contains actions * for creating folders, text files, HTML files etc. */ - const QPtrList& fileGroupActions() const { return m_fileGroupActions; } - //const QPtrList& linkGroupActions() const { return m_linkGroupActions; } - //const QPtrList& linkToDeviceActions() const { return m_linkToDeviceActions; } + const TQPtrList& fileGroupActions() const { return m_fileGroupActions; } + //const TQPtrList& linkGroupActions() const { return m_linkGroupActions; } + //const TQPtrList& linkToDeviceActions() const { return m_linkToDeviceActions; } /** * Refreshs the views of the main window by recreating them dependent from @@ -161,14 +162,14 @@ public slots: void slotSortingChanged(DolphinView::Sorting sorting); /** Updates the state of the 'Sort Ascending/Descending' action. */ - void slotSortOrderChanged(Qt::SortOrder order); + void slotSortOrderChanged(TQt::SortOrder order); /** Updates the state of the 'Edit' menu actions. */ void slotSelectionChanged(); protected: - /** @see QMainWindow::closeEvent */ - virtual void closeEvent(QCloseEvent* event); + /** @see TQMainWindow::closeEvent */ + virtual void closeEvent(TQCloseEvent* event); /** * This method is called when it is time for the app to save its @@ -228,7 +229,7 @@ private slots: void slotUndoAvailable(bool available); /** Sets the text of the 'Undo' menu action to \a text. */ - void slotUndoTextChanged(const QString& text); + void slotUndoTextChanged(const TQString& text); /** * Updates the state of the 'Redo' menu action dependent @@ -237,7 +238,7 @@ private slots: void slotRedoAvailable(bool available); /** Sets the text of the 'Redo' menu action to \a text. */ - void slotRedoTextChanged(const QString& text); + void slotRedoTextChanged(const TQString& text); /** * Copies all selected items to the clipboard and marks @@ -398,7 +399,7 @@ private: void openleftSidebar(); void openrightSidebar(); - QSplitter* m_splitter; + TQSplitter* m_splitter; leftSidebar* m_leftsidebar; rightSidebar* m_rightsidebar; DolphinView* m_activeView; @@ -431,25 +432,25 @@ private: int id; DolphinCommand command; }; - QValueList m_pendingUndoJobs; + TQValueList m_pendingUndoJobs; /** Contains meta information for creating files. */ struct CreateFileEntry { - QString name; - QString filePath; - QString templatePath; - QString icon; - QString comment; + TQString name; + TQString filePath; + TQString templatePath; + TQString icon; + TQString comment; }; - QPtrList m_fileGroupActions; - KSortableValueList m_createFileTemplates; + TQPtrList m_fileGroupActions; + KSortableValueList m_createFileTemplates; // TODO: not used yet. See documentation of Dolphin::linkGroupActions() // and Dolphin::linkToDeviceActions() in for details. - //QPtrList m_linkGroupActions; - //QPtrList m_linkToDeviceActions; + //TQPtrList m_linkGroupActions; + //TQPtrList m_linkToDeviceActions; }; #endif // _DOLPHIN_H_ -- cgit v1.2.1