ossp-pkg/as/as-gui/as_assist.cpp 1.107 -> 1.108
--- as_assist.cpp 2003/02/14 19:27:03 1.107
+++ as_assist.cpp 2003/02/17 13:38:22 1.108
@@ -817,33 +817,28 @@
QToolTip::add(m_pEndtime, trUtf8("Task Ending Time"));
m_pEditlayout->addWidget(m_pEndtime); // Finally add the end editor
- // Make the total time amount selector
- m_pAmount = new QTimeEdit(m_pCenframe, "TotalAmount");
- if (m_pAmount == NULL) // Sanity check
- throw Genexcept("Main window amount creation failed."); // Spew errors
+// // Make the total time amount selector
+// m_pAmount = new QTimeEdit(m_pCenframe, "TotalAmount");
+// if (m_pAmount == NULL) // Sanity check
+// throw Genexcept("Main window amount creation failed."); // Spew errors
+//
+// // Configure attributes
+// m_pAmount->setDisplay(QTimeEdit::Hours | QTimeEdit::Minutes);
+// m_pAmount->setAutoAdvance(true);
+// m_pAmount->setEnabled(false);
- // Configure attributes
- m_pAmount->setDisplay(QTimeEdit::Hours | QTimeEdit::Minutes);
- m_pAmount->setAutoAdvance(true);
- m_pAmount->setEnabled(false);
-
-/* // Make the amount selector
- m_pAmount = new AmountBox(TITRAQ_MINAMOUNT, TITRAQ_MAXAMOUNT, TITRAQ_STEPAMOUNT, m_pCenframe, "Amount");
+ // Make the amount selector
+ m_pAmount = new ASTimeEdit(m_pCenframe, "TotalAmount");
if (m_pAmount == NULL) // Sanity check
throw Genexcept("Main window amount creation failed."); // Spew errors
- // Configure attributes
- m_pAmount->setButtonSymbols(QSpinBox::PlusMinus);
- m_pAmount->setSuffix(trUtf8(" Mins"));
- m_pAmount->setEnabled(false);
-// m_pAmount->setSpecialValueText(trUtf8("In progress"));*/
-
// Whatsthis info for the amount editor
const char *kszAmount = "Edit the <em>task amount</em> by clicking on "
"the amount, and then changing its "
"value with the arrow buttons.";
QWhatsThis::add(m_pAmount, kszAmount);
QToolTip::add(m_pAmount, trUtf8("Task Amount"));
+ m_pAmount->setEnabled(false); // Don't enable until it's ready
m_pEditlayout->addWidget(m_pAmount); // Finally add the amount editor
// Construct a stringlist just to hold task values
|
|