summaryrefslogtreecommitdiffabout
path: root/korganizer/kodaymatrix.cpp
authorzautrix <zautrix>2005-03-21 10:47:16 (UTC)
committer zautrix <zautrix>2005-03-21 10:47:16 (UTC)
commitb40a7cc0a8cf0bd06b0f404f58e89980d1291beb (patch) (side-by-side diff)
tree62e02fdc8eb02039eb7fa8a181b8ca879ef13e77 /korganizer/kodaymatrix.cpp
parent5b9e0451514d65ab576b51e0f9d3515fa6b9e4e6 (diff)
downloadkdepimpi-b40a7cc0a8cf0bd06b0f404f58e89980d1291beb.zip
kdepimpi-b40a7cc0a8cf0bd06b0f404f58e89980d1291beb.tar.gz
kdepimpi-b40a7cc0a8cf0bd06b0f404f58e89980d1291beb.tar.bz2
nf
Diffstat (limited to 'korganizer/kodaymatrix.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kodaymatrix.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp
index ae0a051..5133519 100644
--- a/korganizer/kodaymatrix.cpp
+++ b/korganizer/kodaymatrix.cpp
@@ -59,13 +59,14 @@ DynamicTip::DynamicTip( QWidget * parent )
matrix = (KODayMatrix*)parent;
}
class KODaymatrixWhatsThis :public QWhatsThis
{
public:
- KODaymatrixWhatsThis( KODayMatrix* view ) : QWhatsThis( view ),_view (view) { };
+ KODaymatrixWhatsThis( KODayMatrix* view ) : QWhatsThis( view ),_view (view) { ;};
+ ~KODaymatrixWhatsThis() { ; };
protected:
virtual QString text( const QPoint& p )
{
return _view->getWhatsThisText( p ) ;
}
@@ -106,13 +107,13 @@ KODayMatrix::KODayMatrix( QWidget *parent, const char *name )
#if 0
KODayMatrix::KODayMatrix(QWidget *parent, Calendar* calendar, QDate date, const char *name) :
QFrame(parent, name)
#endif
{
- new KODaymatrixWhatsThis(this);
+ mKODaymatrixWhatsThis = new KODaymatrixWhatsThis(this);
mPendingUpdateBeforeRepaint = false;
mouseDown = false;
// initialize dynamic arrays
bDays.resize ( NUMDAYS );
days = new QDate[NUMDAYS];
daylbls = new QString[NUMDAYS];
@@ -219,12 +220,13 @@ QColor KODayMatrix::getShadedColor(QColor color)
return shaded;
}
KODayMatrix::~KODayMatrix()
{
+ delete mKODaymatrixWhatsThis;
delete [] days;
delete [] daylbls;
delete [] events;
delete mToolTip;
}