summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/label.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/lib/label.cpp')
-rw-r--r--kalarm/lib/label.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kalarm/lib/label.cpp b/kalarm/lib/label.cpp
index c61ce76a..69cef754 100644
--- a/kalarm/lib/label.cpp
+++ b/kalarm/lib/label.cpp
@@ -19,24 +19,24 @@
*/
#include "kalarm.h"
-#include <qradiobutton.h>
+#include <tqradiobutton.h>
#include "label.moc"
-Label::Label(QWidget* parent, const char* name, WFlags f)
- : QLabel(parent, name, f),
+Label::Label(TQWidget* parent, const char* name, WFlags f)
+ : TQLabel(parent, name, f),
mRadioButton(0),
mFocusWidget(0)
{ }
-Label::Label(const QString& text, QWidget* parent, const char* name, WFlags f)
- : QLabel(text, parent, name, f),
+Label::Label(const TQString& text, TQWidget* parent, const char* name, WFlags f)
+ : TQLabel(text, parent, name, f),
mRadioButton(0),
mFocusWidget(0)
{ }
-Label::Label(QWidget* buddy, const QString& text, QWidget* parent, const char* name, WFlags f)
- : QLabel(buddy, text, parent, name, f),
+Label::Label(TQWidget* buddy, const TQString& text, TQWidget* parent, const char* name, WFlags f)
+ : TQLabel(buddy, text, parent, name, f),
mRadioButton(0),
mFocusWidget(0)
{ }
@@ -47,22 +47,22 @@ Label::Label(QWidget* buddy, const QString& text, QWidget* parent, const char* n
* When the accelerator key is pressed, the focus widget then receives focus.
* That event triggers the selection of the radio button.
*/
-void Label::setBuddy(QWidget* bud)
+void Label::setBuddy(TQWidget* bud)
{
if (mRadioButton)
- disconnect(mRadioButton, SIGNAL(destroyed()), this, SLOT(buddyDead()));
- QWidget* w = bud;
+ disconnect(mRadioButton, TQT_SIGNAL(destroyed()), this, TQT_SLOT(buddyDead()));
+ TQWidget* w = bud;
if (w)
{
while (w->focusProxy())
w = w->focusProxy();
- if (!w->inherits("QRadioButton"))
+ if (!w->inherits("TQRadioButton"))
w = 0;
}
if (!w)
{
// The buddy widget isn't a radio button
- QLabel::setBuddy(bud);
+ TQLabel::setBuddy(bud);
delete mFocusWidget;
mFocusWidget = 0;
mRadioButton = 0;
@@ -72,9 +72,9 @@ void Label::setBuddy(QWidget* bud)
// The buddy widget is a radio button, so set a different buddy
if (!mFocusWidget)
mFocusWidget = new LabelFocusWidget(this);
- QLabel::setBuddy(mFocusWidget);
- mRadioButton = (QRadioButton*)bud;
- connect(mRadioButton, SIGNAL(destroyed()), this, SLOT(buddyDead()));
+ TQLabel::setBuddy(mFocusWidget);
+ mRadioButton = (TQRadioButton*)bud;
+ connect(mRadioButton, TQT_SIGNAL(destroyed()), this, TQT_SLOT(buddyDead()));
}
}
@@ -103,14 +103,14 @@ void Label::activated()
* Class: LabelFocusWidget
=============================================================================*/
-LabelFocusWidget::LabelFocusWidget(QWidget* parent, const char* name)
- : QWidget(parent, name)
+LabelFocusWidget::LabelFocusWidget(TQWidget* parent, const char* name)
+ : TQWidget(parent, name)
{
setFocusPolicy(ClickFocus);
- setFixedSize(QSize(1,1));
+ setFixedSize(TQSize(1,1));
}
-void LabelFocusWidget::focusInEvent(QFocusEvent*)
+void LabelFocusWidget::focusInEvent(TQFocusEvent*)
{
Label* parent = (Label*)parentWidget();
parent->activated();