Source Code (Use browser search to find items of interest.)

Class Index

kppp'KRadioGroupBox (./kdenetwork/kppp/groupbox.h:66)

class KRadioGroupBox : public KGroupBoxBase {
  Q_OBJECT
public:
  KRadioGroupBox(const char *title, QWidget *parent = 0, const char *name = 0);

  void setTitle(const char *title);
  bool isChecked();

private slots:
  void slot_toggled(bool);

signals:
  void toggled(bool);

private:
  QRadioButton *rb;
};

kppp'KRadioGroupBox::KRadioGroupBox() (./kdenetwork/kppp/groupbox.cpp:144)

KRadioGroupBox::KRadioGroupBox(const char *title, QWidget *parent, const char *name) :
  KGroupBoxBase(parent, name)
{
  setTitle(title);
}



kppp'KRadioGroupBox::setTitle() (./kdenetwork/kppp/groupbox.cpp:151)

void KRadioGroupBox::setTitle(const char *name) {
  rb = new QRadioButton(name, this);
  rb->setMinimumWidth(rb->sizeHint().width()+8);
  rb->setMinimumHeight(rb->sizeHint().height());
  connect(rb, SIGNAL(toggled(bool)),
	  this, SLOT(slot_toggled(bool)));
  setTitleWidget(rb);
}



kppp'KRadioGroupBox::slot_toggled() (./kdenetwork/kppp/groupbox.cpp:161)

void KRadioGroupBox::slot_toggled(bool b) {
  emit toggled(b);
}



kppp'KRadioGroupBox::isChecked() (./kdenetwork/kppp/groupbox.cpp:166)

bool KRadioGroupBox::isChecked() {
  return rb->isChecked();
}