New icon for network connection error.
This commit is contained in:
parent
dba6d2fb3e
commit
138838928d
BIN
res/icons/network.png
Normal file
BIN
res/icons/network.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 456 B |
BIN
res/icons/network_error.png
Normal file
BIN
res/icons/network_error.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 587 B |
BIN
res/icons/shield_error.png
Normal file
BIN
res/icons/shield_error.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
@ -67,16 +67,18 @@ static const char *update_mirrors[] =
|
|||||||
|
|
||||||
static const char *known_hosts[] =
|
static const char *known_hosts[] =
|
||||||
{
|
{
|
||||||
"http://www.example.com/",
|
|
||||||
"http://www.google.com/",
|
|
||||||
"http://www.wikipedia.org/",
|
|
||||||
"http://www.msn.com/",
|
|
||||||
"http://www.yahoo.com/",
|
|
||||||
"http://sourceforge.net/",
|
|
||||||
"http://www.gitorious.org/",
|
|
||||||
"http://www.youtube.com/",
|
|
||||||
"http://www.ebay.com/",
|
|
||||||
"http://www.amazon.com/",
|
"http://www.amazon.com/",
|
||||||
|
"http://www.aol.com/",
|
||||||
|
"http://www.ask.com/",
|
||||||
|
"http://www.ebay.com/",
|
||||||
|
"http://www.example.com/",
|
||||||
|
"http://www.gitorious.org/",
|
||||||
|
"http://www.google.com/",
|
||||||
|
"http://www.msn.com/",
|
||||||
|
"http://sourceforge.net/",
|
||||||
|
"http://www.wikipedia.org/",
|
||||||
|
"http://www.yahoo.com/",
|
||||||
|
"http://www.youtube.com/",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -284,7 +286,7 @@ void UpdateDialog::checkForUpdates(void)
|
|||||||
if(frameAnimation->isVisible()) frameAnimation->hide();
|
if(frameAnimation->isVisible()) frameAnimation->hide();
|
||||||
statusLabel->setText(tr("Network connectivity test has failed!"));
|
statusLabel->setText(tr("Network connectivity test has failed!"));
|
||||||
progressBar->setValue(progressBar->maximum());
|
progressBar->setValue(progressBar->maximum());
|
||||||
hintIcon->setPixmap(QIcon(":/icons/error.png").pixmap(16,16));
|
hintIcon->setPixmap(QIcon(":/icons/network_error.png").pixmap(16,16));
|
||||||
hintLabel->setText(tr("Please make sure your internet connection is working properly and try again."));
|
hintLabel->setText(tr("Please make sure your internet connection is working properly and try again."));
|
||||||
hintIcon->show();
|
hintIcon->show();
|
||||||
hintLabel->show();
|
hintLabel->show();
|
||||||
@ -380,12 +382,12 @@ void UpdateDialog::checkForUpdates(void)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
statusLabel->setText(tr("Your version appears to be newer than the latest release."));
|
statusLabel->setText(tr("Your version appears to be newer than the latest release."));
|
||||||
hintIcon->setPixmap(QIcon(":/icons/bug.png").pixmap(16,16));
|
hintIcon->setPixmap(QIcon(":/icons/shield_error.png").pixmap(16,16));
|
||||||
hintLabel->setText(tr("This usually indicates your are currently using a pre-release version of LameXP."));
|
hintLabel->setText(tr("This usually indicates your are currently using a pre-release version of LameXP."));
|
||||||
if(frameAnimation->isVisible()) frameAnimation->hide();
|
if(frameAnimation->isVisible()) frameAnimation->hide();
|
||||||
hintIcon->show();
|
hintIcon->show();
|
||||||
hintLabel->show();
|
hintLabel->show();
|
||||||
WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/bug.png"));
|
WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/shield_error.png"));
|
||||||
MessageBeep(MB_ICONEXCLAMATION);
|
MessageBeep(MB_ICONEXCLAMATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -665,7 +667,7 @@ void UpdateDialog::applyUpdate(void)
|
|||||||
if(hintIcon->isVisible()) hintIcon->hide();
|
if(hintIcon->isVisible()) hintIcon->hide();
|
||||||
int oldMax = progressBar->maximum();
|
int oldMax = progressBar->maximum();
|
||||||
int oldMin = progressBar->minimum();
|
int oldMin = progressBar->minimum();
|
||||||
progressBar->setMaximum(0);
|
progressBar->setRange(0, 0);
|
||||||
QApplication::processEvents();
|
QApplication::processEvents();
|
||||||
|
|
||||||
QProcess process;
|
QProcess process;
|
||||||
|
Loading…
Reference in New Issue
Block a user