void PKFileDialog::setWidget(QObject *_kbfd) { if(_kbfd != 0 && _kbfd->inherits("KFileBaseDialog") == FALSE) throw(errorInvalidSet(_kbfd, className())); kfbd = (KFileDialog *) _kbfd; PWidget::setWidget(kfbd); }
void PPopupMenu::setWidget(QObject *_menu) { if(_menu != 0 && _menu->inherits("QPopupMenu") == FALSE) throw(errorInvalidSet(_menu, className())); menu = (QPopupMenu *) _menu; if(menu != 0x0){ connect(menu, SIGNAL(activated(int)), this, SLOT(got_activated(int))); }
void PWidget::setWidget(QObject *_w) { if(_w != 0 && _w->inherits("QWidget") == FALSE) throw(errorInvalidSet(_w, className())); w = (QWidget *) _w; if(w != 0){ widget()->installEventFilter(this); } PObject::setWidget(_w); }
void PTabDialog::setWidget(QObject *tb) { if(tb != 0 && tb->inherits("QTabDialog") == FALSE) throw(errorInvalidSet(tb, className())); tab = (QTabDialog *) tb; if(tab != 0) { } PObject::setWidget(tb); }
void PTableView::setWidget(QObject *_tbv) { if(_tbv != 0 && _tbv->inherits("QTableView") == FALSE) throw(errorInvalidSet(_tbv, className())); tbl = (QTableView *) _tbv; if(tbl != 0){ } PFrame::setWidget(_tbv); }
void PLineEdit::setWidget(QObject *_le) { if(_le != 0 && _le->inherits("QLineEdit") == FALSE) throw(errorInvalidSet(_le, className())); lineedit = (QLineEdit *) _le; if(lineedit != 0){ connect(lineedit, SIGNAL(textChanged(const char *)), this, SLOT(updateText(const char *))); connect(lineedit, SIGNAL(returnPressed()), this, SLOT(returnPress())); }
void PProgress::setWidget(QObject *_f) /*FOLD00*/ { // debug("PProgress setWidget called"); if(_f != 0 && _f->inherits("KSProgress") == FALSE) throw(errorInvalidSet(_f, className())); ksp = (KSProgress *) _f; if(widget() != 0){ connect(widget(), SIGNAL(cancel()), this, SLOT(cancelPressed())); } PWidget::setWidget(ksp); }