OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_amount.h versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_amount.h 1.3 -> 1.4

--- as_amount.h  2002/12/04 14:50:08     1.3
+++ as_amount.h  2003/02/17 13:38:22     1.4
@@ -32,15 +32,24 @@
 #ifndef AMOUNTBOX_H
 #define AMOUNTBOX_H
 
-#include <qspinbox.h>
+#include <qdatetimeedit.h>
 
 
-class AmountBox : public QSpinBox
+class ASTimeEdit : public QTimeEdit
 {
 public:
-    AmountBox(int nMinval, int nMaxval, int nStep = 1, QWidget *pParent = 0, const char *szName = 0) : QSpinBox(nMinval, nMaxval, nStep, pParent, szName) {setValue(0);};
-    void setText(const QString &);  // Sets a text formatted representation
-    QString text(void) const;       // Return a text formatted representation
+    ASTimeEdit(QWidget *pParent = 0, const char *szName = 0) : QTimeEdit(pParent, szName)
+    {
+        this->setTime(QTime::QTime(0, 0));
+        this->setDisplay(QTimeEdit::Hours | QTimeEdit::Minutes);
+        this->setAutoAdvance(true);
+//        this->setMaxValue();
+//        this->setSuffix(trUtf8(" Mins"));
+//        this->setButtonSymbols(QSpinBox::PlusMinus);
+//        this->setSpecialValueText(trUtf8("In progress"));
+    };
+//    void setText(const QString &);  // Sets a text formatted representation
+//    QString text(void) const;       // Return a text formatted representation
 };
 
 #endif // AMOUNTBOX_H

CVSTrac 2.0.1