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/dolphiniconsviewsettings.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/dolphiniconsviewsettings.h')
-rw-r--r-- | src/dolphiniconsviewsettings.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/dolphiniconsviewsettings.h b/src/dolphiniconsviewsettings.h index ec63677..cc78074 100644 --- a/src/dolphiniconsviewsettings.h +++ b/src/dolphiniconsviewsettings.h @@ -20,8 +20,8 @@ #ifndef DOLPHINICONSVIEWSETTINGS_H #define DOLPHINICONSVIEWSETTINGS_H -#include <qstring.h> -#include <qiconview.h> +#include <tqstring.h> +#include <tqiconview.h> #include <dolphinview.h> #include <dolphiniconsview.h> #include <dolphinsettingsbase.h> @@ -30,7 +30,7 @@ * @brief Contains the settings for the icons view. * * The following properties are stored: - * - layout mode (icons or previews) + * - tqlayout mode (icons or previews) * - icon size * - preview size * - grid width, height and spacing @@ -69,11 +69,11 @@ public: void setGridSpacing(int spacing); int gridSpacing() const { return m_gridSpacing; } - void setArrangement(QIconView::Arrangement arrangement) { m_arrangement = arrangement; } - QIconView::Arrangement arrangement() const { return m_arrangement; } + void setArrangement(TQIconView::Arrangement arrangement) { m_arrangement = arrangement; } + TQIconView::Arrangement arrangement() const { return m_arrangement; } - void setFontFamily(const QString& family) { m_fontFamily = family; } - const QString& fontFamily() const { return m_fontFamily; } + void setFontFamily(const TQString& family) { m_fontFamily = family; } + const TQString& fontFamily() const { return m_fontFamily; } void setFontSize(int size) { m_fontSize = size; } int fontSize() const { return m_fontSize; } @@ -92,11 +92,11 @@ public: * DolhinIconsViewSettings::textWidthHint. * * The calculation of the grid width and grid height is a little bit tricky, - * as the user model does not fit to the implementation model of QIconView. The user model + * as the user model does not fit to the implementation model of TQIconView. The user model * allows to specify icon-, preview- and text width sizes, whereas the implementation * model expects only a grid width and height. The nasty thing is that the specified * width and height varies dependant from the arrangement (e. g. the height is totally - * ignored for the top-to-bottom arrangement inside QIconView). + * ignored for the top-to-bottom arrangement inside TQIconView). */ void calculateGridSize(int hint); @@ -109,8 +109,8 @@ public: int textWidthHint() const; private: - QIconView::Arrangement m_arrangement; - DolphinIconsView::LayoutMode m_layoutMode; + TQIconView::Arrangement m_arrangement; + DolphinIconsView::LayoutMode m_tqlayoutMode; int m_iconSize; int m_previewSize; int m_gridWidth; @@ -118,7 +118,7 @@ private: int m_gridSpacing; int m_fontSize; int m_textlinesCount; - QString m_fontFamily; + TQString m_fontFamily; void setConfigGroup(KConfig* config); }; |