diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:51 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:51 -0600 |
commit | 2781e27b871150395a5a82e221684108641002b2 (patch) | |
tree | 57f4d7c01a48faef1a840fbe0de8f4ec1e5f606f /src/imagefactory.cpp | |
parent | 031454e56009d576589c28757f6c6fcf4884095e (diff) | |
download | tellico-2781e27b871150395a5a82e221684108641002b2.tar.gz tellico-2781e27b871150395a5a82e221684108641002b2.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 031454e56009d576589c28757f6c6fcf4884095e.
Diffstat (limited to 'src/imagefactory.cpp')
-rw-r--r-- | src/imagefactory.cpp | 14 |
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; } |