summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/label.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/lib/label.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 c61ce76ad..69cef7544 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();