Implémentation détection internet
This commit is contained in:
@@ -210,3 +210,21 @@ void CGeneralStatusPage::QuitAppBtnPressed()
|
||||
{
|
||||
mProgramPtr->QuitApplicationRequest();
|
||||
}
|
||||
|
||||
void CGeneralStatusPage::InternetStatusChanged(bool InternetConnected)
|
||||
{
|
||||
if(InternetConnected == true)
|
||||
{
|
||||
ui->mInternetPresentStatLbl->setText("Détecté");
|
||||
QPalette pal = QPalette(ui->mInternetPresentStatLbl->palette());
|
||||
pal.setColor(QPalette::WindowText,QColor(Qt::darkGreen));
|
||||
ui->mInternetPresentStatLbl->setPalette(pal);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->mInternetPresentStatLbl->setText("Déconnecté");
|
||||
QPalette pal = QPalette(ui->mInternetPresentStatLbl->palette());
|
||||
pal.setColor(QPalette::WindowText,QColor(Qt::red));
|
||||
ui->mInternetPresentStatLbl->setPalette(pal);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ private:
|
||||
public slots:
|
||||
void ClearGenMsgAreaBtnPressed();
|
||||
void QuitAppBtnPressed();
|
||||
void InternetStatusChanged(bool InternetConnected);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user