summaryrefslogtreecommitdiffstats
path: root/src/theme.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-21 04:48:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-21 04:48:07 +0000
commit0525bd68b1324389d0825761afec5d2ed252a9a5 (patch)
tree8a1cb1649c11510a8a8c9fbacc353bfdad74bad2 /src/theme.cpp
parent5cce0292935a57e7fab4417d428637fcb84315a9 (diff)
downloadkbookreader-0525bd68b1324389d0825761afec5d2ed252a9a5.tar.gz
kbookreader-0525bd68b1324389d0825761afec5d2ed252a9a5.zip
TQt4 port kbookreader
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbookreader@1242484 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/theme.cpp')
-rw-r--r--src/theme.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/theme.cpp b/src/theme.cpp
index d6e868c..9bfd824 100644
--- a/src/theme.cpp
+++ b/src/theme.cpp
@@ -17,9 +17,9 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#include <qstring.h>
-#include <qpixmap.h>
-#include <qimage.h>
+#include <tqstring.h>
+#include <tqpixmap.h>
+#include <tqimage.h>
#include <kglobal.h>
#include <kstandarddirs.h>
#include "theme.h"
@@ -37,19 +37,19 @@ Theme * Theme::self()
return theme;
}
-void Theme::loadTheme(const QString& name)
+void Theme::loadTheme(const TQString& name)
{
- const QString themePath = "themes/" + name; //FIXME: Add 'name' check. Could be a hole.
- QString bgPath = KGlobal::dirs()->findResource("appdata", themePath + "/bg.png");
- QString bookmarkPath = KGlobal::dirs()->findResource("appdata", themePath + "/bookmark.png");
- m_bgPixmap = QPixmap(bgPath);
+ const TQString themePath = "themes/" + name; //FIXME: Add 'name' check. Could be a hole.
+ TQString bgPath = KGlobal::dirs()->findResource("appdata", themePath + "/bg.png");
+ TQString bookmarkPath = KGlobal::dirs()->findResource("appdata", themePath + "/bookmark.png");
+ m_bgPixmap = TQPixmap(bgPath);
m_bgResizedPixmap = m_bgPixmap;
- m_bookmarkPixmap = QPixmap(bookmarkPath);
+ m_bookmarkPixmap = TQPixmap(bookmarkPath);
}
-const QPixmap & Theme::bgPixmap(QSize size) const
+const TQPixmap & Theme::bgPixmap(TQSize size) const
{
- if (size == QSize(0, 0) || size == m_bgPixmap.size())
+ if (size == TQSize(0, 0) || size == m_bgPixmap.size())
return m_bgPixmap;
if (size == m_bgResizedPixmap.size())
return m_bgResizedPixmap;