summaryrefslogtreecommitdiffstats
path: root/src/imagefactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imagefactory.cpp')
-rw-r--r--src/imagefactory.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/imagefactory.cpp b/src/imagefactory.cpp
index c63fc18..12b116d 100644
--- a/src/imagefactory.cpp
+++ b/src/imagefactory.cpp
@@ -67,7 +67,7 @@ TQString ImageFactory::tempDir() {
}
TQString ImageFactory::dataDir() {
- static const TQString dataDir = Tellico::saveLocation(TQString::fromLatin1("data/"));
+ static const TQString dataDir = Tellico::saveLocation(TQString::tqfromLatin1("data/"));
return dataDir;
}
@@ -510,12 +510,12 @@ void ImageFactory::createStyleImages(const StyleOptions& opt_) {
const TQColor& bgc1 = Tellico::blendColors(baseColor, highColor, 30);
const TQColor& bgc2 = Tellico::blendColors(baseColor, highColor, 50);
- const TQString bgname = TQString::fromLatin1("gradient_bg.png");
+ const TQString bgname = TQString::tqfromLatin1("gradient_bg.png");
TQImage bgImage = KImageEffect::gradient(TQSize(400, 1), bgc1, baseColor,
KImageEffect::PipeCrossGradient);
bgImage = KImageEffect::rotate(bgImage, KImageEffect::Rotate90);
- const TQString hdrname = TQString::fromLatin1("gradient_header.png");
+ const TQString hdrname = TQString::tqfromLatin1("gradient_header.png");
TQImage hdrImage = KImageEffect::unbalancedGradient(TQSize(1, 10), highColor, bgc2,
KImageEffect::VerticalGradient, 100, -100);
@@ -523,12 +523,12 @@ void ImageFactory::createStyleImages(const StyleOptions& opt_) {
// write the style images both to the tmp dir and the data dir
// doesn't really hurt and lets the user switch back and forth
ImageFactory::removeImage(bgname, true /*delete */);
- ImageFactory::addImageImpl(Data::Image::byteArray(bgImage, "PNG"), TQString::fromLatin1("PNG"), bgname);
+ ImageFactory::addImageImpl(Data::Image::byteArray(bgImage, "PNG"), TQString::tqfromLatin1("PNG"), bgname);
ImageFactory::writeCachedImage(bgname, DataDir, true /*force*/);
ImageFactory::writeCachedImage(bgname, TempDir, true /*force*/);
ImageFactory::removeImage(hdrname, true /*delete */);
- ImageFactory::addImageImpl(Data::Image::byteArray(hdrImage, "PNG"), TQString::fromLatin1("PNG"), hdrname);
+ ImageFactory::addImageImpl(Data::Image::byteArray(hdrImage, "PNG"), TQString::tqfromLatin1("PNG"), hdrname);
ImageFactory::writeCachedImage(hdrname, DataDir, true /*force*/);
ImageFactory::writeCachedImage(hdrname, TempDir, true /*force*/);
} else {
@@ -601,8 +601,8 @@ void ImageFactory::setLocalDirectory(const KURL& url_) {
} else {
s_localDir = url_.directory(false);
// could have already been set once
- if(!url_.fileName().contains(TQString::fromLatin1("_files"))) {
- s_localDir += url_.fileName().section('.', 0, 0) + TQString::fromLatin1("_files/");
+ if(!url_.fileName().contains(TQString::tqfromLatin1("_files"))) {
+ s_localDir += url_.fileName().section('.', 0, 0) + TQString::tqfromLatin1("_files/");
}
myLog() << "ImageFactory::setLocalDirectory() - local dir = " << s_localDir << endl;
}