--- as_assist.cpp 2002/12/12 12:45:46 1.58
+++ as_assist.cpp 2002/12/12 13:20:43 1.59
@@ -493,11 +493,16 @@
m_pTablehead = m_pMaintable->horizontalHeader();
m_pMaintable->setHScrollBarMode(QScrollView::AlwaysOff);
m_pTablehead->setLabel(TITRAQ_IDXSTATUS, QObject::trUtf8("Stat"), 32);
+ m_pMaintable->setColumnReadOnly (TITRAQ_IDXSTATUS, true);
m_pTablehead->setLabel(TITRAQ_IDXLINE, QObject::trUtf8("Line"), 32);
+ m_pMaintable->setColumnReadOnly (TITRAQ_IDXLINE, true);
m_pTablehead->setLabel(TITRAQ_IDXUSER, QObject::trUtf8("User"), 32);
m_pTablehead->setLabel(TITRAQ_IDXGUID, QObject::trUtf8("GUID"), 36);
+ m_pMaintable->setColumnReadOnly (TITRAQ_IDXGUID, true);
m_pTablehead->setLabel(TITRAQ_IDXCRC, QObject::trUtf8("CRC"), 32);
+ m_pMaintable->setColumnReadOnly (TITRAQ_IDXCRC, true);
m_pTablehead->setLabel(TITRAQ_IDXREV, QObject::trUtf8("Rev"), 32);
+ m_pMaintable->setColumnReadOnly (TITRAQ_IDXREV, true);
m_pTablehead->setLabel(TITRAQ_IDXDATE, QObject::trUtf8("Date"), 94);
m_pTablehead->setLabel(TITRAQ_IDXSTART, QObject::trUtf8("Begin"), 80);
m_pTablehead->setLabel(TITRAQ_IDXFINISH, QObject::trUtf8("End"), 80);
@@ -584,7 +589,7 @@
m_pGuidedit->setFrameShape(QLineEdit::LineEditPanel);
m_pGuidedit->setFrameShadow(QLineEdit::Sunken);
m_pGuidedit->setFrame(true);
- m_pGuidedit->setReadOnly(false);
+ m_pGuidedit->setReadOnly(true);
QToolTip::add(m_pGuidedit, trUtf8("GUID"));
m_pEditlayout->addWidget(m_pGuidedit); // Finally add the GUID edit
@@ -602,7 +607,7 @@
m_pCrcedit->setFrameShape(QLineEdit::LineEditPanel);
m_pCrcedit->setFrameShadow(QLineEdit::Sunken);
m_pCrcedit->setFrame(true);
- m_pCrcedit->setReadOnly(false);
+ m_pCrcedit->setReadOnly(true);
QToolTip::add(m_pCrcedit, trUtf8("CRC"));
m_pEditlayout->addWidget(m_pCrcedit); // Finally add the CRC edit
@@ -620,7 +625,7 @@
m_pRevedit->setFrameShape(QLineEdit::LineEditPanel);
m_pRevedit->setFrameShadow(QLineEdit::Sunken);
m_pRevedit->setFrame(true);
- m_pRevedit->setReadOnly(false);
+ m_pRevedit->setReadOnly(true);
QToolTip::add(m_pRevedit, trUtf8("Revision"));
m_pEditlayout->addWidget(m_pRevedit); // Finally add the revision edit
@@ -758,7 +763,13 @@
// Start edit controls off at right size
this->updSizes(TITRAQ_IDXALLCTRLS, -1, -1);
- // Signals
+ // Signals sent between table cells and corresponding edit control widgets
+ connect(m_pStatusedit, SIGNAL(textChanged(const QString &)), this, SLOT(updateStatus(const QString &)));
+ connect(m_pLineedit, SIGNAL(textChanged(const QString &)), this, SLOT(updateLine(const QString &)));
+ connect(m_pUseredit, SIGNAL(textChanged(const QString &)), this, SLOT(updateUser(const QString &)));
+ connect(m_pGuidedit, SIGNAL(textChanged(const QString &)), this, SLOT(updateGuid(const QString &)));
+ connect(m_pCrcedit, SIGNAL(textChanged(const QString &)), this, SLOT(updateCrc(const QString &)));
+ connect(m_pRevedit, SIGNAL(textChanged(const QString &)), this, SLOT(updateRev(const QString &)));
connect(m_pDateedit, SIGNAL(valueChanged(const QDate &)), this, SLOT(updateDate(const QDate &)));
connect(m_pStarttime, SIGNAL(valueChanged(const QTime &)), this, SLOT(updateStart(const QTime &)));
connect(m_pEndtime, SIGNAL(valueChanged(const QTime &)), this, SLOT(updateFinish(const QTime &)));
@@ -793,7 +804,7 @@
showFinishcol();
if (!m_pPrefs->getBool(TITRAQ_PREFACOL, TITRAQ_DEFACOL))
showAmountcol();
- if (!m_pPrefs->getBool(TITRAQ_PREFFCOL, TITRAQ_DEFFCOL))
+ if (!m_pPrefs->getBool(TITRAQ_PREFTCOL, TITRAQ_DEFTCOL))
showTaskcol();
if (!m_pPrefs->getBool(TITRAQ_PREFREMCOL, TITRAQ_DEFREMCOL))
showRemarkcol();
|