summaryrefslogtreecommitdiffstats
path: root/katomic/molek.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /katomic/molek.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'katomic/molek.cpp')
-rw-r--r--katomic/molek.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/katomic/molek.cpp b/katomic/molek.cpp
index 3425ffe1..26cbcbf6 100644
--- a/katomic/molek.cpp
+++ b/katomic/molek.cpp
@@ -26,10 +26,10 @@
extern int level;
-Molek::Molek( QWidget *parent, const char *name ) : QWidget( parent, name ),
+Molek::Molek( TQWidget *parent, const char *name ) : TQWidget( parent, name ),
data(locate("appdata", "pics/molek.png"))
{
- setBackgroundColor (QColor (0, 0, 0));
+ setBackgroundColor (TQColor (0, 0, 0));
setMinimumSize(240, 200);
}
@@ -50,12 +50,12 @@ const atom& Molek::getAtom(uint index) const
void Molek::load (const KSimpleConfig& config)
{
atoms.clear();
- QString key;
+ TQString key;
atom current;
int atom_index = 1;
- QString value;
+ TQString value;
while (true) {
key.sprintf("atom_%c", int2atom(atom_index));
value = config.readEntry(key);
@@ -74,7 +74,7 @@ void Molek::load (const KSimpleConfig& config)
atom_index++;
}
- QString line;
+ TQString line;
for (int j = 0; j < MOLEK_SIZE; j++) {
@@ -106,12 +106,12 @@ void Molek::load (const KSimpleConfig& config)
repaint ();
}
-void Molek::paintEvent( QPaintEvent * )
+void Molek::paintEvent( TQPaintEvent * )
{
- QString st = i18n("Level: %1").arg(level);
+ TQString st = i18n("Level: %1").arg(level);
- QPainter paint (this);
- paint.setPen (QColor (190, 190, 190));
+ TQPainter paint (this);
+ paint.setPen (TQColor (190, 190, 190));
paint.drawText (7, height() - 36, mname);
paint.drawText (7, height() - 18, st);
// spielfeld gleich zeichnen