fixed win compilation error

This commit is contained in:
Liran BN 2014-10-13 16:00:58 +03:00
parent 2cd9ea4f8d
commit e48ae9d43c
4 changed files with 7 additions and 6 deletions

View file

@ -46,7 +46,7 @@ void jceStatusBar::setIconConnectionStatus(jceProgressStatus update)
QPixmap iconPix;
switch (update)
{
case jceProgressStatus::ERROR:
case jceProgressStatus::Error:
setProgressValue(0);
iconPix.load(":/icons/redStatusIcon.png");
showMessage(tr("Error"));

View file

@ -12,6 +12,7 @@
class jceStatusBar : public QStatusBar
{
Q_OBJECT
public:
enum jceProgressStatus
@ -25,7 +26,7 @@ public:
Recieving,
Inserting,
Done,
ERROR
Error
};
jceStatusBar(QWidget *parent = 0);
@ -45,8 +46,8 @@ private slots:
private:
QProgressBar * progressBar;
QLabel *iconButtomStatusLabel;
QProgressBar * progressBar;
QLabel *iconButtomStatusLabel;
};
#endif // JCESTATUSBAR_H

View file

@ -163,7 +163,7 @@ void MainScreen::on_ratesButton_clicked()
}
else
{
statusBar->setIconConnectionStatus(jceStatusBar::ERROR);
statusBar->setIconConnectionStatus(jceStatusBar::Error);
qCritical() << Q_FUNC_INFO << "grade get ended with" << status;
}
}

View file

@ -97,7 +97,7 @@ int jceLogin::makeConnection()
status = jceStatus::JCE_NOT_CONNECTED;
if (status != jceStatus::JCE_YOU_ARE_IN)
statusBar->setIconConnectionStatus(jceStatusBar::ERROR);
statusBar->setIconConnectionStatus(jceStatusBar::Error);
//we throw status even if we are IN!
qDebug() << Q_FUNC_INFO << "return status: " << status;
return status;