summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kipi-plugins/simpleviewerexport/simpleviewerexport.cpp')
-rw-r--r--kipi-plugins/simpleviewerexport/simpleviewerexport.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp b/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp
index d039f42..870cbe3 100644
--- a/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp
+++ b/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp
@@ -342,9 +342,9 @@ bool SimpleViewerExport::exportImages()
xmlDoc.appendChild( galleryElem );
galleryElem.setAttribute(TQString::tqfromLatin1("maxImageWidth"), m_configDlg->maxImageDimension());
galleryElem.setAttribute(TQString::tqfromLatin1("maxImageHeight"), m_configDlg->maxImageDimension());
- galleryElem.setAttribute(TQString::tqfromLatin1("textColor"), TQString(m_configDlg->textColor().name()).tqreplace("#", "0x"));
- galleryElem.setAttribute(TQString::tqfromLatin1("frameColor"), TQString(m_configDlg->frameColor().name()).tqreplace("#", "0x"));
- galleryElem.setAttribute(TQString::tqfromLatin1("bgColor"), TQString(m_configDlg->backgroundColor().name()).tqreplace("#", "0x"));
+ galleryElem.setAttribute(TQString::tqfromLatin1("textColor"), TQString(m_configDlg->textColor().name()).replace("#", "0x"));
+ galleryElem.setAttribute(TQString::tqfromLatin1("frameColor"), TQString(m_configDlg->frameColor().name()).replace("#", "0x"));
+ galleryElem.setAttribute(TQString::tqfromLatin1("bgColor"), TQString(m_configDlg->backgroundColor().name()).replace("#", "0x"));
galleryElem.setAttribute(TQString::tqfromLatin1("frameWidth"), m_configDlg->frameWidth());
galleryElem.setAttribute(TQString::tqfromLatin1("stagePadding"), m_configDlg->stagePadding());
galleryElem.setAttribute(TQString::tqfromLatin1("thumbnailColumns"), m_configDlg->thumbnailColumns());
@@ -385,7 +385,7 @@ bool SimpleViewerExport::exportImages()
#else
TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
#endif
- if (rawFilesExt.upper().tqcontains( fileInfo.extension(false).upper() ))
+ if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
KDcrawIface::KDcraw::loadDcrawPreview(image, url.path());
else
image.load(url.path());
@@ -545,11 +545,11 @@ bool SimpleViewerExport::createIndex()
TQString indexTemplate = in.read();
infile.close();
- indexTemplate.tqreplace("{TITLE}", m_configDlg->title());
- indexTemplate.tqreplace("{COLOR}", m_configDlg->textColor().name());
- indexTemplate.tqreplace("{BGCOLOR}", m_configDlg->backgroundColor().name());
- indexTemplate.tqreplace("{HOSTURL}", m_hostURL);
- indexTemplate.tqreplace("{HOSTNAME}", m_hostName);
+ indexTemplate.replace("{TITLE}", m_configDlg->title());
+ indexTemplate.replace("{COLOR}", m_configDlg->textColor().name());
+ indexTemplate.replace("{BGCOLOR}", m_configDlg->backgroundColor().name());
+ indexTemplate.replace("{HOSTURL}", m_hostURL);
+ indexTemplate.replace("{HOSTNAME}", m_hostName);
TQFile outfile(m_tempDir->name() + "/index.html");
outfile.open(IO_WriteOnly);