From 138838928d9c60f31fb9d7d15ce9adbf40eb8ace Mon Sep 17 00:00:00 2001 From: lordmulder Date: Mon, 28 Mar 2011 04:23:57 +0200 Subject: [PATCH] New icon for network connection error. --- res/icons/network.png | Bin 0 -> 456 bytes res/icons/network_error.png | Bin 0 -> 587 bytes res/icons/shield_error.png | Bin 0 -> 3510 bytes src/Dialog_Update.cpp | 28 +++++++++++++++------------- 4 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 res/icons/network.png create mode 100644 res/icons/network_error.png create mode 100644 res/icons/shield_error.png diff --git a/res/icons/network.png b/res/icons/network.png new file mode 100644 index 0000000000000000000000000000000000000000..b57c65c86a666d62dc2120e6410ddd6cfc142857 GIT binary patch literal 456 zcmV;(0XP1MP))` zICpaqaV&^KTSINZ*0wQ7;?Ncwnndx&yZ7Gjp1V)r6Pdkj9Y_!yXG%aZF*7|&I2!XT zR!h(5c`X@aKsXv>A$3hC@00Iq!5QIVsvB@#O0R#XK_eE^Gt5JejPqX_> zje=FH@FFH?cPyG8rc0yrSyeUSIfY>u=y{FGTdS9m0dO4W2SHUM%q<;y8r)rO0$?}Z zT{{?@03o_;@%XrlwNQA(?!jtD^Fvn{TB0mVyjB~uJD)ULZr0rKf!Ba(m%&r90#5gJ zSs8J$t}LfqosuMRlFMe4K~b$__@1<0uY2Z|{-$rwH+-)Epj}<~8l35QE&0ozPp7wb ycKr;JYpd&+rs>()X9au>D3{CpHPx#1ZP1_K>z@;j|==^1poj532;bRa{vGf5dZ)S5dnW>Uy%R+00(qQO+^RR0uUAi z8`Q{xM*si-8FWQhbW?9;ba!ELWdKlNX>N2bPDNB8b~7$DE;UJt{NMlp0jNntK~y+T zV_?7mnp*1D0P%kUcsefq3?PjsP8|RL`r~)3_}aB=V8ihm0Mcv|yX3!9@(L6T5_|XM z2Vn!=eEI>_STy4d5TAz9XTV}0Ij{?e@oPxx015*X1Kz!R2i9EFvJ8lqLg{5-F_0X{ z0QA^^#{x(aWa) z!wVdZ|3Uu27YiGGg#Uj7YW_dT_y7NL!T;5By z_w^DW@B9P1;PdCt|6jj;jTM7jw#i%I|ChPR|NjFu{U~Gj{|<;BW-$NX>B{^BY{1Q% zH}T>{xjz3-rl|gYR<8K}RVC~HyD5zS_xiH@+2P7u1vY>fd?Z}90%+rXkh6jGW3Xl* Z0025$f8_p3Wbyz2002ovPDHLkV1j)o5O)9o literal 0 HcmV?d00001 diff --git a/res/icons/shield_error.png b/res/icons/shield_error.png new file mode 100644 index 0000000000000000000000000000000000000000..dd5678f99b5b45442f7f4fcaa37b315fc4bf973e GIT binary patch literal 3510 zcmV;n4N3BeP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>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~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0008vNkl%B;=sCIllp_t*x!TP$&dIKA$IL$X zl}d%0ZSz97$n5SSo6V9;CYKaN`KMSc9*IVyXVsN!j&^i(vb z{C<_1ErC}bvJwe=ZV$Guqg1MOZNYiL%~GipcGqk{rONi7F0!VrjoB+#u*+q>Ja&v5 zLqk}jr)ltNl*?rsm~jH83;Fz4z7IZhZ#i&)HEnJDWtt=g2JqHwRF{iw{rw~r7vnl+;Lq0SmDR%z5URs~n%Z+eFfZk59DFy^nn<&g5*y6DX=>;X=7c6Mr|QVFH6 z7ooVQ#p8IrUdG4AE5KgEFwXsNnH-Rl?d|QWbX^Bvetw?G$;mSCOisVisible()) frameAnimation->hide(); statusLabel->setText(tr("Network connectivity test has failed!")); 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.")); hintIcon->show(); hintLabel->show(); @@ -380,12 +382,12 @@ void UpdateDialog::checkForUpdates(void) else { 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.")); if(frameAnimation->isVisible()) frameAnimation->hide(); hintIcon->show(); hintLabel->show(); - WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/bug.png")); + WinSevenTaskbar::setOverlayIcon(this->parentWidget(), &QIcon(":/icons/shield_error.png")); MessageBeep(MB_ICONEXCLAMATION); } @@ -665,7 +667,7 @@ void UpdateDialog::applyUpdate(void) if(hintIcon->isVisible()) hintIcon->hide(); int oldMax = progressBar->maximum(); int oldMin = progressBar->minimum(); - progressBar->setMaximum(0); + progressBar->setRange(0, 0); QApplication::processEvents(); QProcess process;