diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
commit | 7a741e43ff09e70396a918956219b8316c48e522 (patch) | |
tree | 3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/dolphin.h | |
parent | a48487ef0c329434b58b6f920111bb0999f1109e (diff) | |
download | dolphin-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/dolphin.h')
-rw-r--r-- | src/dolphin.h | 53 |
1 files changed, 27 insertions, 26 deletions
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 <kapplication.h> #include <kmainwindow.h> -#include <qvaluelist.h> -#include <qptrlist.h> -#include <qstring.h> +#include <tqvaluelist.h> +#include <tqptrlist.h> +#include <tqstring.h> #include <ksortablevaluelist.h> #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<KAction>& fileGroupActions() const { return m_fileGroupActions; } - //const QPtrList<KAction>& linkGroupActions() const { return m_linkGroupActions; } - //const QPtrList<KAction>& linkToDeviceActions() const { return m_linkToDeviceActions; } + const TQPtrList<KAction>& fileGroupActions() const { return m_fileGroupActions; } + //const TQPtrList<KAction>& linkGroupActions() const { return m_linkGroupActions; } + //const TQPtrList<KAction>& 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<UndoInfo> m_pendingUndoJobs; + TQValueList<UndoInfo> 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<KAction> m_fileGroupActions; - KSortableValueList<CreateFileEntry,QString> m_createFileTemplates; + TQPtrList<KAction> m_fileGroupActions; + KSortableValueList<CreateFileEntry,TQString> m_createFileTemplates; // TODO: not used yet. See documentation of Dolphin::linkGroupActions() // and Dolphin::linkToDeviceActions() in for details. - //QPtrList<KAction> m_linkGroupActions; - //QPtrList<KAction> m_linkToDeviceActions; + //TQPtrList<KAction> m_linkGroupActions; + //TQPtrList<KAction> m_linkToDeviceActions; }; #endif // _DOLPHIN_H_ |