summaryrefslogtreecommitdiffstats
path: root/katomic/molek.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /katomic/molek.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'katomic/molek.cpp')
-rw-r--r--katomic/molek.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/katomic/molek.cpp b/katomic/molek.cpp
index 26cbcbf6..7555736b 100644
--- a/katomic/molek.cpp
+++ b/katomic/molek.cpp
@@ -1,15 +1,15 @@
/****************************************************************
**
-** Implementation Molek class, derieved from Qt tutorial 8
+** Implementation Molek class, derieved from TQt tutorial 8
**
****************************************************************/
// bemerkungen : wenn paintEvent aufgerufen wird, wird das komplette
-// widget gelöscht und nur die sachen gezeichnet, die in
+// widget gel�scht und nur die sachen gezeichnet, die in
// paintEvent stehen ! sollen dinge z.b nur bei maustasten-
-// druck gezeichnet werden, so muß dies in mousePressEvent
+// druck gezeichnet werden, so mu� dies in mousePressEvent
// stehen !
-// paintEvent wird aufgerufen, falls fenster überdeckt wird,
+// paintEvent wird aufgerufen, falls fenster �berdeckt wird,
// oder auch einfach bewegt wird
#include <config.h>
@@ -26,7 +26,7 @@
extern int level;
-Molek::Molek( TQWidget *parent, const char *name ) : TQWidget( parent, name ),
+Molek::Molek( TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ),
data(locate("appdata", "pics/molek.png"))
{
setBackgroundColor (TQColor (0, 0, 0));
@@ -62,13 +62,13 @@ void Molek::load (const KSimpleConfig& config)
if (value.isEmpty())
break;
- current.obj = value.at(0).latin1();
+ current.obj = value.tqat(0).latin1();
value = value.mid(2);
if (value.isNull())
value = "";
strlcpy(current.conn, value.ascii(), sizeof(current.conn));
- kdWarning( atoms.find(current) != atoms.end() )
+ kdWarning( atoms.tqfind(current) != atoms.end() )
<< "OOOPS, duplicate atom definition in " << key << endl;
atoms.append(current);
atom_index++;
@@ -82,7 +82,7 @@ void Molek::load (const KSimpleConfig& config)
line = config.readEntry(key);
for (int i = 0; i < MOLEK_SIZE; i++)
- molek[i][j] = atom2int(line.at(i).latin1());
+ molek[i][j] = atom2int(line.tqat(i).latin1());
}
mname = i18n(config.readEntry("Name", I18N_NOOP("Noname")).latin1());
@@ -103,12 +103,12 @@ void Molek::load (const KSimpleConfig& config)
height++;
width++;
- repaint ();
+ tqrepaint ();
}
void Molek::paintEvent( TQPaintEvent * )
{
- TQString st = i18n("Level: %1").arg(level);
+ TQString st = i18n("Level: %1").tqarg(level);
TQPainter paint (this);
paint.setPen (TQColor (190, 190, 190));