...
#include <QNetworkAccessManager>
...
if (0 == QNetworkAccessManager::NotAccessible) {
QString completeMessage
= i18n
("Sorry, you have no internet connection at the moment \n" "Will stop bundle(s) installation now");
KDialog *dialog = new KDialog(this, Qt::FramelessWindowHint);
dialog->setButtons(KDialog::Ok);
dialog->setModal(true);
bool retbool;
KMessageBox
::createKMessageBox(dialog,
QMessageBox::Warning, completeMessage,
return;
}
...
#include <QNetworkAccessManager>
...
if (0 == QNetworkAccessManager::NotAccessible) {
QString completeMessage = i18n("Sorry, you have no internet connection at the moment \n"
"Will stop bundle(s) installation now");
KDialog *dialog = new KDialog(this, Qt::FramelessWindowHint);
dialog->setButtons(KDialog::Ok);
dialog->setModal(true);
bool retbool;
KMessageBox::createKMessageBox(dialog, QMessageBox::Warning, completeMessage,
QStringList(), QString(), &retbool, KMessageBox::Notify);
return;
}
To copy to clipboard, switch view to plain text mode
Has anybody an idea?
Bookmarks