ossp-pkg/as/as-gui/as_assist.cpp 1.67 -> 1.68
--- as_assist.cpp 2002/12/13 21:25:32 1.67
+++ as_assist.cpp 2002/12/13 23:42:37 1.68
@@ -71,6 +71,7 @@
#include "as_gfx/statok.xpm" // static const char *s_kpcStatokay_xpm[]
#include "as_gfx/staterr.xpm" // static const char *s_kpcStaterror_xpm[]
#include "as_gfx/statwrn.xpm" // static const char *s_kpcStatwarn_xpm[]
+#include "as_gfx/statvoid.xpm" // static const char *s_kpcStatvoid_xpm[]
//
@@ -481,6 +482,7 @@
throw Genexcept("Main window table creation failed.");
m_pMaintable->setNumCols(TITRAQ_IDXTAIL);
m_pMaintable->setReadOnly(true); // Table is read only
+ m_pMaintable->setEnabled(false); // Table starts disabled
m_pMaintable->setColumnMovingEnabled(false); // Ctrl-drag disabled
m_pMaintable->setSelectionMode(QTable::MultiRow); // Multi row selection
m_pMaintable->setCurrentCell(-1, 0); // Initial row value -1
@@ -491,7 +493,7 @@
m_pMaintable->horizontalHeader()->setClickEnabled(true); // Allow click signals
m_pMaintable->horizontalHeader()->setTracking(false); // No continuous tracking
m_pMaintable->setColumnStretchable(TITRAQ_IDXTAIL - 1, true);
- m_pMaintable->setSorting(false);
+ m_pMaintable->setSorting(true);
// Table header row
m_pTablehead = m_pMaintable->horizontalHeader();
@@ -548,6 +550,8 @@
m_pStatusedit = new QLabel(m_pCenframe, "Status");
if (m_pStatusedit == NULL) // Sanity check
throw Genexcept("Main window status edit creation failed.");
+ m_pStatusedit->setPixmap(QPixmap(s_kpcStatvoid_xpm)); // Placeholder
+
QToolTip::add(m_pStatusedit, trUtf8("Status Item"));
m_pEditlayout->addWidget(m_pStatusedit); // Finally add the item status edit
|
|