summaryrefslogtreecommitdiffstats
path: root/src/imagefactory.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:15:24 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:15:24 -0600
commit8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch)
tree55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/imagefactory.cpp
parent2781e27b871150395a5a82e221684108641002b2 (diff)
downloadtellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz
tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip
Rename old tq methods that no longer need a unique name
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 12b116d..c63fc18 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::tqfromLatin1("data/"));
+ static const TQString dataDir = Tellico::saveLocation(TQString::fromLatin1("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::tqfromLatin1("gradient_bg.png");
+ const TQString bgname = TQString::fromLatin1("gradient_bg.png");
TQImage bgImage = KImageEffect::gradient(TQSize(400, 1), bgc1, baseColor,
KImageEffect::PipeCrossGradient);
bgImage = KImageEffect::rotate(bgImage, KImageEffect::Rotate90);
- const TQString hdrname = TQString::tqfromLatin1("gradient_header.png");
+ const TQString hdrname = TQString::fromLatin1("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::tqfromLatin1("PNG"), bgname);
+ ImageFactory::addImageImpl(Data::Image::byteArray(bgImage, "PNG"), TQString::fromLatin1("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::tqfromLatin1("PNG"), hdrname);
+ ImageFactory::addImageImpl(Data::Image::byteArray(hdrImage, "PNG"), TQString::fromLatin1("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::tqfromLatin1("_files"))) {
- s_localDir += url_.fileName().section('.', 0, 0) + TQString::tqfromLatin1("_files/");
+ if(!url_.fileName().contains(TQString::fromLatin1("_files"))) {
+ s_localDir += url_.fileName().section('.', 0, 0) + TQString::fromLatin1("_files/");
}
myLog() << "ImageFactory::setLocalDirectory() - local dir = " << s_localDir << endl;
}