summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-02-10 23:42:49 (UTC)
committer harlekin <harlekin>2003-02-10 23:42:49 (UTC)
commit4abed72fea334ebfda6b146f70542dad522424b7 (patch) (side-by-side diff)
treefc106623928f2fabc604d06f1c73b73ae9811512
parent871eadc731c0c05c553b8edc8c0e3198127057b6 (diff)
downloadopie-4abed72fea334ebfda6b146f70542dad522424b7.zip
opie-4abed72fea334ebfda6b146f70542dad522424b7.tar.gz
opie-4abed72fea334ebfda6b146f70542dad522424b7.tar.bz2
fix refresh
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginwidget.cpp12
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginwidget.h5
2 files changed, 9 insertions, 8 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
index 9a18408..3a7360d 100644
--- a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
+++ b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
@@ -40,3 +40,2 @@ DatebookPluginWidget::DatebookPluginWidget( QWidget *parent, const char* name)
-
if ( m_layoutDates ) {
@@ -70,6 +69,2 @@ void DatebookPluginWidget::readConfig() {
void DatebookPluginWidget::refresh() {
- DateBookEvent* ev;
- for ( ev = m_eventsList.first(); ev != 0; ev = m_eventsList.next() ) {
- delete ev;
- }
m_eventsList.clear();
@@ -88,3 +83,2 @@ void DatebookPluginWidget::getDates() {
- qDebug( QString("List count %1" ).arg(list.count() ) );
if ( list.count() > 0 ) {
@@ -98,2 +92,3 @@ void DatebookPluginWidget::getDates() {
m_eventsList.append( l );
+ l->show();
QObject::connect ( l, SIGNAL( editEvent( const Event & ) ), l, SLOT( editEventSlot( const Event & ) ) );
@@ -104,2 +99,3 @@ void DatebookPluginWidget::getDates() {
m_eventsList.append( l );
+ l->show();
QObject::connect ( l, SIGNAL( editEvent( const Event & ) ), l, SLOT( editEventSlot( const Event & ) ) );
@@ -110,2 +106,4 @@ void DatebookPluginWidget::getDates() {
QLabel* noMoreEvents = new QLabel( this );
+ m_eventsList.append( noMoreEvents );
+ noMoreEvents->show();
noMoreEvents->setText( QObject::tr( "No more appointments today" ) );
@@ -114,2 +112,4 @@ void DatebookPluginWidget::getDates() {
QLabel* noEvents = new QLabel( this );
+ m_eventsList.append( noEvents );
+ noEvents->show();
noEvents->setText( QObject::tr( "No appointments today" ) );
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.h b/core/pim/today/plugins/datebook/datebookpluginwidget.h
index 8380bc7..e10f059 100644
--- a/core/pim/today/plugins/datebook/datebookpluginwidget.h
+++ b/core/pim/today/plugins/datebook/datebookpluginwidget.h
@@ -22,2 +22,3 @@
#include <qlayout.h>
+#include <qguardedptr.h>
#include <qlist.h>
@@ -40,4 +41,4 @@ private:
DateBookDB* db;
- QVBoxLayout* m_layoutDates;
- QList<DateBookEvent> m_eventsList;
+ QGuardedPtr<QVBoxLayout> m_layoutDates;
+ QList<QWidget> m_eventsList;
void readConfig();