[Kst] extragear/graphics/kst/src/libkstapp
Andrew Walker
arwalker at sumusltd.com
Wed May 10 02:11:06 CEST 2006
SVN commit 539226 by arwalker:
CCBUG:127042 Fix I and II by applying a hack to work around the bug in QListView
M +7 -1 kstviewmanager_i.cpp
M +4 -4 kstviewmanager_i.h
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewmanager_i.cpp #539225:539226
@@ -172,6 +172,12 @@
}
}
+ if (retVal) {
+ _vm->ViewView->viewport()->setCursor(Qt::ArrowCursor);
+ } else {
+ _vm->ViewView->viewport()->setCursor(Qt::ForbiddenCursor);
+ }
+
return retVal;
}
@@ -375,7 +381,7 @@
ViewView->setAllColumnsShowFocus(TRUE);
ViewView->setShowSortIndicator(TRUE);
ViewView->setRootIsDecorated(TRUE);
- ViewView->setAcceptDrops(TRUE);
+ ViewView->setAcceptDrops(FALSE);
ViewView->viewport()->setAcceptDrops(TRUE);
ViewView->setSelectionMode(QListView::Single);
KstViewManagerLayout->addMultiCellWidget(ViewView, 0, 0, 0, 3);
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewmanager_i.h #539225:539226
@@ -41,8 +41,8 @@
KstViewObjectItem(QListViewItem *parent, KstBaseCurvePtr x, KstViewManagerI *dm, int localUseCount = 0);
virtual ~KstViewObjectItem();
- bool acceptDrop(const QMimeSource *mime) const;
- void dropped(QDropEvent *e);
+ virtual bool acceptDrop(const QMimeSource *mime) const;
+ virtual void dropped(QDropEvent *e);
virtual int rtti() const { return _rtti; }
void update(KstViewObjectPtr x, bool recursive = true, int localUseCount = 0);
@@ -82,8 +82,8 @@
void open();
void close();
void openAll();
- void closeAll();
-
+ void closeAll();
+
private slots:
void doUpdates();
void contextMenu(QListViewItem *i, const QPoint& p, int c);
More information about the Kst
mailing list