From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kalarm/lib/label.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'kalarm/lib/label.cpp') 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 +#include #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(); -- cgit v1.2.1