summaryrefslogtreecommitdiff
path: root/core/pim/datebook/datebookday.h
Side-by-side diff
Diffstat (limited to 'core/pim/datebook/datebookday.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebookday.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/core/pim/datebook/datebookday.h b/core/pim/datebook/datebookday.h
index be7cc45..db1cd04 100644
--- a/core/pim/datebook/datebookday.h
+++ b/core/pim/datebook/datebookday.h
@@ -41,5 +41,5 @@ public:
DateBookDayView( bool hourClock, QWidget *parent, const char *name );
bool whichClock() const;
-
+
void setRowStyle( int style );
@@ -56,5 +56,5 @@ protected:
virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected );
virtual void paintFocus( QPainter *p, const QRect &cr );
-
+
virtual void resizeEvent( QResizeEvent *e );
void keyPressEvent( QKeyEvent *e );
@@ -77,5 +77,5 @@ public:
const EffectiveEvent &event() const { return ev; }
-
+
signals:
void deleteMe( const Event &e );
@@ -88,4 +88,15 @@ protected:
private:
+ /**
+ * Sets the text for an all day Event
+ * All day events have no time associated
+ */
+ void setAllDayText( QString& text );
+
+ /**
+ * Sets the EventText
+ * it got a start and an end Time
+ */
+ void setEventText( QString& text );
const EffectiveEvent ev;
DateBookDay *dateBook;
@@ -107,5 +118,5 @@ public:
void setTime( const QTime &t );
-signals:
+signals:
protected:
@@ -120,12 +131,12 @@ private:
//reimplemented the compareItems function so that it sorts DayWidgets by geometry heights
class WidgetListClass : public QList<DateBookDayWidget>
-{
+{
private:
-
- int compareItems( QCollection::Item s1, QCollection::Item s2 )
- {
+
+ int compareItems( QCollection::Item s1, QCollection::Item s2 )
+ {
//hmm, don't punish me for that ;)
if (reinterpret_cast<DateBookDayWidget*>(s1)->geometry().height() > reinterpret_cast<DateBookDayWidget*>(s2)->geometry().height())
- {
+ {
return -1;
} else
@@ -134,5 +145,5 @@ class WidgetListClass : public QList<DateBookDayWidget>
}
}
-
+
};