summaryrefslogtreecommitdiffstats
path: root/kdecore/kaccelmanager_private.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/kaccelmanager_private.h
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kaccelmanager_private.h')
-rw-r--r--kdecore/kaccelmanager_private.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/kdecore/kaccelmanager_private.h b/kdecore/kaccelmanager_private.h
index 74c844e1d..e19b5a9a5 100644
--- a/kdecore/kaccelmanager_private.h
+++ b/kdecore/kaccelmanager_private.h
@@ -22,10 +22,10 @@
#define __KACCELMANAGER_PRIVATE_H__
-#include <qstring.h>
-#include <qmemarray.h>
-#include <qvaluelist.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqmemarray.h>
+#include <tqvaluelist.h>
+#include <tqobject.h>
class QWidgetStack;
@@ -44,40 +44,40 @@ class KAccelString
public:
KAccelString() : m_pureText(), m_accel(-1) {}
- KAccelString(const QString &input, int initalWeight=-1);
+ KAccelString(const TQString &input, int initalWeight=-1);
void calculateWeights(int initialWeight);
- const QString &pure() const { return m_pureText; }
- QString accelerated() const;
+ const TQString &pure() const { return m_pureText; }
+ TQString accelerated() const;
int accel() const { return m_accel; }
void setAccel(int accel) { m_accel = accel; }
int originalAccel() const { return m_orig_accel; }
- QString originalText() const { return m_origText; }
+ TQString originalText() const { return m_origText; }
- QChar accelerator() const;
+ TQChar accelerator() const;
- int maxWeight(int &index, const QString &used);
+ int maxWeight(int &index, const TQString &used);
bool operator == (const KAccelString &c) const { return m_pureText == c.m_pureText && m_accel == c.m_accel && m_orig_accel == c.m_orig_accel; }
private:
- int stripAccelerator(QString &input);
+ int stripAccelerator(TQString &input);
void dump();
- QString m_pureText, m_origText;
+ TQString m_pureText, m_origText;
int m_accel, m_orig_accel;
- QMemArray<int> m_weight;
+ TQMemArray<int> m_weight;
};
-typedef QValueList<KAccelString> KAccelStringList;
+typedef TQValueList<KAccelString> KAccelStringList;
/**
@@ -114,7 +114,7 @@ public:
};
/// Method to call to find the best distribution of accelerators.
- static void findAccelerators(KAccelStringList &result, QString &used);
+ static void findAccelerators(KAccelStringList &result, TQString &used);
};
@@ -137,12 +137,12 @@ class KPopupAccelManager : public QObject
public:
- static void manage(QPopupMenu *popup);
+ static void manage(TQPopupMenu *popup);
protected:
- KPopupAccelManager(QPopupMenu *popup);
+ KPopupAccelManager(TQPopupMenu *popup);
private slots:
@@ -157,7 +157,7 @@ private:
void findMenuEntries(KAccelStringList &list);
void setMenuEntries(const KAccelStringList &list);
- QPopupMenu *m_popup;
+ TQPopupMenu *m_popup;
KAccelStringList m_entries;
int m_count;
@@ -170,24 +170,24 @@ class QWidgetStackAccelManager : public QObject
public:
- static void manage(QWidgetStack *popup);
+ static void manage(TQWidgetStack *popup);
protected:
- QWidgetStackAccelManager(QWidgetStack *popup);
+ QWidgetStackAccelManager(TQWidgetStack *popup);
private slots:
- void aboutToShow(QWidget *);
- bool eventFilter ( QObject * watched, QEvent * e );
+ void aboutToShow(TQWidget *);
+ bool eventFilter ( TQObject * watched, TQEvent * e );
private:
void calculateAccelerators();
- QWidgetStack *m_stack;
+ TQWidgetStack *m_stack;
KAccelStringList m_entries;
};