summaryrefslogtreecommitdiffabout
path: root/korganizer/koagendaview.h
authorzautrix <zautrix>2005-02-01 19:32:20 (UTC)
committer zautrix <zautrix>2005-02-01 19:32:20 (UTC)
commit0eca34f0a8a02787dccad1b37e0c2e01af734e56 (patch) (side-by-side diff)
tree721cf4dfd0b29695a8b648e7eb6666ee4020c19b /korganizer/koagendaview.h
parent81991bbbc7f815c82b37db654528ee3b224435dc (diff)
downloadkdepimpi-0eca34f0a8a02787dccad1b37e0c2e01af734e56.zip
kdepimpi-0eca34f0a8a02787dccad1b37e0c2e01af734e56.tar.gz
kdepimpi-0eca34f0a8a02787dccad1b37e0c2e01af734e56.tar.bz2
very good fix
Diffstat (limited to 'korganizer/koagendaview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagendaview.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h
index cbe86b6..e9e85cc 100644
--- a/korganizer/koagendaview.h
+++ b/korganizer/koagendaview.h
@@ -26,4 +26,5 @@
#include <qscrollview.h>
#include <qdatetime.h>
+#include <qpushbutton.h>
#include <qlayout.h>
#ifndef DESKTOP_VERSION
@@ -36,5 +37,4 @@
#include "koeventview.h"
-
class QHBox;
class QFrame;
@@ -46,4 +46,29 @@ class KOAgendaItem;
class KConfig;
class KDGanttMinimizeSplitter;
+
+class KOAgendaButton : public QPushButton
+{
+ Q_OBJECT
+ public:
+ KOAgendaButton( QWidget *parent=0, const char *name=0 ) :
+ QPushButton( parent, name )
+ {
+ mNum = -3;
+ setFlat( true );
+ setFocusPolicy(NoFocus);
+ setSizePolicy(QSizePolicy( QSizePolicy::Expanding ,QSizePolicy::Expanding ));
+ connect( this, SIGNAL( clicked() ), this, SLOT ( bClicked() ) );
+ };
+
+ QSize sizeHint () const { return QSize( 5,5) ;}
+ void setNum( int n) { mNum = n; }
+private slots:
+ void bClicked() {emit numClicked( mNum);}
+signals:
+ void numClicked( int );
+private:
+ int mNum;
+};
+
class TimeLabels : public QScrollView {
Q_OBJECT
@@ -191,5 +216,5 @@ class KOAgendaView : public KOEventView {
protected:
- QPushButton* getNewDaylabel();
+ KOAgendaButton* getNewDaylabel();
bool mBlockUpdating;
int mUpcomingWidth;
@@ -209,5 +234,5 @@ class KOAgendaView : public KOEventView {
protected slots:
- void slotDaylabelClicked();
+ void slotDaylabelClicked( int );
/** Update event belonging to agenda item */
void updateEventDates(KOAgendaItem *item, int mode = -1);
@@ -255,5 +280,5 @@ class KOAgendaView : public KOEventView {
QPixmap mExpandedPixmap;
QPixmap mNotExpandedPixmap;
- QPtrList<QPushButton> mDayLabelsList;
+ QPtrList<KOAgendaButton> mDayLabelsList;
QDateTime mTimeSpanBegin;
QDateTime mTimeSpanEnd;