summaryrefslogtreecommitdiffstats
path: root/kbstateapplet
diff options
context:
space:
mode:
Diffstat (limited to 'kbstateapplet')
-rw-r--r--kbstateapplet/kbstate.cpp36
-rw-r--r--kbstateapplet/kbstate.h10
2 files changed, 23 insertions, 23 deletions
diff --git a/kbstateapplet/kbstate.cpp b/kbstateapplet/kbstate.cpp
index e0bf552..30dc5c5 100644
--- a/kbstateapplet/kbstate.cpp
+++ b/kbstateapplet/kbstate.cpp
@@ -113,7 +113,7 @@ KbStateApplet::KbStateApplet(const TQString& configFile, Type t, int actions,
accessxFeatures = 0;
//startTimer(100); // ten times a second
- connect(kapp, TQT_SIGNAL(tdedisplayPaletteChanged()), TQT_SLOT(paletteChanged()));
+ connect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()), TQ_SLOT(paletteChanged()));
kapp->installX11EventFilter (this);
int opcode_rtn, error_rtn;
@@ -139,27 +139,27 @@ void KbStateApplet::buildPopupMenu()
sizePopup->insertItem(i18n("Small"), 13);
sizePopup->insertItem(i18n("Medium"), 20);
sizePopup->insertItem(i18n("Large"), 26);
- connect(sizePopup,TQT_SIGNAL(activated(int)), this, TQT_SLOT(setIconDim(int)));
+ connect(sizePopup,TQ_SIGNAL(activated(int)), this, TQ_SLOT(setIconDim(int)));
showPopup=new TDEPopupMenu(this);
showPopup->setCheckable( true );
- modifierItem=showPopup->insertItem(i18n("Modifier Keys"), this, TQT_SLOT(toggleModifier()));
- lockkeysItem=showPopup->insertItem(i18n("Lock Keys"), this, TQT_SLOT(toggleLockkeys()));
- mouseItem=showPopup->insertItem(i18n("Mouse Status"), this, TQT_SLOT(toggleMouse()));
- accessxItem=showPopup->insertItem(i18n("AccessX Status"), this, TQT_SLOT(toggleAccessX()));
+ modifierItem=showPopup->insertItem(i18n("Modifier Keys"), this, TQ_SLOT(toggleModifier()));
+ lockkeysItem=showPopup->insertItem(i18n("Lock Keys"), this, TQ_SLOT(toggleLockkeys()));
+ mouseItem=showPopup->insertItem(i18n("Mouse Status"), this, TQ_SLOT(toggleMouse()));
+ accessxItem=showPopup->insertItem(i18n("AccessX Status"), this, TQ_SLOT(toggleAccessX()));
popup = new TDEPopupMenu(this);
popup->setCheckable( true );
popup->insertTitle(0, i18n("Keyboard Status Applet"));
popup->insertItem(i18n("Set Icon Size"),sizePopup);
fillSpaceItem = popup->insertItem(i18n("Fill Available Space"),
- this, TQT_SLOT(toggleFillSpace()));
+ this, TQ_SLOT(toggleFillSpace()));
popup->insertItem(i18n("Show"),showPopup);
- popup->insertItem(i18n("Configure AccessX Features..."), this, TQT_SLOT(configureAccessX()));
- popup->insertItem(i18n("Configure Keyboard..."), this, TQT_SLOT(configureKeyboard()));
- popup->insertItem(i18n("Configure Mouse..."), this, TQT_SLOT(configureMouse()));
+ popup->insertItem(i18n("Configure AccessX Features..."), this, TQ_SLOT(configureAccessX()));
+ popup->insertItem(i18n("Configure Keyboard..."), this, TQ_SLOT(configureKeyboard()));
+ popup->insertItem(i18n("Configure Mouse..."), this, TQ_SLOT(configureMouse()));
popup->insertSeparator();
- popup->insertItem(i18n("About"), this, TQT_SLOT(about()));
+ popup->insertItem(i18n("About"), this, TQ_SLOT(about()));
setCustomMenu(popup);
updateMenu();
}
@@ -264,7 +264,7 @@ int KbStateApplet::heightForWidth(int w) const {
}
void KbStateApplet::mousePressEvent(TQMouseEvent *e) {
- if (e->button() == Qt::RightButton)
+ if (e->button() == TQt::RightButton)
popup->popup(e->globalPos());
}
@@ -308,7 +308,7 @@ void KbStateApplet::layout() {
accessxCount++;
}
- if (orientation() ==Qt::Vertical) {
+ if (orientation() ==TQt::Vertical) {
calculateSizes (width(), modifierCount, lockkeyCount, accessxCount,
showMouse, lines, length, size);
@@ -547,8 +547,8 @@ void KbStateApplet::initMasks() {
if ((map <= 7) && !(icons[map])) {
icons[map] = new KeyIcon (i, instance, this, modifierKeys[i].name);
TQToolTip::add (icons[map], i18n (modifierKeys[i].name));
- connect (icons[map], TQT_SIGNAL(stateChangeRequest (KeyIcon*,bool,bool)),
- TQT_SLOT(stateChangeRequest (KeyIcon*,bool,bool)));
+ connect (icons[map], TQ_SIGNAL(stateChangeRequest (KeyIcon*,bool,bool)),
+ TQ_SLOT(stateChangeRequest (KeyIcon*,bool,bool)));
if (modifierKeys[i].isModifier)
modifiers.append(icons[map]);
else
@@ -755,7 +755,7 @@ KeyIcon::KeyIcon (int keyId, TDEInstance *instance,
isLocked = false;
isLatched = false;
updateImages ();
- connect (this, TQT_SIGNAL(clicked()), TQT_SLOT(clickedSlot()));
+ connect (this, TQ_SIGNAL(clicked()), TQ_SLOT(clickedSlot()));
}
KeyIcon::~KeyIcon () {
@@ -862,7 +862,7 @@ MouseIcon::MouseIcon (TDEInstance *instance, TQWidget *parent, const char *name)
state = 0;
activekey = 0;
updateImages ();
- connect (this, TQT_SIGNAL(clicked()), TQT_SLOT(clickedSlot()));
+ connect (this, TQ_SIGNAL(clicked()), TQ_SLOT(clickedSlot()));
}
MouseIcon::~MouseIcon () {
@@ -964,7 +964,7 @@ TimeoutIcon::TimeoutIcon (TDEInstance *instance, const TQString &text,
this->featurename = featurename;
glyth = " ";
setImage (featurename);
- connect (&timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()));
+ connect (&timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()));
}
TimeoutIcon::~TimeoutIcon () {
diff --git a/kbstateapplet/kbstate.h b/kbstateapplet/kbstate.h
index da09d48..854d61c 100644
--- a/kbstateapplet/kbstate.h
+++ b/kbstateapplet/kbstate.h
@@ -34,7 +34,7 @@ class TQGridLayout;
class TDEPopupMenu;
class StatusIcon : public TQPushButton {
- Q_OBJECT
+ TQ_OBJECT
public:
StatusIcon (const TQString &text, TQWidget *parent, const char *name=0);
@@ -45,7 +45,7 @@ public:
typedef TQPtrList<StatusIcon> IconList;
class TimeoutIcon : public StatusIcon {
- Q_OBJECT
+ TQ_OBJECT
public:
TimeoutIcon (TDEInstance *instance, const TQString &text,
@@ -73,7 +73,7 @@ private slots:
};
class KeyIcon : public StatusIcon {
- Q_OBJECT
+ TQ_OBJECT
public:
KeyIcon (int keyId, TDEInstance *instance,
@@ -104,7 +104,7 @@ private:
};
class MouseIcon : public StatusIcon {
- Q_OBJECT
+ TQ_OBJECT
public:
MouseIcon (TDEInstance *instance, TQWidget *parent, const char *name=0);
@@ -133,7 +133,7 @@ class MouseIcon : public StatusIcon {
};
class KbStateApplet : public KPanelApplet {
- Q_OBJECT
+ TQ_OBJECT
public: