[Uml-devel] KDE/kdesdk/umbrello/umbrello
Ralf Habacker
ralf.habacker at gmail.com
Fri Dec 16 17:53:32 UTC 2011
SVN commit 1268876 by habacker:
a try to implement iteration over the list view items using keyboard
M +14 -1 umllistview.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/umllistview.cpp #1268875:1268876
@@ -279,7 +279,20 @@
foreach(UMLListViewItem *item, itemsSelected) {
deleteItem(item);
}
- } else {
+#if 0
+ // using keyboard to iterate through the items and showing doc do not work as expected
+ } else if (k == Qt::Key_Up || k == Qt::Key_Down) {
+ UMLListViewItem *current = static_cast<UMLListViewItem*>(currentItem());
+ UMLListViewItem *item = static_cast<UMLListViewItem*>((k == Qt::Key_Down) ? current->itemBelow() : current->itemAbove());
+ setSelected(current, false);
+ if (item) {
+ setSelected(item, true);
+ m_doc->changeCurrentView(item->getID());
+ UMLApp::app()->docWindow()->showDocumentation(item->umlObject(), false);
+ }
+ }
+#endif
+ else {
Q3ListView::keyPressEvent(ke); // let parent handle it
}
}
More information about the umbrello-devel
mailing list