summaryrefslogtreecommitdiffstats
path: root/kbstateapplet
diff options
context:
space:
mode:
Diffstat (limited to 'kbstateapplet')
-rw-r--r--kbstateapplet/kbstate.cpp38
-rw-r--r--kbstateapplet/kbstate.h10
2 files changed, 24 insertions, 24 deletions
diff --git a/kbstateapplet/kbstate.cpp b/kbstateapplet/kbstate.cpp
index 69a7809..6582364 100644
--- a/kbstateapplet/kbstate.cpp
+++ b/kbstateapplet/kbstate.cpp
@@ -50,16 +50,16 @@ extern "C"
#include <X11/keysymdef.h>
#include <X11/extensions/XKB.h>
- KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile)
+ KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("kbstateapplet");
- KbStateApplet *applet = new KbStateApplet(configFile, KPanelApplet::Normal, KPanelApplet::About, tqparent, "kbstateapplet");
+ KbStateApplet *applet = new KbStateApplet(configFile, KPanelApplet::Normal, KPanelApplet::About, parent, "kbstateapplet");
return applet;
}
}
struct ModifierKey {
- const unsigned int tqmask;
+ const unsigned int mask;
const KeySym keysym;
const char *name;
const char *icon;
@@ -86,8 +86,8 @@ static ModifierKey modifierKeys[] = {
/********************************************************************/
KbStateApplet::KbStateApplet(const TQString& configFile, Type t, int actions,
- TQWidget *tqparent, const char *name)
- : KPanelApplet( configFile, t, actions, tqparent, name )
+ TQWidget *parent, const char *name)
+ : KPanelApplet( configFile, t, actions, parent, name )
{
for (int i = 0; i < 8; i++) {
icons[i] = 0;
@@ -527,21 +527,21 @@ void KbStateApplet::initMasks() {
state = 0;
for (int i = 0; strcmp(modifierKeys[i].name, "") != 0; i++) {
- int tqmask = modifierKeys[i].tqmask;
- if (tqmask == 0)
+ int mask = modifierKeys[i].mask;
+ if (mask == 0)
if (modifierKeys[i].keysym != 0)
- tqmask = XkbKeysymToModifiers (this->x11Display(), modifierKeys[i].keysym);
+ mask = XkbKeysymToModifiers (this->x11Display(), modifierKeys[i].keysym);
else if (!strcmp(modifierKeys[i].name, "Win"))
- tqmask = KKeyNative::modX(KKey::WIN);
+ mask = KKeyNative::modX(KKey::WIN);
else
- tqmask = XkbKeysymToModifiers (this->x11Display(), XK_Mode_switch)
+ mask = XkbKeysymToModifiers (this->x11Display(), XK_Mode_switch)
| XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Shift)
| XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Latch)
| XkbKeysymToModifiers (this->x11Display(), XK_ISO_Level3_Lock);
int map = 0;
for (map = 0; map < 8; map++) {
- if ((tqmask & (1 << map)) != 0)
+ if ((mask & (1 << map)) != 0)
break;
}
if ((map <= 7) && !(icons[map])) {
@@ -747,8 +747,8 @@ void KbStateApplet::saveConfig()
/********************************************************************/
KeyIcon::KeyIcon (int keyId, KInstance *instance,
- TQWidget *tqparent, const char *name)
- : StatusIcon (modifierKeys[keyId].name, tqparent, name) {
+ TQWidget *parent, const char *name)
+ : StatusIcon (modifierKeys[keyId].name, parent, name) {
this->instance = instance;
this->keyId = keyId;
this->tristate = (modifierKeys[keyId].isModifier);
@@ -855,8 +855,8 @@ void KeyIcon::drawButton (TQPainter *p) {
/********************************************************************/
-MouseIcon::MouseIcon (KInstance *instance, TQWidget *tqparent, const char *name)
- : StatusIcon ("", tqparent, name)
+MouseIcon::MouseIcon (KInstance *instance, TQWidget *parent, const char *name)
+ : StatusIcon ("", parent, name)
{
this->instance = instance;
state = 0;
@@ -958,8 +958,8 @@ void MouseIcon::drawButton (TQPainter *p) {
TimeoutIcon::TimeoutIcon (KInstance *instance, const TQString &text,
const TQString &featurename,
- TQWidget *tqparent, const char *name)
- : StatusIcon (text, tqparent, name) {
+ TQWidget *parent, const char *name)
+ : StatusIcon (text, parent, name) {
this->instance = instance;
this->featurename = featurename;
glyth = " ";
@@ -1066,8 +1066,8 @@ void TimeoutIcon::drawButton (TQPainter *p) {
/********************************************************************/
-StatusIcon::StatusIcon (const TQString &text, TQWidget *tqparent, const char *name)
- : TQPushButton (text, tqparent, name) {
+StatusIcon::StatusIcon (const TQString &text, TQWidget *parent, const char *name)
+ : TQPushButton (text, parent, name) {
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Ignored));
}
diff --git a/kbstateapplet/kbstate.h b/kbstateapplet/kbstate.h
index 55aca27..fc6987f 100644
--- a/kbstateapplet/kbstate.h
+++ b/kbstateapplet/kbstate.h
@@ -37,7 +37,7 @@ class StatusIcon : public TQPushButton {
Q_OBJECT
TQ_OBJECT
public:
- StatusIcon (const TQString &text, TQWidget *tqparent, const char *name=0);
+ StatusIcon (const TQString &text, TQWidget *parent, const char *name=0);
~StatusIcon ();
TQSize tqminimumSizeHint () const;
@@ -50,7 +50,7 @@ class TimeoutIcon : public StatusIcon {
public:
TimeoutIcon (KInstance *instance, const TQString &text,
const TQString &featurename,
- TQWidget *tqparent, const char *name=0);
+ TQWidget *parent, const char *name=0);
~TimeoutIcon ();
void update ();
@@ -77,7 +77,7 @@ class KeyIcon : public StatusIcon {
TQ_OBJECT
public:
KeyIcon (int keyId, KInstance *instance,
- TQWidget *tqparent, const char *name=0);
+ TQWidget *parent, const char *name=0);
~KeyIcon ();
void setState (bool latched, bool locked);
void drawButton (TQPainter *p);
@@ -107,7 +107,7 @@ class MouseIcon : public StatusIcon {
Q_OBJECT
TQ_OBJECT
public:
- MouseIcon (KInstance *instance, TQWidget *tqparent, const char *name=0);
+ MouseIcon (KInstance *instance, TQWidget *parent, const char *name=0);
~MouseIcon ();
void setState (int state);
void setActiveKey (int activekey);
@@ -138,7 +138,7 @@ class KbStateApplet : public KPanelApplet {
public:
KbStateApplet(const TQString& configFile, Type t = Normal, int actions = 0,
- TQWidget *tqparent = 0, const char *name = 0);
+ TQWidget *parent = 0, const char *name = 0);
~KbStateApplet();
int widthForHeight(int height) const;