summaryrefslogtreecommitdiffabout
path: root/korganizer/kolistview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kolistview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kolistview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp
index fd86095..b94916a 100644
--- a/korganizer/kolistview.cpp
+++ b/korganizer/kolistview.cpp
@@ -261,7 +261,7 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
mListView->setColumnAlignment(9,AlignLeft);
mListView->setColumnAlignment(10,AlignLeft);
mListView->setColumnWidthMode(10, QListView::Manual);
- new KOListViewWhatsThis(mListView->viewport(),this);
+ mKOListViewWhatsThis = new KOListViewWhatsThis(mListView->viewport(),this);
int iii = 0;
for ( iii = 0; iii< 10 ; ++iii )
@@ -338,6 +338,11 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
KOListView::~KOListView()
{
delete mPopupMenu;
+#if QT_VERSION >= 0x030000
+
+#else
+ delete mKOListViewWhatsThis;
+#endif
}
QString KOListView::getWhatsThisText(QPoint p)
@@ -1181,6 +1186,7 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
KOListViewListView::KOListViewListView(KOListView * lv )
: KListView( lv, "kolistlistview", false )
{
+ mYMousePos = 0;
mPopupTimer = new QTimer(this);
connect(mPopupTimer , SIGNAL(timeout()), this, SLOT(popupMenu()));
#ifndef DESKTOP_VERSION