--- as_slot.cpp 2002/11/26 19:33:37 1.18
+++ as_slot.cpp 2002/11/26 20:25:16 1.19
@@ -199,12 +199,12 @@
QRegExp Shorten("/(\\w+)$"); // For stripping prefix off the current task
// Field strings to check for validity and process
- QString Textdate(m_pMaintable->text(nRow, TITRAQ_INDEXDATE));
- QString Textstart(m_pMaintable->text(nRow, TITRAQ_INDEXAMOUNT));
- QString Textfinish(m_pMaintable->text(nRow, TITRAQ_INDEXAMOUNT));
- QString Textamount(m_pMaintable->text(nRow, TITRAQ_INDEXAMOUNT));
- QString Texttask(m_pMaintable->text(nRow, TITRAQ_INDEXTASK));
- QString Textremark(m_pMaintable->text(nRow, TITRAQ_INDEXREMARK));
+ QString Textdate(m_pMaintable->text(nRow, TITRAQ_IDXDATE));
+ QString Textstart(m_pMaintable->text(nRow, TITRAQ_IDXAMOUNT));
+ QString Textfinish(m_pMaintable->text(nRow, TITRAQ_IDXAMOUNT));
+ QString Textamount(m_pMaintable->text(nRow, TITRAQ_IDXAMOUNT));
+ QString Texttask(m_pMaintable->text(nRow, TITRAQ_IDXTASK));
+ QString Textremark(m_pMaintable->text(nRow, TITRAQ_IDXREMARK));
if (!Textdate.isEmpty())
m_pDateedit->setDate(QDate::fromString(Textdate, Qt::ISODate));
@@ -262,8 +262,14 @@
//
void Titraqform::showFilebar(void)
{
- Prototype Unimp;
- Unimp.doMbox();
+ if (m_pFiletools->isVisible()) {
+ m_pFiletools->hide();
+ m_pTbarspopup->setItemChecked(m_pTbarspopup->idAt(TITRAQ_IDXFILEBAR), false);
+ }
+ else {
+ m_pFiletools->show();
+ m_pTbarspopup->setItemChecked(m_pTbarspopup->idAt(TITRAQ_IDXFILEBAR), true);
+ }
}
//
@@ -271,8 +277,14 @@
//
void Titraqform::showEditbar(void)
{
- Prototype Unimp;
- Unimp.doMbox();
+ if (m_pEdittools->isVisible()) {
+ m_pEdittools->hide();
+ m_pTbarspopup->setItemChecked(m_pTbarspopup->idAt(TITRAQ_IDXEDITBAR), false);
+ }
+ else {
+ m_pEdittools->show();
+ m_pTbarspopup->setItemChecked(m_pTbarspopup->idAt(TITRAQ_IDXEDITBAR), true);
+ }
}
//
@@ -280,8 +292,14 @@
//
void Titraqform::showWhatsbar(void)
{
- Prototype Unimp;
- Unimp.doMbox();
+ if (m_pWhatstools->isVisible()) {
+ m_pWhatstools->hide();
+ m_pTbarspopup->setItemChecked(m_pTbarspopup->idAt(TITRAQ_IDXWHATBAR), false);
+ }
+ else {
+ m_pWhatstools->show();
+ m_pTbarspopup->setItemChecked(m_pTbarspopup->idAt(TITRAQ_IDXWHATBAR), true);
+ }
}
//
|