Esempio n. 1
0
void PKFileDialog::setWidget(QObject *_kbfd)
{
  if(_kbfd != 0 && _kbfd->inherits("KFileBaseDialog") == FALSE)
    throw(errorInvalidSet(_kbfd, className()));

  kfbd = (KFileDialog *) _kbfd;
  PWidget::setWidget(kfbd);
}
Esempio n. 2
0
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)));
  }
Esempio n. 3
0
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);
}
Esempio n. 4
0
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);

}
Esempio n. 5
0
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);

}
Esempio n. 6
0
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()));
  }
Esempio n. 7
0
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);

}