ossp-pkg/as/as-gui/as_slot.cpp 1.103 -> 1.104
--- as_slot.cpp 2003/01/31 18:48:57 1.103
+++ as_slot.cpp 2003/02/03 10:57:57 1.104
@@ -796,6 +796,16 @@
}
//
+// Gets a hit on every table click
+//
+void Titraqform::onClick(int nRow, int nCol, int nButton, const QPoint &Mousepos)
+{
+ // Give the clueless user some hints when clicking an empty timesheet
+ if (m_pMaintable->numRows() <= 0)
+ m_pStatbar->message(trUtf8("Empty timesheet, add entries first please"), 2000);
+}
+
+//
// Update the edit controls contents
//
void Titraqform::updEdit(int nRow, int nCol)
@@ -851,8 +861,6 @@
else
m_pEndtime->setTime(QTime::QTime(0, 0));
}
- else
- m_pStatbar->message(trUtf8("Empty timesheet, add entries first please"), 4000);
}
//
|
|