51 QStatusBar* guistatusbar =
dynamic_cast<QStatusBar*
>(parentWidget());
53 guistatusbar->clearMessage();
56 if (!status && !rate) {
58 if (obj) LCDCurrentRate->setStyleSheet(
"QFrame { background-color:rgb(127,127,127) }");
63 if (Rate>10) LCDCurrentRate->display(floor(Rate));
64 else LCDCurrentRate->display(Rate);
67 if(AvRate>10) LCDAverageRate->display(floor(AvRate));
68 else LCDAverageRate->display(AvRate);
70 int stime = status ? (int) status->
GetTime() : (int) rate->
GetTime();
71 LCDTime->display(stime);
72 ulong hh = stime/3600;
73 ulong mm = (stime-hh*3600)/60;
74 ulong ss = (stime-hh*3600-mm*60);
75 QString tooltip = QString(
"Time since last reset [sec] = %1:%2:%3 [hours:min:sec]").arg(hh).arg(mm).arg(ss);
76 LCDTime->setToolTip(tooltip);
80 if (scnt.length() > LCDProcessedEvents->digitCount())
81 LCDProcessedEvents->setDigitCount(scnt.length());
83 LCDProcessedEvents->display(scnt);
85 const char *color =
"QFrame { background-color:rgb(255,0,0) }";
90 Go4Pix->setWindowIcon( QIcon(
":/icons/go4logo2.png"));
93 color =
"QFrame { background-color:rgb(0,255,0) }";
99 LCDCurrentRate->setStyleSheet(color);