aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/themefunctions.cpp
diff options
context:
space:
mode:
authorGravatar Noldor2007-02-28 16:27:12 +0000
committerGravatar Noldor2007-02-28 16:27:12 +0000
commit2f5fc762ecde1b4c97006aa4343ccf447297cbfc (patch)
tree7288b13b904a6eea4d5ccaeab5dd9df33dca99f6 /src/modules/theme/themefunctions.cpp
parentsmall fix (diff)
downloadKVIrc-2f5fc762ecde1b4c97006aa4343ccf447297cbfc.tar.gz
KVIrc-2f5fc762ecde1b4c97006aa4343ccf447297cbfc.tar.bz2
KVIrc-2f5fc762ecde1b4c97006aa4343ccf447297cbfc.zip
more qt4 port
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@387 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme/themefunctions.cpp')
-rw-r--r--src/modules/theme/themefunctions.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/modules/theme/themefunctions.cpp b/src/modules/theme/themefunctions.cpp
index 776eb23a9..fb508c7a4 100644
--- a/src/modules/theme/themefunctions.cpp
+++ b/src/modules/theme/themefunctions.cpp
@@ -34,7 +34,12 @@
#include "kvi_sourcesdate.h"
#include "kvi_theme.h"
#include "kvi_frame.h"
-
+#ifdef COMPILE_USE_QT4
+#define KviTalMimeSourceFactory Q3MimeSourceFactory
+#include <Q3MimeSourceFactory>
+#else
+#define KviTalMimeSourceFactory QMimeSourceFactory
+#endif
#include <qmime.h>
namespace KviThemeFunctions
@@ -257,9 +262,9 @@ namespace KviThemeFunctions
- QMimeSourceFactory::defaultFactory()->setPixmap("theme_dialog_pack_image",pix);
- QMimeSourceFactory::defaultFactory()->setText("theme_dialog_details",szDetails);
- QMimeSourceFactory::defaultFactory()->setText("theme_dialog_main",hd.szHtmlText);
+ KviTalMimeSourceFactory::defaultFactory()->setPixmap("theme_dialog_pack_image",pix);
+ KviTalMimeSourceFactory::defaultFactory()->setText("theme_dialog_details",szDetails);
+ KviTalMimeSourceFactory::defaultFactory()->setText("theme_dialog_main",hd.szHtmlText);
QString beginCenter = "<center>";
QString endCenter = "</center>";
@@ -320,7 +325,7 @@ namespace KviThemeFunctions
KviQString::sprintf(szScreenshot,"<p><center><img src=\"theme_shot%d\"></center></p>",iUniqueIndexInDocument);
QString szTmp;
KviQString::sprintf(szTmp,"theme_shot%d",iUniqueIndexInDocument);
- QMimeSourceFactory::defaultFactory()->setPixmap(szTmp,pixScreenshot);
+ KviTalMimeSourceFactory::defaultFactory()->setPixmap(szTmp,pixScreenshot);
} else {
szScreenshot = "";
}