summaryrefslogtreecommitdiffstats
path: root/starter/mykey.h
diff options
context:
space:
mode:
Diffstat (limited to 'starter/mykey.h')
-rw-r--r--starter/mykey.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/starter/mykey.h b/starter/mykey.h
index 36a32d2..b924624 100644
--- a/starter/mykey.h
+++ b/starter/mykey.h
@@ -1,23 +1,23 @@
#ifndef MYKEY_H
#define MYKEY_H
-#include <qstring.h>
+#include <tqstring.h>
class MyKey
{
public:
MyKey(short key, short modFlags){modFlags_ = modFlags; key_ = key;}
MyKey(){modFlags_ = 0; key_ = 0;}
- MyKey(QString & string)
+ MyKey(TQString & string)
{
- QString tmpString = string.left(string.findRev('+'));
+ TQString tmpString = string.left(string.findRev('+'));
modFlags_ = 0;
- if (tmpString.contains("256")) // QString.setNum(Qt::ShiftButton)
- modFlags_ |= Qt::ShiftButton;
- if (tmpString.contains("512")) // QString.setNum(Qt::ControlButton)
- modFlags_ |= Qt::ControlButton;
- if (tmpString.contains("1024")) // QString.setNum(Qt::AltButton)
- modFlags_ |= Qt::AltButton;
+ if (tmpString.contains("256")) // TQString.setNum(TQt::ShiftButton)
+ modFlags_ |= TQt::ShiftButton;
+ if (tmpString.contains("512")) // TQString.setNum(TQt::ControlButton)
+ modFlags_ |= TQt::ControlButton;
+ if (tmpString.contains("1024")) // TQString.setNum(TQt::AltButton)
+ modFlags_ |= TQt::AltButton;
tmpString = string.right(string.length() - string.findRev('+') - 1);
key_ = tmpString.toShort();
}
@@ -39,25 +39,25 @@ public:
{
return (!(modFlags_ > myKey.modFlags()) && key_ > myKey.key());
}
- QString toString() const
+ TQString toString() const
{
- QString string;
- QString numString;
- if (modFlags_ & Qt::ShiftButton)
+ TQString string;
+ TQString numString;
+ if (modFlags_ & TQt::ShiftButton)
{
- numString.setNum(Qt::ShiftButton);
+ numString.setNum(TQt::ShiftButton);
string += numString;
string += '+';
}
- if (modFlags_ & Qt::ControlButton)
+ if (modFlags_ & TQt::ControlButton)
{
- numString.setNum(Qt::ControlButton);
+ numString.setNum(TQt::ControlButton);
string += numString;
string += '+';
}
- if (modFlags_ & Qt::AltButton)
+ if (modFlags_ & TQt::AltButton)
{
- numString.setNum(Qt::AltButton);
+ numString.setNum(TQt::AltButton);
string += numString;
string += '+';
}