ossp-pkg/as/as-gui/as_dataop.cpp 1.17 -> 1.18
--- as_dataop.cpp 2002/12/10 13:08:29 1.17
+++ as_dataop.cpp 2002/12/12 17:14:49 1.18
@@ -29,12 +29,16 @@
// tidatops.cpp: ISO C++ implementation
//
+// Qt general headers
#include <qregexp.h> // Portable regular expressions
+// User interface
#include "as_gui.h" // Main classes
#include "as_except.h" // Exception classes
#include "as_tableitem.h" // For class RtTableItem
+// Icon pixel maps
+#include "as_gfx/statok.xpm" // static const char *s_kpcStatokay_xpm[]
//
// Convenience method to load accounting data from a file
@@ -153,6 +157,10 @@
if (Remark != NULL)
m_pMaintable->setText(nIter, TITRAQ_IDXREMARK, Remark);
+ // Dynamically display status and line numbers
+ m_pMaintable->setPixmap(nIter, TITRAQ_IDXSTATUS, QPixmap(s_kpcStatokay_xpm));
+ m_pMaintable->setText(nIter, TITRAQ_IDXLINE, (QString::number(nIter)).rightJustify(4, QChar('0')));
+
nIter++; // The big increment
Line = trUtf8(""); // Clear line for next round
|
|