FACT++  1.0
template<typename T >
void FactGui::handleFadToolTip ( const Time time,
QWidget *  w,
T *  ptr 
)
inlineprivate

Definition at line 1436 of file FactGui.h.

References Time::GetAsStr().

1437  {
1438  ostringstream tip;
1439  tip << "<table border='1'><tr><th colspan='11'>" << time.GetAsStr() << " (UTC)</th></tr><tr><th></th>";
1440  for (int b=0; b<10; b++)
1441  tip << "<th>" << b << "</th>";
1442  tip << "</tr>";
1443 
1444  for (int c=0; c<4; c++)
1445  {
1446  tip << "<tr><th>" << c << "</th>";
1447  for (int b=0; b<10; b++)
1448  tip << "<td>" << ptr[c*10+b] << "</td>";
1449  tip << "</tr>";
1450  }
1451  tip << "</table>";
1452 
1453  w->setToolTip(tip.str().c_str());
1454  }
std::string GetAsStr(const char *fmt="%Y-%m-%d %H:%M:%S") const
Definition: Time.cc:240

+ Here is the call graph for this function: