22 #include <tqradiobutton.h>
27 : TQLabel(parent, name, f),
32 Label::Label( const TQString& text, TQWidget* parent, const char* name, WFlags f)
33 : TQLabel(text, parent, name, f),
38 Label::Label(TQWidget* buddy, const TQString& text, TQWidget* parent, const char* name, WFlags f)
39 : TQLabel(buddy, text, parent, name, f),
53 disconnect(mRadioButton, TQT_SIGNAL(destroyed()), this, TQT_SLOT(buddyDead()));
57 while (w->focusProxy())
58 w = TQT_TQWIDGET(w->focusProxy());
59 if (!w->inherits(TQRADIOBUTTON_OBJECT_NAME_STRING))
74 mFocusWidget = new LabelFocusWidget( this);
76 mRadioButton = (TQRadioButton*)bud;
77 connect(mRadioButton, TQT_SIGNAL(destroyed()), this, TQT_SLOT(buddyDead()));
81 void Label::buddyDead()
92 void Label::activated()
94 if (mFocusWidget && mRadioButton)
96 mRadioButton->setFocus();
97 mRadioButton->setChecked( true);
106 LabelFocusWidget::LabelFocusWidget(TQWidget* parent, const char* name)
107 : TQWidget(parent, name)
109 setFocusPolicy(TQ_ClickFocus);
110 setFixedSize(TQSize(1,1));
113 void LabelFocusWidget::focusInEvent(TQFocusEvent*)
|