summaryrefslogtreecommitdiffstats
path: root/src/viewproperties.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/viewproperties.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/viewproperties.h')
-rw-r--r--src/viewproperties.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/viewproperties.h b/src/viewproperties.h
index 77f0a05..46e97d9 100644
--- a/src/viewproperties.h
+++ b/src/viewproperties.h
@@ -23,8 +23,8 @@
#include <dolphinview.h>
#include <kurl.h>
-#include <qdatetime.h>
-class QFile;
+#include <tqdatetime.h>
+class TQFile;
/**
* @short Maintains the view properties like 'view mode' or 'show hidden files' for a directory.
@@ -59,8 +59,8 @@ public:
void setSorting(DolphinView::Sorting sorting);
DolphinView::Sorting sorting() const;
- void setSortOrder(Qt::SortOrder sortOrder);
- Qt::SortOrder sortOrder() const;
+ void setSortOrder(TQt::SortOrder sortOrder);
+ TQt::SortOrder sortOrder() const;
void setValidForSubDirs(bool valid);
bool isValidForSubDirs() const;
@@ -80,15 +80,15 @@ private:
bool m_showHiddenFiles;
DolphinView::Mode m_viewMode;
- QDateTime m_timeStamp;
+ TQDateTime m_timeStamp;
DolphinView::Sorting m_sorting;
- Qt::SortOrder m_sortOrder;
+ TQt::SortOrder m_sortOrder;
};
class PropertiesNode
{
public:
- PropertiesNode(QFile* file = 0);
+ PropertiesNode(TQFile* file = 0);
~PropertiesNode();
PropertiesNode& operator = (const PropertiesNode& node);
bool isEmpty() const { return m_empty; }
@@ -101,10 +101,10 @@ private:
void setShowHiddenFilesEnabled(bool show) { m_props.m_showHiddenFiles = show; }
void setViewMode(DolphinView::Mode mode) { m_props.m_viewMode = mode; }
- void setTimeStamp(const QDateTime timeStamp) { m_props.m_timeStamp = timeStamp; }
- const QDateTime& timeStamp() const { return m_props.m_timeStamp; }
+ void setTimeStamp(const TQDateTime timeStamp) { m_props.m_timeStamp = timeStamp; }
+ const TQDateTime& timeStamp() const { return m_props.m_timeStamp; }
void setSorting(DolphinView::Sorting sorting) { m_props.m_sorting = sorting; }
- void setSortOrder(Qt::SortOrder sortOrder) { m_props.m_sortOrder = sortOrder; }
+ void setSortOrder(TQt::SortOrder sortOrder) { m_props.m_sortOrder = sortOrder; }
void setSubDirProperties(const Properties& props) { m_subDirProps = props; }
const Properties& subDirProperties() const { return m_subDirProps; }
@@ -122,7 +122,7 @@ private:
bool m_changedProps;
bool m_autoSave;
bool m_subDirValidityHidden;
- QString m_filepath;
+ TQString m_filepath;
PropertiesNode m_node;
};