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, TQ_SIGNAL(destroyed()), this, TQ_SLOT(buddyDead())); 57 while (w->focusProxy()) 59 if (!w->inherits( "TQRadioButton")) 65 TQLabel::setBuddy(bud); 74 mFocusWidget = new LabelFocusWidget( this); 75 TQLabel::setBuddy(mFocusWidget); 76 mRadioButton = (TQRadioButton*)bud; 77 connect(mRadioButton, TQ_SIGNAL(destroyed()), this, TQ_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(TQWidget::ClickFocus); 110 setFixedSize(TQSize(1,1)); 113 void LabelFocusWidget::focusInEvent(TQFocusEvent*) virtual void setBuddy(TQWidget *buddy) Sets the label's buddy widget which receives the keyboard focus when the label's accelerator key is p...
A TQLabel with option for a buddy radio button.
Label(TQWidget *parent, const char *name=0, WFlags f=0) Constructs an empty label.
|