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::setCompoBoxCategories(QStringList list)
41 ui->comboBoxTopCategory->addItems(list);
44 void TopResultDialog::showTopList(QString str)
46 ui->labelTopList->setText(str);
49 int TopResultDialog::getRecentCategoryIndex()
51 return recentCategoryIndex;
54 void TopResultDialog::setLimitNr(int number)
59 int TopResultDialog::getLimitNr()
64 void TopResultDialog::on_comboBoxTopCategory_currentIndexChanged(int index)
66 recentCategoryIndex = index;
67 emit refreshTopList(index);
70 void TopResultDialog::setLabelInfoToUser(QString infoText)
72 this->ui->labelInfoToUser->setText(infoText);