QVBox* KGameDialog::addConfigPage(KGameDialogConfig* widget, const QString& title) { if (!widget) { kdError(11001) << "Cannot add NULL config widget" << endl; return 0; } QVBox* page = addVBoxPage(title); addConfigWidget(widget, page); return page; }
KVBox* KGameDialog::addConfigPage(KGameDialogConfig* widget, const QString& title) { if (!widget) { kError(11001) << "Cannot add NULL config widget"; return 0; } KVBox* page = new KVBox(); addPage(page,title); addConfigWidget(widget, page); return page; }
void KGameDialog::addConnectionList(KGameDialogConnectionConfig* c, KVBox* parent) { if (!c) { return; } if (!parent) { parent = d->mNetworkPage; } if (!parent) { kError(11001) << "Cannot add connection list without page"; return; } addConfigWidget(c, parent); }
void KGameDialog::addChatWidget(KGameDialogChatConfig* chat, KVBox* parent) { if (!chat) { return; } if (!parent) { parent = d->mGamePage; } if (!parent) { kError(11001) << "cannot add chat widget without page"; return; } addConfigWidget(chat, parent); }