summaryrefslogtreecommitdiffstats
path: root/src/gvcore/captionformatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/captionformatter.cpp')
-rw-r--r--src/gvcore/captionformatter.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gvcore/captionformatter.cpp b/src/gvcore/captionformatter.cpp
index 4acbc11..ca34a51 100644
--- a/src/gvcore/captionformatter.cpp
+++ b/src/gvcore/captionformatter.cpp
@@ -27,28 +27,28 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Gwenview {
-QString CaptionFormatter::format(const QString& format) {
- QString comment=mComment;
+TQString CaptionFormatter::format(const TQString& format) {
+ TQString comment=mComment;
if (comment.isNull()) {
comment=i18n("(No comment)");
}
- QString resolution;
+ TQString resolution;
if (mImageSize.isValid()) {
- resolution = QString( "%1x%2" ).arg( mImageSize.width()).arg( mImageSize.height());
+ resolution = TQString( "%1x%2" ).tqarg( mImageSize.width()).tqarg( mImageSize.height());
}
- QString str=format;
- str.replace("%f", mFileName);
- str.replace("%p", mPath);
- str.replace("%c", comment);
- str.replace("%r", resolution);
- str.replace("%n", QString::number(mPosition));
- str.replace("%N", QString::number(mCount));
- str.replace("%a", mAperture);
- str.replace("%t", mExposureTime);
- str.replace("%i", mIso);
- str.replace("%l", mFocalLength);
+ TQString str=format;
+ str.tqreplace("%f", mFileName);
+ str.tqreplace("%p", mPath);
+ str.tqreplace("%c", comment);
+ str.tqreplace("%r", resolution);
+ str.tqreplace("%n", TQString::number(mPosition));
+ str.tqreplace("%N", TQString::number(mCount));
+ str.tqreplace("%a", mAperture);
+ str.tqreplace("%t", mExposureTime);
+ str.tqreplace("%i", mIso);
+ str.tqreplace("%l", mFocalLength);
return str;
}