Commit b011caee authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

hidden microsecs column. Removed Count column. Checks

parent 54daa731
...@@ -26,7 +26,6 @@ AlarmInfoW::AlarmInfoW(QWidget *parent, CumbiaPool *cu_pool, const CuControlsFac ...@@ -26,7 +26,6 @@ AlarmInfoW::AlarmInfoW(QWidget *parent, CumbiaPool *cu_pool, const CuControlsFac
} }
void AlarmInfoW::update(const CuData &da) { void AlarmInfoW::update(const CuData &da) {
printf("AlarmInfo.update: %s\n", datos(da));
model()->removeRows(0, model()->rowCount()); model()->removeRows(0, model()->rowCount());
setDisabled(da["err"].toBool()); setDisabled(da["err"].toBool());
setToolTip(da["msg"].toString().c_str()); setToolTip(da["msg"].toString().c_str());
...@@ -75,8 +74,7 @@ void AlarmInfoW::onItemClicked(const QModelIndex &mi) { ...@@ -75,8 +74,7 @@ void AlarmInfoW::onItemClicked(const QModelIndex &mi) {
void AlarmInfoW::onItemEntered(const QModelIndex &mi) { void AlarmInfoW::onItemEntered(const QModelIndex &mi) {
QString t = mi.data().toString(); QString t = mi.data().toString();
QModelIndex sibling = model()->index(mi.row(), mi.column() - 1); QModelIndex sibling = model()->index(mi.row(), mi.column() - 1);
setCursor(QCursor(sibling.data() == "url" ? Qt::PointingHandCursor : Qt::ArrowCursor)); setCursor(QCursor(sibling.data() == "url" && t.length() > 0 ? Qt::PointingHandCursor : Qt::ArrowCursor));
} }
QString AlarmInfoW::m_line_break(const QString &s, int linelen) const QString AlarmInfoW::m_line_break(const QString &s, int linelen) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment