[Uml-devel] KDE/kdesdk/umbrello/umbrello
Ralf Habacker
ralf.habacker at gmail.com
Sat Dec 17 10:59:57 UTC 2011
SVN commit 1268937 by habacker:
fixed bug in list view not using the correct slot
M +20 -20 umllistview.cpp
M +2 -2 umllistview.h
--- trunk/KDE/kdesdk/umbrello/umbrello/umllistview.cpp #1268936:1268937
@@ -184,6 +184,26 @@
cancelRename(m_editItem);
}
+/**
+ * Calls updateFolder() on the item to update the icon to open.
+ */
+void UMLListView::slotExpanded(QTreeWidgetItem * item)
+{
+ UMLListViewItem * myItem = static_cast<UMLListViewItem*>(item);
+ if (isExpandable(myItem->type()))
+ myItem->updateFolder();
+}
+
+/**
+ * Calls updateFolder() on the item to update the icon to closed.
+ */
+void UMLListView::slotCollapsed(QTreeWidgetItem * item)
+{
+ UMLListViewItem * myItem = static_cast<UMLListViewItem*>(item);
+ if (isExpandable(myItem->type()))
+ myItem->updateFolder();
+}
+
bool UMLListView::eventFilter(QObject *o, QEvent *e)
{
if (e->type() != QEvent::MouseButtonPress || qstrcmp("QHeader", metaObject()->className()) != 0)
@@ -2129,26 +2149,6 @@
}
/**
- * Calls updateFolder() on the item to update the icon to open.
- */
-void UMLListView::slotExpanded(UMLListViewItem * item)
-{
- UMLListViewItem * myItem = static_cast<UMLListViewItem*>(item);
- if (isExpandable(myItem->type()))
- myItem->updateFolder();
-}
-
-/**
- * Calls updateFolder() on the item to update the icon to closed.
- */
-void UMLListView::slotCollapsed(UMLListViewItem * item)
-{
- UMLListViewItem * myItem = static_cast<UMLListViewItem*>(item);
- if (isExpandable(myItem->type()))
- myItem->updateFolder();
-}
-
-/**
* Connects to the signal that @ref UMLApp emits when a
* cut operation is successful.
*/
--- trunk/KDE/kdesdk/umbrello/umbrello/umllistview.h #1268936:1268937
@@ -182,8 +182,6 @@
void slotDropped(QDropEvent* de, UMLListViewItem* parent, UMLListViewItem* item);
- void slotExpanded(UMLListViewItem* item);
- void slotCollapsed(UMLListViewItem* item);
void expandAll(UMLListViewItem *item);
void collapseAll(UMLListViewItem *item);
@@ -193,6 +191,8 @@
protected slots:
void slotItemChanged(QTreeWidgetItem *, int);
void slotItemSelectionChanged();
+ void slotExpanded(QTreeWidgetItem* item);
+ void slotCollapsed(QTreeWidgetItem* item);
private:
More information about the umbrello-devel
mailing list