diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 79128018a1b71d8fa9218e925a2409abb6fce7d2 (patch) | |
tree | 56dd01f61e8c1d90445cb1f2e2a03b362e76e979 /ksquirrel/imageedit/sq_converter.cpp | |
parent | bab0c762c48a8defdeda42a1e3351179b0c3c2f7 (diff) | |
download | ksquirrel-79128018a1b71d8fa9218e925a2409abb6fce7d2.tar.gz ksquirrel-79128018a1b71d8fa9218e925a2409abb6fce7d2.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksquirrel@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksquirrel/imageedit/sq_converter.cpp')
-rw-r--r-- | ksquirrel/imageedit/sq_converter.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ksquirrel/imageedit/sq_converter.cpp b/ksquirrel/imageedit/sq_converter.cpp index c14d060..bcd7b70 100644 --- a/ksquirrel/imageedit/sq_converter.cpp +++ b/ksquirrel/imageedit/sq_converter.cpp @@ -89,10 +89,10 @@ void SQ_Converter::slotStartEdit() startEditPrivate(); } -TQString SQ_Converter::adjustFileName(const TQString &globalprefix, const TQString &name1, int tqreplace, TQString putto, bool paged, int page) +TQString SQ_Converter::adjustFileName(const TQString &globalprefix, const TQString &name1, int replace, TQString putto, bool paged, int page) { TQFileInfo ff(name1); - TQString name = ff.dirPath() + '/' + (tqreplace == 0 ? globalprefix : (tqreplace == 2 ? TQString() : globalprefix)) + ff.fileName(); + TQString name = ff.dirPath() + '/' + (replace == 0 ? globalprefix : (replace == 2 ? TQString() : globalprefix)) + ff.fileName(); ff = TQFileInfo(name); TQString result, inner, filter = lw->filter; @@ -113,7 +113,7 @@ TQString SQ_Converter::adjustFileName(const TQString &globalprefix, const TQStri suffix = (SQ_LibraryHandler::instance()->knownExtension(TQString::tqfromLatin1("*.") + ext)) ? TQString(lw->codec->extension(32)) : ext; - if(tqreplace == 0 || tqreplace == 2) + if(replace == 0 || replace == 2) result = (!paged) ? (prefix + inner + suffix) : (prefix + spage + inner + suffix); else { @@ -143,7 +143,7 @@ void SQ_Converter::decodingCycle() RGBA *scan; int errors, gerrors = 0, current; TQString putto; - int tqreplace = imageopt.where_to_put; + int replace = imageopt.where_to_put; bool brk; SQ_Config::instance()->setGroup("Edit tools"); @@ -229,9 +229,9 @@ void SQ_Converter::decodingCycle() if(i == SQE_NOTOK || brk) { if(current == 1) - name = adjustFileName(prefix, *it, tqreplace, putto); + name = adjustFileName(prefix, *it, replace, putto); else - name = adjustFileName(prefix, *it, tqreplace, putto, true, current); + name = adjustFileName(prefix, *it, replace, putto, true, current); lastFrame = last; @@ -242,7 +242,7 @@ void SQ_Converter::decodingCycle() i = SQE_OK; - if(tqreplace == 2) + if(replace == 2) { emit convertText(i18n("Removing") + KStringHandler::rsqueeze(ff.fileName()) + TQString("... "), false); @@ -262,7 +262,7 @@ void SQ_Converter::decodingCycle() if(current) { - name = adjustFileName(prefix, *it, tqreplace, putto, true, current); + name = adjustFileName(prefix, *it, replace, putto, true, current); lastFrame = false; |