X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fcarmainwindow.cpp;h=cd8825792fc9c19a2304d2385431de063a111861;hp=d340d19f3f44cd9876e8da0855d91c8b8eb7ccb3;hb=dfe2f2c613dc28d33985c0658e0499cddb166f4c;hpb=39d7f4c4a512b62dac0f777385af70f18f8bcedd diff --git a/Client/carmainwindow.cpp b/Client/carmainwindow.cpp index d340d19..cd88257 100644 --- a/Client/carmainwindow.cpp +++ b/Client/carmainwindow.cpp @@ -13,16 +13,11 @@ CarMainWindow::CarMainWindow(QWidget *parent):QMainWindow(parent), ui(new Ui::Ca initUnitCompoBox(); initSpeedListView(); -<<<<<<< HEAD:Client/carmainwindow.cpp - initCategoryCompoBox(); myLogin = new LoginWindow(this); myRegistration = new Registration(this); manager = new QNetworkAccessManager(this); connect(manager,SIGNAL(finished(QNetworkReply*)),this,SLOT(networkResponse(QNetworkReply*))); - -======= ->>>>>>> feature/XMLreader:Client/carmainwindow.cpp } /** @@ -113,11 +108,7 @@ void CarMainWindow::setUnitCompoBox(QStringList units) */ void CarMainWindow::initSpeedListView() { -<<<<<<< HEAD:Client/carmainwindow.cpp - numbers << "0-40 km/h" << "0-1/4 mil" << "0-50 km" << "50-100 mil" << "0-100 m" << "0-50 ft" << "0-50 yrd" << "0-500 in"; -======= numbers << "0-40 km/h" << "0-1/4 Mile" << "0-1/8 Mile" << "0-50 km" << "50-100 Mile" << "0-60 Mph" << "0-100 m" << "0-50 ft" << "0-50 yrd" << "0-500 in"; ->>>>>>> feature/XMLreader:Client/carmainwindow.cpp QAbstractItemModel *model = new StringListModel(numbers); ui->listView->setModel(model); } @@ -177,7 +168,6 @@ void CarMainWindow::openResultView() } /** -<<<<<<< HEAD:Client/carmainwindow.cpp *This slot function is called when the server has finished guery. */ void CarMainWindow::networkResponse(QNetworkReply *reply) @@ -212,7 +202,9 @@ void CarMainWindow::on_loginLogoutButton_clicked() void CarMainWindow::on_registratePushButton_clicked() { myRegistration->show(); -======= +} + +/** *This slot function is called when ever refresh button clicked. Top-tab view. */ void CarMainWindow::on_buttonTopRefresh_clicked() @@ -227,5 +219,24 @@ void CarMainWindow::on_buttonTopRefresh_clicked() void CarMainWindow::on_comboBoxTopCategory_currentIndexChanged(QString category) { setListViewTopList(category); ->>>>>>> feature/XMLreader:Client/carmainwindow.cpp +} + +/** + *This slot function is called when ever category combobox activated. Top-tab view. + *@param QString category + */ +void CarMainWindow::on_comboBoxTopCategory_activated(QString category) +{ + setListViewTopList(category); +} + +/** + *This slot function is called when set/change user button is clicked. + */ +void CarMainWindow::on_setUserPushButton_clicked() +{ + myLogin->show(); + + ui->userNameLabel->setText( "User: " + myLogin->getUserName()); + ui->setUserPushButton->setText( "Change User"); }