Index: ossp-pkg/as/as-gui/as_assist.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_assist.cpp,v rcsdiff -q -kk '-r1.93' '-r1.94' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_assist.cpp,v' 2>/dev/null --- as_assist.cpp 2003/02/03 10:46:13 1.93 +++ as_assist.cpp 2003/02/03 10:57:57 1.94 @@ -626,6 +626,7 @@ // Table update signals connect(m_pMaintable, SIGNAL(currentChanged(int, int)), this, SLOT(updEdit(int, int))); + connect(m_pMaintable, SIGNAL(clicked(int, int, int, const QPoint&)), this, SLOT(onClick(int, int, int, const QPoint&))); connect(m_pMaintable, SIGNAL(doubleClicked(int, int, int, const QPoint&)), this, SLOT(inplaceEdit(int, int, int, const QPoint&))); connect(m_pTablehead, SIGNAL(sizeChange(int, int, int)), this, SLOT(updSizes(int, int, int))); connect(m_pMaintable, SIGNAL(textEdited(int, int)), this, SLOT(dataChanged(int, int))); Index: ossp-pkg/as/as-gui/as_gui.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_gui.h,v rcsdiff -q -kk '-r1.67' '-r1.68' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_gui.h,v' 2>/dev/null --- as_gui.h 2003/01/30 22:02:41 1.67 +++ as_gui.h 2003/02/03 10:57:57 1.68 @@ -170,6 +170,7 @@ void aboutOSSP(void); // Learn more about the OSSP void aboutQt(void); // Learn more about Qt void selAll(void); // Edit menu select all + void onClick(int, int, int, const QPoint &); // Table was clicked void inplaceEdit(int, int, int, const QPoint &); // Enter in place edit mode void updEdit(int, int nCol = 0); // Update edit controls void validateData(void); // Validate current row of matrix data Index: ossp-pkg/as/as-gui/as_slot.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v rcsdiff -q -kk '-r1.103' '-r1.104' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v' 2>/dev/null --- 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); } //