summaryrefslogtreecommitdiffabout
path: root/korganizer/ktimeedit.h
Unidiff
Diffstat (limited to 'korganizer/ktimeedit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/ktimeedit.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/korganizer/ktimeedit.h b/korganizer/ktimeedit.h
index b3d842d..1c7d18d 100644
--- a/korganizer/ktimeedit.h
+++ b/korganizer/ktimeedit.h
@@ -3,63 +3,66 @@
3 Copyright (c) 1999 Preston Brown, Ian Dawes 3 Copyright (c) 1999 Preston Brown, Ian Dawes
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23#ifndef _KTIMEEDIT_H 23#ifndef _KTIMEEDIT_H
24#define _KTIMEEDIT_H 24#define _KTIMEEDIT_H
25 25
26#include <qevent.h> 26#include <qevent.h>
27#include <qkeycode.h> 27#include <qnamespace.h>
28#include <qstring.h> 28#include <qstring.h>
29#include <qdatetime.h> 29#include <qdatetime.h>
30#include <qcombobox.h> 30#include <qcombobox.h>
31#include <Q3ComboBox>
32//Added by qt3to4:
33#include <QKeyEvent>
31 34
32#include <kapplication.h> 35#include <kapplication.h>
33 36
34/** 37/**
35 This is a class that provides an easy, user friendly way to edit times. 38 This is a class that provides an easy, user friendly way to edit times.
36 up/down/ increase or decrease time, respectively. 39 up/down/ increase or decrease time, respectively.
37 40
38 @short Provides a way to edit times in a user-friendly manner. 41 @short Provides a way to edit times in a user-friendly manner.
39 @author Preston Brown, Ian Dawes 42 @author Preston Brown, Ian Dawes
40*/ 43*/
41class KOTimeEdit : public QComboBox 44class KOTimeEdit : public Q3ComboBox
42{ 45{
43 Q_OBJECT 46 Q_OBJECT
44 public: 47 public:
45 /** constructs a new time edit. */ 48 /** constructs a new time edit. */
46 KOTimeEdit(QWidget *parent=0, QTime qt=QTime(12,0), const char *name=0); 49 KOTimeEdit(QWidget *parent=0, QTime qt=QTime(12,0), const char *name=0);
47 50
48 virtual ~KOTimeEdit(); 51 virtual ~KOTimeEdit();
49 52
50 /** 53 /**
51 Returns, if a time is selected. Can not return false anymore.... 54 Returns, if a time is selected. Can not return false anymore....
52 */ 55 */
53 bool hasTime() const; 56 bool hasTime() const;
54 57
55 /** returns the time that is currently set in the timeLineEdit. */ 58 /** returns the time that is currently set in the timeLineEdit. */
56 QTime getTime() const; 59 QTime getTime() const;
57 60
58 /** returns the prefered size policy of the KOTimeEdit */ 61 /** returns the prefered size policy of the KOTimeEdit */
59 //QSizePolicy sizePolicy() const; 62 //QSizePolicy sizePolicy() const;
60 63
61 signals: 64 signals:
62 /** 65 /**
63 Emitted every time the time displayed changes. "newt" is the new 66 Emitted every time the time displayed changes. "newt" is the new
64 time. 67 time.
65 */ 68 */