summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/datenavigatorcontainer.cpp10
-rw-r--r--korganizer/koagendaitem.cpp4
-rw-r--r--korganizer/koagendaitem.h2
-rw-r--r--korganizer/kodaymatrix.cpp6
-rw-r--r--korganizer/kodaymatrix.h2
-rw-r--r--korganizer/kotodoview.cpp3
-rw-r--r--korganizer/kotodoview.h2
7 files changed, 21 insertions, 8 deletions
diff --git a/korganizer/datenavigatorcontainer.cpp b/korganizer/datenavigatorcontainer.cpp
index 5cdaa83..5941337 100644
--- a/korganizer/datenavigatorcontainer.cpp
+++ b/korganizer/datenavigatorcontainer.cpp
@@ -208,5 +208,9 @@ void DateNavigatorContainer::resizeEvent( QResizeEvent * e )
}
-
- while ( count < ( mExtraViews.count() + 1 ) ) {
- mExtraViews.removeLast();
+ int iii = 0;
+ while ( iii < ( mExtraViews.count() ) ) {
+ if ( iii < count-1 )
+ mExtraViews.at( iii )->show();
+ else
+ mExtraViews.at( iii )->hide();
+ ++iii;
}
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp
index 0ea2860..19cc0e3 100644
--- a/korganizer/koagendaitem.cpp
+++ b/korganizer/koagendaitem.cpp
@@ -79,3 +79,3 @@ KOAgendaItem::KOAgendaItem(Incidence *incidence, QDate qd, QWidget *parent,bool
#endif
- new KOAgendaItemWhatsThis(this);
+ mKOAgendaItemWhatsThis = new KOAgendaItemWhatsThis(this);
int wflags = getWFlags() |WRepaintNoErase;// WResizeNoErase
@@ -157,3 +157,3 @@ KOAgendaItem::~KOAgendaItem()
// qDebug("deleteKOAgendaItem::~KOAgendaItem( ");
-
+ delete mKOAgendaItemWhatsThis;
}
diff --git a/korganizer/koagendaitem.h b/korganizer/koagendaitem.h
index b4dba79..53658c0 100644
--- a/korganizer/koagendaitem.h
+++ b/korganizer/koagendaitem.h
@@ -29,2 +29,3 @@
+class KOAgendaItemWhatsThis;
class QToolTipGroup;
@@ -121,2 +122,3 @@ class KOAgendaItem : public QWidget
private:
+ KOAgendaItemWhatsThis* mKOAgendaItemWhatsThis;
bool mAllDay;
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp
index ae0a051..5133519 100644
--- a/korganizer/kodaymatrix.cpp
+++ b/korganizer/kodaymatrix.cpp
@@ -64,3 +64,4 @@ class KODaymatrixWhatsThis :public QWhatsThis
public:
- KODaymatrixWhatsThis( KODayMatrix* view ) : QWhatsThis( view ),_view (view) { };
+ KODaymatrixWhatsThis( KODayMatrix* view ) : QWhatsThis( view ),_view (view) { ;};
+ ~KODaymatrixWhatsThis() { ; };
@@ -111,3 +112,3 @@ KODayMatrix::KODayMatrix(QWidget *parent, Calendar* calendar, QDate date, const
{
- new KODaymatrixWhatsThis(this);
+ mKODaymatrixWhatsThis = new KODaymatrixWhatsThis(this);
mPendingUpdateBeforeRepaint = false;
@@ -224,2 +225,3 @@ KODayMatrix::~KODayMatrix()
{
+ delete mKODaymatrixWhatsThis;
delete [] days;
diff --git a/korganizer/kodaymatrix.h b/korganizer/kodaymatrix.h
index f4016b6..10f4b05 100644
--- a/korganizer/kodaymatrix.h
+++ b/korganizer/kodaymatrix.h
@@ -43,2 +43,3 @@ class QDropEvent;
class KODayMatrix;
+class KODaymatrixWhatsThis;
@@ -228,2 +229,3 @@ protected:
private:
+ KODaymatrixWhatsThis* mKODaymatrixWhatsThis;
bool mouseDown;
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index 5e8ea27..2b01c23 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -415,3 +415,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
- new KOTodoViewWhatsThis(mTodoListView->viewport(),this);
+ mKOTodoViewWhatsThis = new KOTodoViewWhatsThis(mTodoListView->viewport(),this);
@@ -552,2 +552,3 @@ KOTodoView::~KOTodoView()
{
+ delete mKOTodoViewWhatsThis;
delete mDocPrefs;
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h
index 462f0a6..eab0754 100644
--- a/korganizer/kotodoview.h
+++ b/korganizer/kotodoview.h
@@ -51,2 +51,3 @@ class QDragLeaveEvent;
class QDropEvent;
+class KOTodoViewWhatsThis;
@@ -220,2 +221,3 @@ class KOTodoView : public KOrg::BaseView
*/
+ KOTodoViewWhatsThis* mKOTodoViewWhatsThis;
friend class KOTodoListView;