summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-05-07 14:03:52 (UTC)
committer harlekin <harlekin>2002-05-07 14:03:52 (UTC)
commit8ba0398d93f0e70ea2de254a4090d8bd02f593cd (patch) (side-by-side diff)
tree25de91d3eb02cbc496b232676406e5c1076f0128
parent2dc0b530ab0ced8f840064bdb4d294a243894325 (diff)
downloadopie-8ba0398d93f0e70ea2de254a4090d8bd02f593cd.zip
opie-8ba0398d93f0e70ea2de254a4090d8bd02f593cd.tar.gz
opie-8ba0398d93f0e70ea2de254a4090d8bd02f593cd.tar.bz2
clickable label is now in libopie
Diffstat (more/less context) (show 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,2 +1,9 @@
+0.3.3
+
+* Changed the logo so it better scales to bigger display and also
+ made the "Today" string translatable.
+* some am/pm fixes
+* clickable labels now in libopie
+
0.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 @@
-#include "clickablelabel.h"
-
-ClickableLabel::ClickableLabel(QWidget* parent,
- const char* name,
- WFlags fl) :
- QLabel(parent,name,fl)
-{
- setFrameShape(NoFrame);
- setFrameShadow(Sunken);
-}
-
-void ClickableLabel::mousePressEvent( QMouseEvent *e ) {
- setFrameShape(Panel);
- repaint();
-}
-
-void ClickableLabel::mouseReleaseEvent( QMouseEvent *e ) {
- setFrameShape(NoFrame);
- repaint();
- if (rect().contains(e->pos())) {
- emit clicked();
- }
-}
-
-void ClickableLabel::mouseMoveEvent( QMouseEvent *e ) {
- if (rect().contains(e->pos())) {
- setFrameShape(Panel);
- } else {
- setFrameShape(NoFrame);
- }
-}
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 @@
-#ifndef CLICKABLELABEL
-#define CLICKABLELABEL
-
-#include <qlabel.h>
-
-class ClickableLabel: public QLabel
-{
- Q_OBJECT
-public:
- ClickableLabel(QWidget* parent = 0, const char* name = 0,
- WFlags fl = 0);
- protected:
- void mousePressEvent( QMouseEvent *e );
- void mouseReleaseEvent( QMouseEvent *e );
- void mouseMoveEvent( QMouseEvent *e );
- signals:
- void clicked();
-};
-
-#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
@@ -4,5 +4,5 @@ Section: opie/applications
Maintainer: Maximilian Reiß <max.reiss@gmx.de>
Architecture: arm
-Version: 0.3.2-$SUB_VERSION
+Version: 0.3.3-$SUB_VERSION
Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION)
License: GPL
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
@@ -474,5 +474,5 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev,
const char* name,
WFlags fl) :
- ClickableLabel(parent,name,fl), event(ev) {
+ OClickableLabel(parent,name,fl), event(ev) {
QString msg;
@@ -541,5 +541,5 @@ DateBookEventLater::DateBookEventLater(const EffectiveEvent &ev,
const char* name,
WFlags fl) :
- ClickableLabel(parent,name,fl), event(ev) {
+ OClickableLabel(parent,name,fl), event(ev) {
QString msg;
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
@@ -26,4 +26,5 @@
#include <opie/tododb.h>
+#include <opie/oclickablelabel.h>
#include <qdatetime.h>
@@ -32,5 +33,4 @@
#include "todayconfig.h"
#include "todaybase.h"
-#include "clickablelabel.h"
class QVBoxLayout;
@@ -75,5 +75,5 @@ class Today : public TodayBase {
};
-class DateBookEvent: public ClickableLabel {
+class DateBookEvent: public OClickableLabel {
Q_OBJECT
public:
@@ -94,5 +94,5 @@ private:
};
-class DateBookEventLater: public ClickableLabel {
+class DateBookEventLater: public OClickableLabel {
Q_OBJECT
public:
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
@@ -2,6 +2,6 @@ TEMPLATE = app
#CONFIG = qt warn_on debug
CONFIG = qt warn_on release
-HEADERS = today.h todaybase.h todayconfig.h clickablelabel.h
-SOURCES = main.cpp today.cpp todaybase.cpp todayconfig.cpp clickablelabel.cpp
+HEADERS = today.h todaybase.h todayconfig.h
+SOURCES = main.cpp today.cpp todaybase.cpp todayconfig.cpp
INCLUDEPATH += $(OPIEDIR)/include