2 #include "topresultdialog.h"
3 #include "ui_topresultdialog.h"
5 TopResultDialog::TopResultDialog(QWidget *parent) :
7 ui(new Ui::TopResultDialog)
10 this->setWindowTitle("Top Results");
12 //Set the amount of requested top results here, untill there is user input
16 TopResultDialog::~TopResultDialog()
21 void TopResultDialog::changeEvent(QEvent *e)
23 QDialog::changeEvent(e);
25 case QEvent::LanguageChange:
26 ui->retranslateUi(this);
34 void TopResultDialog::on_buttonTopRefresh_clicked()
36 emit refreshCategoryList();
39 void TopResultDialog::on_pushButton_debclose_clicked()
44 void TopResultDialog::setCompoBoxCategories(QStringList list)
46 ui->comboBoxTopCategory->addItems(list);
49 void TopResultDialog::showTopList(QString str)
51 ui->labelTopList->setText(str);
54 int TopResultDialog::getRecentCategoryIndex()
56 return recentCategoryIndex;
59 void TopResultDialog::setLimitNr(int number)
64 int TopResultDialog::getLimitNr()
69 void TopResultDialog::on_comboBoxTopCategory_currentIndexChanged(int index)
71 recentCategoryIndex = index;
72 emit refreshTopList(index);