diff --git a/kde/src/CallView.cpp b/kde/src/CallView.cpp index e2af09fbd9a337c95cd98520dbcc2c4f1945eeb9..1f8f5003e0bbcf7196e7b7122de99a3c4bbf965b 100644 --- a/kde/src/CallView.cpp +++ b/kde/src/CallView.cpp @@ -60,18 +60,6 @@ CallTreeItemDelegate(CallView* widget) QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const { QSize sh = QStyledItemDelegate::sizeHint(option, index); - /*if (!index.parent().isValid()) { - sh.rheight() += 2 * m_categoryDrawer.leftMargin(); - } else { - sh.rheight() += m_categoryDrawer.leftMargin(); - } - if (index.column() == 0) { - sh.rwidth() += m_categoryDrawer.leftMargin(); - } else if (index.column() == 1) { - sh.rwidth() = 150; - } else { - sh.rwidth() += m_categoryDrawer.leftMargin(); - }*/ QTreeWidgetItem* item = (m_tree)->itemFromIndex(index); if (item) { CallTreeItem* widget = (CallTreeItem*)m_tree->itemWidget(item,0); diff --git a/kde/src/widgets/ContactDock.cpp b/kde/src/widgets/ContactDock.cpp index 65a2b39b7149f6e8587b7170056d72fcc4c24e2d..b545ad3da8d5594029ee6139fbe75e8648bb9010 100644 --- a/kde/src/widgets/ContactDock.cpp +++ b/kde/src/widgets/ContactDock.cpp @@ -281,7 +281,13 @@ void ContactDock::filter(const QString& text) } - //m_pContactView->expandAll(); + for (int i=0;i< m_pContactView->topLevelItemCount();i++) { + bool visible = false; + QTreeWidgetItem* item = m_pContactView->topLevelItem(i); + int count = item->childCount(); + for (int j=0;j<count;j++) visible |= !item->child(j)->isHidden(); + m_pContactView->topLevelItem(i)->setHidden(!visible); + } } //filter void ContactDock::reloadHistoryConst()