UICheatSearch::UICheatSearch( QWidget* p, QList <cheatsearch_struct> *search, int searchType) : QDialog( p ) { // set up dialog setupUi( this ); if ( p && !p->isFullScreen() ) setWindowFlags( Qt::Sheet ); this->search = *search; this->searchType = searchType; // If cheat search hasn't been started yet, disable search and add // cheat if (this->search.empty()) { pbRestart->setText(QtYabause::translate("Start")); pbSearch->setEnabled( false ); pbAddCheat->setEnabled( false ); } getSearchTypes(); listResults(); // retranslate widgets QtYabause::retranslateWidget( this ); }
void Irc::handleChanlist(bool end) { if ( end == false ) { channames.clear(); userscount.clear(); chantopics.clear(); } else if ( end == true ) { emit listResults( channames, userscount, chantopics ); } }