summaryrefslogtreecommitdiffabout
path: root/korganizer/ktimeedit.h
Side-by-side diff
Diffstat (limited to 'korganizer/ktimeedit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/ktimeedit.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/korganizer/ktimeedit.h b/korganizer/ktimeedit.h
index 7923070..b3d842d 100644
--- a/korganizer/ktimeedit.h
+++ b/korganizer/ktimeedit.h
@@ -29,67 +29,64 @@
#include <qdatetime.h>
#include <qcombobox.h>
#include <kapplication.h>
/**
This is a class that provides an easy, user friendly way to edit times.
up/down/ increase or decrease time, respectively.
@short Provides a way to edit times in a user-friendly manner.
@author Preston Brown, Ian Dawes
*/
class KOTimeEdit : public QComboBox
{
Q_OBJECT
public:
/** constructs a new time edit. */
KOTimeEdit(QWidget *parent=0, QTime qt=QTime(12,0), const char *name=0);
virtual ~KOTimeEdit();
/**
Returns, if a time is selected. Can not return false anymore....
*/
bool hasTime() const;
/** returns the time that is currently set in the timeLineEdit. */
QTime getTime() const;
/** returns the prefered size policy of the KOTimeEdit */
//QSizePolicy sizePolicy() const;
- /** return true if input is a valid time and false if not */
- bool inputIsValid() const;
-
signals:
/**
Emitted every time the time displayed changes. "newt" is the new
time.
*/
void timeChanged(QTime newt);
public slots:
/** used to set the time which is displayed to a specific value. */
void setTime(QTime qt);
protected slots:
void activ(int);
void hilit(int);
void changedText();
protected:
void keyPressEvent(QKeyEvent *qke);
void keyReleaseEvent(QKeyEvent *qke);
void setSelect ( int, int );
bool mFlagKeyPressed;
void addTime(QTime qt, bool update = true );
void subTime(QTime qt, bool update = true );
// Update the lineedit text from mTime
void updateText();
// void mouseReleaseEvent ( QMouseEvent * ) ;
//void focusInEvent ( QFocusEvent * ) ;
private:
QTime mTime; // the widget's displayed time.
//QString mNoTimeString;
};