aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/themefunctions.cpp
diff options
context:
space:
mode:
authorGravatar Noldor2008-05-18 12:08:40 +0000
committerGravatar Noldor2008-05-18 12:08:40 +0000
commit13cc59072532f7c2d35e6297d7e5985be9918365 (patch)
tree28f7cd271df99e0e6867f7a0c78ace7d392a0a43 /src/modules/theme/themefunctions.cpp
parenttranslation targets: cleaned up the bash scripting stuff (now it should be qu... (diff)
downloadKVIrc-13cc59072532f7c2d35e6297d7e5985be9918365.tar.gz
KVIrc-13cc59072532f7c2d35e6297d7e5985be9918365.tar.bz2
KVIrc-13cc59072532f7c2d35e6297d7e5985be9918365.zip
QT4 resource port (wip)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1812 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme/themefunctions.cpp')
-rw-r--r--src/modules/theme/themefunctions.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/modules/theme/themefunctions.cpp b/src/modules/theme/themefunctions.cpp
index 3e3c8b102..144876fd3 100644
--- a/src/modules/theme/themefunctions.cpp
+++ b/src/modules/theme/themefunctions.cpp
@@ -35,9 +35,11 @@
#include "kvi_theme.h"
#include "kvi_frame.h"
+
//#include <qmime.h>
-#include <q3mimefactory.h>
-#define KviTalMimeSourceFactory Q3MimeSourceFactory
+//#include <q3mimefactory.h>
+
+//#define KviTalMimeSourceFactory Q3MimeSourceFactory
namespace KviThemeFunctions
{
@@ -183,7 +185,7 @@ namespace KviThemeFunctions
szThemeDate,
szThemeEngineVersion,
pixScreenshot,
- iIdx
+ iIdx,&hd
);
if(iIdx > 0)
@@ -256,12 +258,11 @@ namespace KviThemeFunctions
&szWarnings,
&szShowDetails
);
-
+ hd.addImageResource("theme_dialog_pack_image",pix);
+ hd.addHtmlResource("theme_dialog_details",szDetails);
+ hd.addHtmlResource("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>";
@@ -307,7 +308,8 @@ namespace KviThemeFunctions
const QString &szThemeDate,
const QString &szThemeThemeEngineVersion,
const QPixmap &pixScreenshot,
- int iUniqueIndexInDocument
+ int iUniqueIndexInDocument,
+ KviHtmlDialogData *hd
)
{
QString szAuthor = __tr2qs_ctx("Author","theme");
@@ -322,7 +324,10 @@ namespace KviThemeFunctions
KviQString::sprintf(szScreenshot,"<p><center><img src=\"theme_shot%d\"></center></p>",iUniqueIndexInDocument);
QString szTmp;
KviQString::sprintf(szTmp,"theme_shot%d",iUniqueIndexInDocument);
- KviTalMimeSourceFactory::defaultFactory()->setPixmap(szTmp,pixScreenshot);
+ //FIXME in tooltip
+ if (hd)
+ hd->addImageResource(szTmp,pixScreenshot);
+ else szScreenshot = "";
} else {
szScreenshot = "";
}