From d5860b766ebbbbb61802122dfc9a1fd276a2707e Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 8 Aug 2009 22:12:22 +0200 Subject: [PATCH] bat: display a Warning icon when having Errors>0 and Status=T --- bacula/src/qt-console/images/W.png | Bin 0 -> 1077 bytes bacula/src/qt-console/job/job.cpp | 8 ++++++-- bacula/src/qt-console/main.qrc | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 bacula/src/qt-console/images/W.png diff --git a/bacula/src/qt-console/images/W.png b/bacula/src/qt-console/images/W.png new file mode 100644 index 0000000000000000000000000000000000000000..6d7dbadd8e295d6bfad316c2d16279e457c7862c GIT binary patch literal 1077 zcmV-51j_q~P)1Hwr} zK~#90wU%pWTtyVee{=8MyPMt3?q+w>CNWL((1yfxlO{H38ftB}mX^{g+G6#KkA4wB zZBfxLA_xj%L4@iTEfj_Np`uaHg0(gxT17!r8Xrwx+K{H{+D*21U-#jMd+%nm*{b*$ zILw@xGyngbnKNew{^uh8hK(0k2iyeYfaAci|7rmb0OtU!LVf^l{Wri~VAKWldL(Ph z+E#01u&I*hnSTm?*ag{jXTNps$b(kl%X=;D({0w_7kjMr{o!(weSZcfSLr(lZ1t%U z@9w*shi{7#&`(0)5|XLWvee7Q!8&pUldpfw0IUXPvCrl&33dZ}01mx;7aMynLw*|6 z7$QE5kZTZyiv((9u5SyFnk(|%ga&pH907i-B#_G5&A{^jPwpCKQ*R!MX+UsVTS5EC zUfMSwVEn8Gz_KM?9^ctaqQmcQ>zht}RS#YR64x$|bMU!gq}&<1*AwQI(G>3={hnFP zKoWxF4G|5`tB(=klT z9utB!i4ga1Ug{3-0YcRXo&p$5w6LL92TPx~Fm>v~^Nu#gJSg(~{S5eI9^G*bwSEZ) ze0L>52-ptr$UQ3|KeJ#Dt>P?e`ywShIS@gX7AAm(sE7MDmArVUl3**~4F^4JTT_P} z+6x%yYm@124bsu%qieaJ%2MN%*_o_&)q3ox0zh$<+moFrMrzSy0P@qk@pKOtQ&(t= zsZ~u@wgBcZ$be_=u2S=JQv3xvsgUDoLU};5L^59zZW$w4Wx2=*><11~3Jj0KNcDIr1woBd{aMgPjTe*auXP zou5`X#BuER+ZD}`8Q=m?#C{V}4%wvBzT!@hursUd5V>B}I=bqNNoC^Z3)3OcfHaT+ v=CD5qMzvpsORAKSU(L>~EoZA-DV_Eo@ueBY_#z!f00000NkvXXu0mjfsetText(convertBytesSI(fld.next().toULongLong())); label_JobFiles->setText(fld.next()); - label_JobErrors->setText(fld.next()); + err = fld.next(); + label_JobErrors->setText(err); stat=fld.next(); + if (stat == "T" && err.toInt() > 0) { + stat = "W"; + } label_JobStatus->setPixmap(QPixmap(":/images/" + stat + ".png")); jobstatus_to_ascii_gui(stat[0].toAscii(), buf, sizeof(buf)); stat = buf; diff --git a/bacula/src/qt-console/main.qrc b/bacula/src/qt-console/main.qrc index 0f9d56ea16..b4058f7101 100644 --- a/bacula/src/qt-console/main.qrc +++ b/bacula/src/qt-console/main.qrc @@ -1,5 +1,6 @@ + images/W.png images/edit.png images/extern.png images/intern.png -- 2.39.5