summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-05-07 14:03:52 (UTC)
committer harlekin <harlekin>2002-05-07 14:03:52 (UTC)
commit8ba0398d93f0e70ea2de254a4090d8bd02f593cd (patch) (unidiff)
tree25de91d3eb02cbc496b232676406e5c1076f0128
parent2dc0b530ab0ced8f840064bdb4d294a243894325 (diff)
downloadopie-8ba0398d93f0e70ea2de254a4090d8bd02f593cd.zip
opie-8ba0398d93f0e70ea2de254a4090d8bd02f593cd.tar.gz
opie-8ba0398d93f0e70ea2de254a4090d8bd02f593cd.tar.bz2
clickable label is now in libopie
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/changelog7
-rw-r--r--core/pim/today/clickablelabel.cpp31
-rw-r--r--core/pim/today/clickablelabel.h20
-rw-r--r--core/pim/today/opie-today.control2
-rw-r--r--core/pim/today/today.cpp4
-rw-r--r--core/pim/today/today.h6
-rw-r--r--core/pim/today/today.pro4
7 files changed, 15 insertions, 59 deletions
diff --git a/core/pim/today/changelog b/core/pim/today/changelog
index 0bc5fe0..c687cea 100644
--- a/core/pim/today/changelog
+++ b/core/pim/today/changelog
@@ -1 +1,8 @@
10.3.3
2
3* Changed the logo so it better scales to bigger display and also
4 made the "Today" string translatable.
5* some am/pm fixes
6* clickable labels now in libopie
7
10.3.2 80.3.2
diff --git a/core/pim/today/clickablelabel.cpp b/core/pim/today/clickablelabel.cpp
deleted file mode 100644
index e11cef6..0000000
--- a/core/pim/today/clickablelabel.cpp
+++ b/dev/null
@@ -1,31 +0,0 @@
1#include "clickablelabel.h"
2
3ClickableLabel::ClickableLabel(QWidget* parent,
4 const char* name,
5 WFlags fl) :
6 QLabel(parent,name,fl)
7{
8 setFrameShape(NoFrame);
9 setFrameShadow(Sunken);
10}
11
12void ClickableLabel::mousePressEvent( QMouseEvent *e ) {
13 setFrameShape(Panel);
14 repaint();
15}
16
17void ClickableLabel::mouseReleaseEvent( QMouseEvent *e ) {
18 setFrameShape(NoFrame);
19 repaint();
20 if (rect().contains(e->pos())) {
21 emit clicked();
22 }
23}
24
25void ClickableLabel::mouseMoveEvent( QMouseEvent *e ) {
26 if (rect().contains(e->pos())) {
27 setFrameShape(Panel);
28 } else {
29 setFrameShape(NoFrame);
30 }
31}
diff --git a/core/pim/today/clickablelabel.h b/core/pim/today/clickablelabel.h
deleted file mode 100644
index b6d33ad..0000000
--- a/core/pim/today/clickablelabel.h
+++ b/dev/null
@@ -1,20 +0,0 @@
1#ifndef CLICKABLELABEL
2#define CLICKABLELABEL
3
4#include <qlabel.h>
5
6class ClickableLabel: public QLabel
7{
8 Q_OBJECT
9public:
10 ClickableLabel(QWidget* parent = 0, const char* name = 0,
11 WFlags fl = 0);
12 protected:
13 void mousePressEvent( QMouseEvent *e );
14 void mouseReleaseEvent( QMouseEvent *e );
15 void mouseMoveEvent( QMouseEvent *e );
16 signals:
17 void clicked();
18};
19
20#endif
diff --git a/core/pim/today/opie-today.control b/core/pim/today/opie-today.control
index cf982fd..da9d9fa 100644
--- a/core/pim/today/opie-today.control
+++ b/core/pim/today/opie-today.control
@@ -5,3 +5,3 @@ Maintainer: Maximilian Reiß <max.reiss@gmx.de>
5Architecture: arm 5Architecture: arm
6Version: 0.3.2-$SUB_VERSION 6Version: 0.3.3-$SUB_VERSION
7Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION) 7Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION)
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 1b4408c..0f4cbdb 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -475,3 +475,3 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev,
475 WFlags fl) : 475 WFlags fl) :
476 ClickableLabel(parent,name,fl), event(ev) { 476 OClickableLabel(parent,name,fl), event(ev) {
477 477
@@ -542,3 +542,3 @@ DateBookEventLater::DateBookEventLater(const EffectiveEvent &ev,
542 WFlags fl) : 542 WFlags fl) :
543 ClickableLabel(parent,name,fl), event(ev) { 543 OClickableLabel(parent,name,fl), event(ev) {
544 544
diff --git a/core/pim/today/today.h b/core/pim/today/today.h
index d265d67..32bb4a3 100644
--- a/core/pim/today/today.h
+++ b/core/pim/today/today.h
@@ -27,2 +27,3 @@
27#include <opie/tododb.h> 27#include <opie/tododb.h>
28#include <opie/oclickablelabel.h>
28 29
@@ -33,3 +34,2 @@
33#include "todaybase.h" 34#include "todaybase.h"
34#include "clickablelabel.h"
35 35
@@ -76,3 +76,3 @@ class Today : public TodayBase {
76 76
77class DateBookEvent: public ClickableLabel { 77class DateBookEvent: public OClickableLabel {
78 Q_OBJECT 78 Q_OBJECT
@@ -95,3 +95,3 @@ private:
95 95
96class DateBookEventLater: public ClickableLabel { 96class DateBookEventLater: public OClickableLabel {
97 Q_OBJECT 97 Q_OBJECT
diff --git a/core/pim/today/today.pro b/core/pim/today/today.pro
index 2d37b5d..f40edca 100644
--- a/core/pim/today/today.pro
+++ b/core/pim/today/today.pro
@@ -3,4 +3,4 @@ TEMPLATE = app
3 CONFIG = qt warn_on release 3 CONFIG = qt warn_on release
4 HEADERS = today.h todaybase.h todayconfig.h clickablelabel.h 4 HEADERS = today.h todaybase.h todayconfig.h
5 SOURCES = main.cpp today.cpp todaybase.cpp todayconfig.cpp clickablelabel.cpp 5 SOURCES = main.cpp today.cpp todaybase.cpp todayconfig.cpp
6 6