summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/TODO5
-rw-r--r--core/pim/today/today.cpp10
-rw-r--r--core/pim/today/today.h1
-rw-r--r--core/pim/today/todaybase.cpp3
-rw-r--r--core/pim/today/todaybase.h11
5 files changed, 22 insertions, 8 deletions
diff --git a/core/pim/today/TODO b/core/pim/today/TODO
index 6acbf5a..30a8bab 100644
--- a/core/pim/today/TODO
+++ b/core/pim/today/TODO
@@ -1,4 +1,6 @@
TODO for today:
+* show "upcoming appointents the next days .. one or too"
+
* show alarm icons on alarm events (partly done)
@@ -6,3 +8,4 @@ TODO for today:
* make Opiezilla a clickable label wich is allway on the far right side of
-the screen , klick will open credits ,) \ No newline at end of file
+the screen , klick will open credits ,)
+
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 4368201..69a0f75 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -69,4 +69,5 @@ Today::Today( QWidget* parent, const char* name, WFlags fl )
QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startDatebook() ) );
QObject::connect( (QObject*)MailButton, SIGNAL( clicked() ), this, SLOT(startMail() ) );
+ QObject::connect( (QObject*)OwnerField, SIGNAL( clicked() ), this, SLOT(editCard() ) );
#if defined(Q_WS_QWS)
@@ -420,4 +421,13 @@ void Today::getTodo() {
}
+
+/*
+ * launch addressbook
+ */
+void Today::editCard() {
+ QCopEnvelope e("QPE/System", "execute(QString)");
+ e << QString("addressbook");
+}
+
/*
* launches datebook
diff --git a/core/pim/today/today.h b/core/pim/today/today.h
index 32bb4a3..54f31cc 100644
--- a/core/pim/today/today.h
+++ b/core/pim/today/today.h
@@ -48,4 +48,5 @@ class Today : public TodayBase {
void startDatebook();
void startMail();
+ void editCard();
void draw();
void editEvent(const Event &e);
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp
index 3d0bfb3..bc1651d 100644
--- a/core/pim/today/todaybase.cpp
+++ b/core/pim/today/todaybase.cpp
@@ -58,5 +58,4 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
QVBoxLayout * layout = new QVBoxLayout(this);
-
QPalette pal = this->palette();
QColor col = pal.color(QPalette::Active, QColorGroup::Background);
@@ -107,5 +106,5 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl )
TextLabel1->setTextFormat( RichText );
- OwnerField = new QLabel(this , "Owner" );
+ OwnerField = new OClickableLabel(this , "Owner" );
OwnerField->setGeometry(QRect(0,0, this->width(), 12 ));
OwnerField->setAlignment(int (QLabel::AlignTop | QLabel::AlignLeft ) );
diff --git a/core/pim/today/todaybase.h b/core/pim/today/todaybase.h
index 0118faa..ec06281 100644
--- a/core/pim/today/todaybase.h
+++ b/core/pim/today/todaybase.h
@@ -14,8 +14,9 @@
#include <qscrollview.h>
#include <qsplitter.h>
+#include <opie/oclickablelabel.h>
-class QVBox;
-class QHBoxLayout;
-class QGridLayout;
+class QVBox;
+class QHBoxLayout;
+class QGridLayout;
class QFrame;
class QLabel;
@@ -23,5 +24,5 @@ class QPushButton;
class TodayBase : public QWidget
-{
+{
Q_OBJECT
@@ -33,5 +34,5 @@ public:
QFrame* Frame4;
QPushButton* DatesButton;
- QLabel* OwnerField;
+ OClickableLabel* OwnerField;
QLabel* Frame;
QFrame* MailFrame;