[Uml-devel] kdesdk/umbrello/umbrello/dialogs
Jonathan Riddell
jri at jriddell.org
Tue Aug 31 13:15:37 UTC 2004
CVS commit by jriddell:
Revert slotClicked() to a previous version, this one didn't allow you to select items
M +12 -19 classifierlistpage.cpp 1.20
--- kdesdk/umbrello/umbrello/dialogs/classifierlistpage.cpp #1.19:1.20
@@ -175,23 +175,16 @@ void ClassifierListPage::slotClicked(QLi
// for more information see Qt doc for void QListBox::clearSelection()
UMLClassifierListItem* listItem;
- if (item == NULL) {
- if (m_pItemListLB->count() == 0) {
+ if(!item && m_pItemListLB->count() == 0) {
enableWidgets(false);
m_pOldListItem = 0;
m_pItemListLB->clearSelection();
- } else {
- kdDebug() << "ClassifierListPage::slotClicked: item is NULL"
- << endl;
- }
return;
- }
- UMLClassifierListItemList itemList(getItemList());
- if (m_pItemListLB->count() > 0) {
+ } else if (!item && m_pItemListLB->count() > 0) {
m_pItemListLB->setSelected(0, true);
- listItem = itemList.at(0);
+ listItem = getItemList().at(0);
} else {
- int index = m_pItemListLB->index(item);
- listItem = itemList.at(index);
+ listItem = getItemList().at( m_pItemListLB->index(item) );
}
+
if (listItem) {
//now update screen
More information about the umbrello-devel
mailing list