diff options
Diffstat (limited to 'digikam/libs/themeengine/themeengine.cpp')
-rw-r--r-- | digikam/libs/themeengine/themeengine.cpp | 164 |
1 files changed, 82 insertions, 82 deletions
diff --git a/digikam/libs/themeengine/themeengine.cpp b/digikam/libs/themeengine/themeengine.cpp index 8ea0adb..9797079 100644 --- a/digikam/libs/themeengine/themeengine.cpp +++ b/digikam/libs/themeengine/themeengine.cpp @@ -325,7 +325,7 @@ void ThemeEngine::changePalette() plt.setDisabled(cg); } - kapp->tqsetPalette(plt, true); + kapp->setPalette(plt, true); } Theme* ThemeEngine::getCurrentTheme() const @@ -414,7 +414,7 @@ bool ThemeEngine::loadTheme() } TQDomElement rootElem = xmlDoc.documentElement(); - if (rootElem.tagName() != TQString::tqfromLatin1("digikamtheme")) + if (rootElem.tagName() != TQString::fromLatin1("digikamtheme")) return false; TQString resource; @@ -678,7 +678,7 @@ TQString ThemeEngine::resourceValue(const TQDomElement &rootElem, const TQString { TQDomElement e = node.toElement(); TQString name = e.tagName(); - TQString val = e.attribute(TQString::tqfromLatin1("value")); + TQString val = e.attribute(TQString::fromLatin1("value")); if (key == name) { @@ -711,8 +711,8 @@ bool ThemeEngine::saveTheme() // header ------------------------------------------------------------------ - xmlDoc.appendChild(xmlDoc.createProcessingInstruction(TQString::tqfromLatin1("xml"), - TQString::tqfromLatin1("version=\"1.0\" encoding=\"UTF-8\""))); + xmlDoc.appendChild(xmlDoc.createProcessingInstruction(TQString::fromLatin1("xml"), + TQString::fromLatin1("version=\"1.0\" encoding=\"UTF-8\""))); TQString banner = TQString("\n/* ============================================================" "\n *" @@ -736,52 +736,52 @@ bool ThemeEngine::saveTheme() "\n * GNU General Public License for more details." "\n *" "\n * ============================================================ */\n") - .tqarg(TQDate::tqcurrentDate().year()) - .tqarg(TQDate::tqcurrentDate().month()) - .tqarg(TQDate::tqcurrentDate().day()) + .tqarg(TQDate::currentDate().year()) + .tqarg(TQDate::currentDate().month()) + .tqarg(TQDate::currentDate().day()) .tqarg(fi.fileName()) - .tqarg(TQDate::tqcurrentDate().year()) + .tqarg(TQDate::currentDate().year()) .tqarg(user.fullName()); xmlDoc.appendChild(xmlDoc.createComment(banner)); - TQDomElement themeElem = xmlDoc.createElement(TQString::tqfromLatin1("digikamtheme")); + TQDomElement themeElem = xmlDoc.createElement(TQString::fromLatin1("digikamtheme")); xmlDoc.appendChild(themeElem); // base props -------------------------------------------------------------- - e = xmlDoc.createElement(TQString::tqfromLatin1("name")); - e.setAttribute(TQString::tqfromLatin1("value"), fi.fileName()); + e = xmlDoc.createElement(TQString::fromLatin1("name")); + e.setAttribute(TQString::fromLatin1("value"), fi.fileName()); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("BaseColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->baseColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("BaseColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->baseColor.name()).upper()); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("TextRegularColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->textRegColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("TextRegularColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->textRegColor.name()).upper()); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("TextSelectedColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->textSelColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("TextSelectedColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->textSelColor.name()).upper()); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("TextSpecialRegularColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->textSpecialRegColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("TextSpecialRegularColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->textSpecialRegColor.name()).upper()); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("TextSpecialSelectedColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->textSpecialSelColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("TextSpecialSelectedColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->textSpecialSelColor.name()).upper()); themeElem.appendChild(e); // banner props ------------------------------------------------------------ - e = xmlDoc.createElement(TQString::tqfromLatin1("BannerColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->bannerColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("BannerColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->bannerColor.name()).upper()); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("BannerColorTo")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->bannerColorTo.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("BannerColorTo")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->bannerColorTo.name()).upper()); themeElem.appendChild(e); switch(t->bannerBevel) @@ -803,8 +803,8 @@ bool ThemeEngine::saveTheme() } }; - e = xmlDoc.createElement(TQString::tqfromLatin1("BannerBevel")); - e.setAttribute(TQString::tqfromLatin1("value"), val); + e = xmlDoc.createElement(TQString::fromLatin1("BannerBevel")); + e.setAttribute(TQString::fromLatin1("value"), val); themeElem.appendChild(e); switch(t->bannerGrad) @@ -831,26 +831,26 @@ bool ThemeEngine::saveTheme() } }; - e = xmlDoc.createElement(TQString::tqfromLatin1("BannerGradient")); - e.setAttribute(TQString::tqfromLatin1("value"), val); + e = xmlDoc.createElement(TQString::fromLatin1("BannerGradient")); + e.setAttribute(TQString::fromLatin1("value"), val); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("BannerBorder")); - e.setAttribute(TQString::tqfromLatin1("value"), (t->bannerBorder ? "TRUE" : "FALSE")); + e = xmlDoc.createElement(TQString::fromLatin1("BannerBorder")); + e.setAttribute(TQString::fromLatin1("value"), (t->bannerBorder ? "TRUE" : "FALSE")); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("BannerBorderColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->bannerBorderColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("BannerBorderColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->bannerBorderColor.name()).upper()); themeElem.appendChild(e); // thumbnail.regular props ------------------------------------------------- - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailRegularColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->thumbRegColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailRegularColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->thumbRegColor.name()).upper()); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailRegularColorTo")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->thumbRegColorTo.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailRegularColorTo")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->thumbRegColorTo.name()).upper()); themeElem.appendChild(e); switch(t->thumbRegBevel) @@ -872,8 +872,8 @@ bool ThemeEngine::saveTheme() } }; - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailRegularBevel")); - e.setAttribute(TQString::tqfromLatin1("value"), val); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailRegularBevel")); + e.setAttribute(TQString::fromLatin1("value"), val); themeElem.appendChild(e); switch(t->thumbRegGrad) @@ -900,26 +900,26 @@ bool ThemeEngine::saveTheme() } }; - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailRegularGradient")); - e.setAttribute(TQString::tqfromLatin1("value"), val); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailRegularGradient")); + e.setAttribute(TQString::fromLatin1("value"), val); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailRegularBorder")); - e.setAttribute(TQString::tqfromLatin1("value"), (t->thumbRegBorder ? "TRUE" : "FALSE")); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailRegularBorder")); + e.setAttribute(TQString::fromLatin1("value"), (t->thumbRegBorder ? "TRUE" : "FALSE")); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailRegularBorderColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->thumbRegBorderColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailRegularBorderColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->thumbRegBorderColor.name()).upper()); themeElem.appendChild(e); // thumbnail.selected props ------------------------------------------------- - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailSelectedColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->thumbSelColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailSelectedColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->thumbSelColor.name()).upper()); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailSelectedColorTo")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->thumbSelColorTo.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailSelectedColorTo")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->thumbSelColorTo.name()).upper()); themeElem.appendChild(e); switch(t->thumbSelBevel) @@ -941,8 +941,8 @@ bool ThemeEngine::saveTheme() } }; - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailSelectedBevel")); - e.setAttribute(TQString::tqfromLatin1("value"), val); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailSelectedBevel")); + e.setAttribute(TQString::fromLatin1("value"), val); themeElem.appendChild(e); switch(t->thumbSelGrad) @@ -969,26 +969,26 @@ bool ThemeEngine::saveTheme() } }; - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailSelectedGradient")); - e.setAttribute(TQString::tqfromLatin1("value"), val); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailSelectedGradient")); + e.setAttribute(TQString::fromLatin1("value"), val); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailSelectedBorder")); - e.setAttribute(TQString::tqfromLatin1("value"), (t->thumbSelBorder ? "TRUE" : "FALSE")); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailSelectedBorder")); + e.setAttribute(TQString::fromLatin1("value"), (t->thumbSelBorder ? "TRUE" : "FALSE")); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ThumbnailSelectedBorderColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->thumbSelBorderColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ThumbnailSelectedBorderColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->thumbSelBorderColor.name()).upper()); themeElem.appendChild(e); // listview.regular props ------------------------------------------------- - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewRegularColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->listRegColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewRegularColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->listRegColor.name()).upper()); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewRegularColorTo")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->listRegColorTo.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewRegularColorTo")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->listRegColorTo.name()).upper()); themeElem.appendChild(e); switch(t->listRegBevel) @@ -1010,8 +1010,8 @@ bool ThemeEngine::saveTheme() } }; - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewRegularBevel")); - e.setAttribute(TQString::tqfromLatin1("value"), val); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewRegularBevel")); + e.setAttribute(TQString::fromLatin1("value"), val); themeElem.appendChild(e); switch(t->listRegGrad) @@ -1038,26 +1038,26 @@ bool ThemeEngine::saveTheme() } }; - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewRegularGradient")); - e.setAttribute(TQString::tqfromLatin1("value"), val); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewRegularGradient")); + e.setAttribute(TQString::fromLatin1("value"), val); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewRegularBorder")); - e.setAttribute(TQString::tqfromLatin1("value"), (t->listRegBorder ? "TRUE" : "FALSE")); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewRegularBorder")); + e.setAttribute(TQString::fromLatin1("value"), (t->listRegBorder ? "TRUE" : "FALSE")); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewRegularBorderColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->listRegBorderColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewRegularBorderColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->listRegBorderColor.name()).upper()); themeElem.appendChild(e); // listview.selected props ------------------------------------------------- - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewSelectedColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->listSelColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewSelectedColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->listSelColor.name()).upper()); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewSelectedColorTo")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->listSelColorTo.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewSelectedColorTo")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->listSelColorTo.name()).upper()); themeElem.appendChild(e); switch(t->listSelBevel) @@ -1079,8 +1079,8 @@ bool ThemeEngine::saveTheme() } }; - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewSelectedBevel")); - e.setAttribute(TQString::tqfromLatin1("value"), val); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewSelectedBevel")); + e.setAttribute(TQString::fromLatin1("value"), val); themeElem.appendChild(e); switch(t->listSelGrad) @@ -1107,16 +1107,16 @@ bool ThemeEngine::saveTheme() } }; - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewSelectedGradient")); - e.setAttribute(TQString::tqfromLatin1("value"), val); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewSelectedGradient")); + e.setAttribute(TQString::fromLatin1("value"), val); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewSelectedBorder")); - e.setAttribute(TQString::tqfromLatin1("value"), (t->listSelBorder ? "TRUE" : "FALSE")); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewSelectedBorder")); + e.setAttribute(TQString::fromLatin1("value"), (t->listSelBorder ? "TRUE" : "FALSE")); themeElem.appendChild(e); - e = xmlDoc.createElement(TQString::tqfromLatin1("ListviewSelectedBorderColor")); - e.setAttribute(TQString::tqfromLatin1("value"), TQString(t->listSelBorderColor.name()).upper()); + e = xmlDoc.createElement(TQString::fromLatin1("ListviewSelectedBorderColor")); + e.setAttribute(TQString::fromLatin1("value"), TQString(t->listSelBorderColor.name()).upper()); themeElem.appendChild(e); // ------------------------------------------------------------------------- |