diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kolourpaint/kpdocumentmetainfo.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/kpdocumentmetainfo.cpp')
-rw-r--r-- | kolourpaint/kpdocumentmetainfo.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kolourpaint/kpdocumentmetainfo.cpp b/kolourpaint/kpdocumentmetainfo.cpp index 5e5fc6ae..36c1dde6 100644 --- a/kolourpaint/kpdocumentmetainfo.cpp +++ b/kolourpaint/kpdocumentmetainfo.cpp @@ -27,7 +27,7 @@ #include <kpdocumentmetainfo.h> -#include <qpoint.h> +#include <tqpoint.h> #include <kdebug.h> @@ -35,9 +35,9 @@ struct kpDocumentMetaInfoPrivate { int m_dotsPerMeterX, m_dotsPerMeterY; - QPoint m_offset; + TQPoint m_offset; - QMap <QImageTextKeyLang, QString> m_textMap; + TQMap <TQImageTextKeyLang, TQString> m_textMap; }; @@ -47,7 +47,7 @@ kpDocumentMetaInfo::kpDocumentMetaInfo () { d->m_dotsPerMeterX = 0; d->m_dotsPerMeterY = 0; - d->m_offset = QPoint (0, 0); + d->m_offset = TQPoint (0, 0); } kpDocumentMetaInfo::kpDocumentMetaInfo (const kpDocumentMetaInfo &rhs) @@ -79,11 +79,11 @@ kpDocumentMetaInfo &kpDocumentMetaInfo::operator= (const kpDocumentMetaInfo &rhs // public -void kpDocumentMetaInfo::printDebug (const QString &prefix) const +void kpDocumentMetaInfo::printDebug (const TQString &prefix) const { - const QString usedPrefix = !prefix.isEmpty () ? - prefix + QString::fromLatin1 (":") : - QString::null; + const TQString usedPrefix = !prefix.isEmpty () ? + prefix + TQString::fromLatin1 (":") : + TQString::null; kdDebug () << usedPrefix << endl; @@ -91,8 +91,8 @@ void kpDocumentMetaInfo::printDebug (const QString &prefix) const << " Y=" << dotsPerMeterY () << " offset=" << offset () << endl; - QValueList <QImageTextKeyLang> keyList = textList (); - for (QValueList <QImageTextKeyLang>::const_iterator it = keyList.begin (); + TQValueList <TQImageTextKeyLang> keyList = textList (); + for (TQValueList <TQImageTextKeyLang>::const_iterator it = keyList.begin (); it != keyList.end (); it++) { @@ -133,54 +133,54 @@ void kpDocumentMetaInfo::setDotsPerMeterY (int val) // public -QPoint kpDocumentMetaInfo::offset () const +TQPoint kpDocumentMetaInfo::offset () const { return d->m_offset; } // public -void kpDocumentMetaInfo::setOffset (const QPoint &point) +void kpDocumentMetaInfo::setOffset (const TQPoint &point) { d->m_offset = point; } // public -QMap <QImageTextKeyLang, QString> kpDocumentMetaInfo::textMap () const +TQMap <TQImageTextKeyLang, TQString> kpDocumentMetaInfo::textMap () const { return d->m_textMap; } // public -QValueList <QImageTextKeyLang> kpDocumentMetaInfo::textList () const +TQValueList <TQImageTextKeyLang> kpDocumentMetaInfo::textList () const { return d->m_textMap.keys (); } // public -QString kpDocumentMetaInfo::text (const QImageTextKeyLang &itkl) const +TQString kpDocumentMetaInfo::text (const TQImageTextKeyLang &itkl) const { return d->m_textMap [itkl]; } // public -QString kpDocumentMetaInfo::text (const char *key, const char *lang) const +TQString kpDocumentMetaInfo::text (const char *key, const char *lang) const { - return text (QImageTextKeyLang (key, lang)); + return text (TQImageTextKeyLang (key, lang)); } // public -void kpDocumentMetaInfo::setText (const QImageTextKeyLang &itkl, - const QString &string) +void kpDocumentMetaInfo::setText (const TQImageTextKeyLang &itkl, + const TQString &string) { d->m_textMap [itkl] = string; } // public void kpDocumentMetaInfo::setText (const char *key, const char *lang, - const QString &string) + const TQString &string) { - setText (QImageTextKeyLang (key, lang), string); + setText (TQImageTextKeyLang (key, lang), string); } |