summaryrefslogtreecommitdiffstats
path: root/src/theme.cpp
diff options
context:
space:
mode:
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;