Beispiel #1
0
//update kdilist information, and update the tree and tab
void MainWindow::reload()
{
    reload_all_kdi();

    updateTreeItem();
    updateTabItem();
}
Beispiel #2
0
void DirectoryDialog::DMNewDirectory(int index)
{
	QMutexLocker locker(&(m_directoryMgr->m_lock));
	QTreeWidgetItem *twi;

	DM_CONNECTEDCOMPONENT *connectedComponent = m_directoryMgr->m_directory + index;
	if (!connectedComponent->valid)
		return;												// not a valid entry
	TRACE1("Displaying new directory from %s", qPrintable(SyntroUtils::displayUID(&(connectedComponent->connectedComponentUID))));

	DM_COMPONENT *component = connectedComponent->componentDE;

	while (component != NULL) {
		if ((twi = findTreeItem(component)) == NULL)
			addTreeItem(connectedComponent, component);
		else
			updateTreeItem(twi, component);
		component = component->next;
	}
}