-rw-r--r-- | libopie/ocheckitem.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libopie/ocheckitem.h b/libopie/ocheckitem.h index 2387134..82ee3d0 100644 --- a/libopie/ocheckitem.h +++ b/libopie/ocheckitem.h | |||
@@ -20,33 +20,42 @@ | |||
20 | * | 20 | * |
21 | * | 21 | * |
22 | * @see QTable | 22 | * @see QTable |
23 | * @see QTableItem | 23 | * @see QTableItem |
24 | * @short An checkable QTableItem | 24 | * @short An checkable QTableItem |
25 | * @version 1.0 | 25 | * @version 1.0 |
26 | * @author Stefan Eilers ( eilers@handhelds.org ) | 26 | * @author Stefan Eilers ( eilers@handhelds.org ) |
27 | */ | 27 | */ |
28 | 28 | ||
29 | class OCheckItem : public QTableItem | 29 | class OCheckItem : public QTableItem |
30 | { | 30 | { |
31 | public: | 31 | public: |
32 | /** The size of a box currently unused */ | ||
32 | enum Size { BoxSize = 10 }; | 33 | enum Size { BoxSize = 10 }; |
33 | OCheckItem( QTable *t, const QString &sortkey ); | 34 | OCheckItem( QTable *t, const QString &sortkey ); |
34 | 35 | ||
35 | virtual void setChecked( bool b ); | 36 | virtual void setChecked( bool b ); |
36 | virtual void toggle(); | 37 | virtual void toggle(); |
37 | bool isChecked() const; | 38 | bool isChecked() const; |
39 | /** | ||
40 | * @short Set the sort key | ||
41 | * @reimp | ||
42 | */ | ||
38 | void setKey( const QString &key ) { m_sortKey = key; } | 43 | void setKey( const QString &key ) { m_sortKey = key; } |
39 | virtual QString key() const; | 44 | virtual QString key() const; |
40 | 45 | ||
46 | /** | ||
47 | * foo | ||
48 | * @internal | ||
49 | */ | ||
41 | void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected ); | 50 | void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected ); |
42 | 51 | ||
43 | //static const int BoxSize = 10; | 52 | //static const int BoxSize = 10; |
44 | 53 | ||
45 | private: | 54 | private: |
46 | class OCheckItemPrivate; | 55 | class OCheckItemPrivate; |
47 | OCheckItemPrivate *d; | 56 | OCheckItemPrivate *d; |
48 | bool m_checked: 1; | 57 | bool m_checked: 1; |
49 | QString m_sortKey; | 58 | QString m_sortKey; |
50 | 59 | ||
51 | }; | 60 | }; |
52 | 61 | ||