[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_1_BRANCH: kdelibs/kdeui
From: Charles Samuels <charles () kde ! org>
Date: 2003-06-09 3:04:15
[Download RAW message or body]
CVS commit by charles:
backport the last fix
M +32 -19 klistview.cpp 1.185.2.7
--- kdelibs/kdeui/klistview.cpp #1.185.2.6:1.185.2.7
@@ -1,5 +1,5 @@
/* This file is part of the KDE libraries
Copyright (C) 2000 Reginald Stadlbauer <reggie@kde.org>
- Copyright (C) 2000 Charles Samuels <charles@kde.org>
+ Copyright (C) 2000,2003 Charles Samuels <charles@kde.org>
Copyright (C) 2000 Peter Putzer
@@ -1004,4 +1004,13 @@ void KListView::findDrop(const QPoint &p
if (above)
{
+ // if above has children, I might need to drop it as the first item there
+
+ if (above->firstChild() && above->isOpen())
+ {
+ parent = above;
+ after = 0;
+ return;
+ }
+
// Now, we know we want to go after "above". But as a child or as a sibling ?
// We have to ask the "above" item if it accepts children.
@@ -1149,5 +1158,5 @@ QPtrList<QListViewItem> KListView::selec
void KListView::moveItem(QListViewItem *item, QListViewItem *parent, QListViewItem *after)
{
- // sanity check - don't move a item into it's own child structure
+ // sanity check - don't move a item into its own child structure
QListViewItem *i = parent;
while(i)
@@ -2084,3 +2097,3 @@ void KListView::virtual_hook( int, void*
#include "klistviewlineedit.moc"
-// vim: ts=2 sw=2 et
+// vim: noet
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic