void TagTreeNodeRadioGroup::leftClicked(TagTree* tagTree, int column)
{
    tracer->invoked(__func__);

    switch (column) {
        case TagTree::COLUMN_FILTER: {
            // be sure that the filter reflects the children settings!
            updateFilterState();

            TagTreeNode::leftClicked(tagTree, column);

            //now set all children to my state
            TagTreeNodeRadio* act = NULL;
            QListViewItem * myChild = firstChild();
            while( myChild ) {
                //ignore non Radio Items (if they would be a child)
                act = dynamic_cast<TagTreeNodeRadio*>(myChild);
                if (act) {
                    act->applyFilterState(m_filterState);
                    act->repaint();
                }
                // and go on with the next child
                myChild = myChild->nextSibling();
            }

            // force redrawing of this listviewitem
            this->repaint();

            m_photobook->autoRefreshView();
            break;
        }
    }
}
VersionSelectDialog::VersionSelectDialog(InstVersionList *vlist, QWidget *parent) :
	QDialog(parent),
	ui(new Ui::VersionSelectDialog)
{
	ui->setupUi(this);
	setWindowModality(Qt::WindowModal);
	
	m_vlist = vlist;
	
	m_proxyModel = new QSortFilterProxyModel(this);
	m_proxyModel->setSourceModel(vlist);
	
	ui->listView->setModel(m_proxyModel);
	ui->listView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
	ui->listView->header()->setSectionResizeMode(0, QHeaderView::Stretch);
	
	connect(ui->filterSnapshotsCheckbox, SIGNAL(clicked()), SLOT(updateFilterState()));
	connect(ui->filterMCNostalgiaCheckbox, SIGNAL(clicked()), SLOT(updateFilterState()));
	
	updateFilterState();
}