summaryrefslogtreecommitdiffstats
path: root/kbabel/addons
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/addons')
-rw-r--r--kbabel/addons/kfile-plugins/kfile_po.cpp12
-rw-r--r--kbabel/addons/kfile-plugins/kfile_po.h9
-rw-r--r--kbabel/addons/preview/pothumbcreator.cpp32
-rw-r--r--kbabel/addons/preview/pothumbcreator.h6
4 files changed, 30 insertions, 29 deletions
diff --git a/kbabel/addons/kfile-plugins/kfile_po.cpp b/kbabel/addons/kfile-plugins/kfile_po.cpp
index 457e4bd9..5ad0ebaa 100644
--- a/kbabel/addons/kfile-plugins/kfile_po.cpp
+++ b/kbabel/addons/kfile-plugins/kfile_po.cpp
@@ -17,11 +17,11 @@
*
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -40,9 +40,9 @@ using namespace KBabel;
typedef KGenericFactory<KPoPlugin> POFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_po, POFactory("kfile_po"))
-KPoPlugin::KPoPlugin(TQObject *parent, const char *name,
+KPoPlugin::KPoPlugin(TQObject *tqparent, const char *name,
const TQStringList& args)
- : KFilePlugin(parent, name, args)
+ : KFilePlugin(tqparent, name, args)
{
KFileMimeTypeInfo* info = addMimeTypeInfo("application/x-gettext");
@@ -62,7 +62,7 @@ bool KPoPlugin::readInfo(KFileMetaInfo& metaInfo, uint)
{
PoInfo poInfo;
TQStringList wordList;
- ConversionStatus status = PoInfo::info(metaInfo.path(), poInfo, wordList, false, false, false);
+ ConversiontqStatus status = PoInfo::info(metaInfo.path(), poInfo, wordList, false, false, false);
if (status == OK) {
KFileMetaInfoGroup group = appendGroup(metaInfo, "CatalogInfo");
diff --git a/kbabel/addons/kfile-plugins/kfile_po.h b/kbabel/addons/kfile-plugins/kfile_po.h
index 091bd5f3..d5e46c34 100644
--- a/kbabel/addons/kfile-plugins/kfile_po.h
+++ b/kbabel/addons/kfile-plugins/kfile_po.h
@@ -17,11 +17,11 @@
*
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -40,9 +40,10 @@ class TQStringList;
class KPoPlugin : public KFilePlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- KPoPlugin(TQObject *parent, const char *name, const TQStringList& args);
+ KPoPlugin(TQObject *tqparent, const char *name, const TQStringList& args);
virtual bool readInfo(KFileMetaInfo& info, uint);
};
diff --git a/kbabel/addons/preview/pothumbcreator.cpp b/kbabel/addons/preview/pothumbcreator.cpp
index 0883025c..87eb5dbf 100644
--- a/kbabel/addons/preview/pothumbcreator.cpp
+++ b/kbabel/addons/preview/pothumbcreator.cpp
@@ -22,11 +22,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -110,7 +110,7 @@ bool PoThumbCreator::create(const TQString &path, int width, int height, TQImage
int w = pix.width()-2*xBorder;
int h = pix.height()*2/3-2*yBorder;
- int d = QMIN(w,h);
+ int d = TQMIN(w,h);
xBorder = (pix.width()-d)/2;
yBorder = (pix.height()*2/3-d)/2;
@@ -118,7 +118,7 @@ bool PoThumbCreator::create(const TQString &path, int width, int height, TQImage
if(fuzzyAngle>0)
{
- p.setBrush(Qt::blue);
+ p.setBrush(TQt::blue);
if(poInfo.total == poInfo.fuzzy)
{
@@ -132,7 +132,7 @@ bool PoThumbCreator::create(const TQString &path, int width, int height, TQImage
if(untransAngle>0)
{
- p.setBrush(Qt::red);
+ p.setBrush(TQt::red);
if(poInfo.untranslated == poInfo.total)
{
@@ -146,7 +146,7 @@ bool PoThumbCreator::create(const TQString &path, int width, int height, TQImage
if(circle - fuzzyAngle - untransAngle>0)
{
- p.setBrush(Qt::darkGreen);
+ p.setBrush(TQt::darkGreen);
if(poInfo.fuzzy==0 && poInfo.untranslated==0)
{
@@ -180,9 +180,9 @@ bool PoThumbCreator::create(const TQString &path, int width, int height, TQImage
int numLines = (int) (canvasHeight / chSize.height());
int rest = pix.width() - (numCharsPerLine * chSize.width());
- xBorder = QMAX( xBorder, rest/2); // center horizontally
+ xBorder = TQMAX( xBorder, rest/2); // center horizontally
rest = pix.height()/3 - (numLines * chSize.height());
- yBorder = QMAX( yBorder, rest/2); // center vertically
+ yBorder = TQMAX( yBorder, rest/2); // center vertically
// end centering
@@ -207,7 +207,7 @@ bool PoThumbCreator::create(const TQString &path, int width, int height, TQImage
if(!poInfo.encoding.isEmpty())
text += poInfo.encoding+'\n';
- int lines = text.contains('\n')+1;
+ int lines = text.tqcontains('\n')+1;
if(lines < numLines)
{
text = poInfo.headerComment+'\n'+text;
@@ -259,9 +259,9 @@ bool PoThumbCreator::create(const TQString &path, int width, int height, TQImage
max = (*it).length();
}
rest = pix.width() - (max * chSize.width());
- xBorder = QMAX( xBorder, rest/2); // center horizontally
+ xBorder = TQMAX( xBorder, rest/2); // center horizontally
rest = pix.height()/3 - (lineList.count() * chSize.height());
- yBorder = QMAX( yBorder, rest/2); // center vertically
+ yBorder = TQMAX( yBorder, rest/2); // center vertically
// where to paint the characters
int x = xBorder, y = pix.height()*2/3;
@@ -286,7 +286,7 @@ bool PoThumbCreator::create(const TQString &path, int width, int height, TQImage
// physical newline in the file if we don't come from one
if ( !newLine )
{
- int pos = text.find( '\n', i );
+ int pos = text.tqfind( '\n', i );
if ( pos > (int) i )
i = pos +1;
}
@@ -311,7 +311,7 @@ bool PoThumbCreator::create(const TQString &path, int width, int height, TQImage
rect = m_splitter->coordinates( ch );
if ( !rect.isEmpty() )
{
- bitBlt( &pix, TQPoint(x,y), fontPixmap, rect, Qt::CopyROP );
+ bitBlt( &pix, TQPoint(x,y), fontPixmap, rect, TQt::CopyROP );
}
x += xOffset; // next character
@@ -339,11 +339,11 @@ bool PoThumbCreator::create(const TQString &path, int width, int height, TQImage
}
int x = pix.width()-kbabelPix.width()-4;
- x = QMAX(x,0);
+ x = TQMAX(x,0);
if(!kbabelPix.isNull())
{
bitBlt(&pix, TQPoint(x,4), &kbabelPix, kbabelPix.rect()
- , Qt::CopyROP);
+ , TQt::CopyROP);
}
}
diff --git a/kbabel/addons/preview/pothumbcreator.h b/kbabel/addons/preview/pothumbcreator.h
index 25a1f7ab..f975b554 100644
--- a/kbabel/addons/preview/pothumbcreator.h
+++ b/kbabel/addons/preview/pothumbcreator.h
@@ -22,11 +22,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.