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/dolphiniconsviewsettings.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/dolphiniconsviewsettings.h') 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 -#include +#include +#include #include #include #include @@ -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); }; -- cgit v1.2.1