Esempio n. 1
0
void Window::manualFilterToggled() {
    // load custom proxy model object
    if (customModelCheckBox->checkState() == Qt::Checked) {
        proxyView->setModel(customSortFilterModel);
        sortChanged();
        filterRegExpChanged();
        //disable filter column set
        customSortFilterModel->setFilterKeyColumn(-1);
        filterColumnLabel->hide();
        filterColumnComboBox->hide();
        //show rows for date set
        fromDateEdit->show();
        fromDateLabel->show();
        toDateEdit->show();
        toDateLabel->show();
    } else {
        proxyView->setModel(sortFilterModel);
        sortChanged();
        filterRegExpChanged();
        //enable filter column
        sortFilterModel->setFilterKeyColumn(filterColumnComboBox->currentIndex());
        filterColumnLabel->show();
        filterColumnComboBox->show();
        //hide date set
        fromDateEdit->hide();
        fromDateLabel->hide();
        toDateEdit->hide();
        toDateLabel->hide();
    }
}
Esempio n. 2
0
void djvFileBrowserModel::setSort(COLUMNS sort)
{
    if (sort == _p->sort)
        return;

    _p->sort = sort;

    modelUpdate();

    Q_EMIT sortChanged(_p->sort);
    Q_EMIT optionChanged();
}
Esempio n. 3
0
void ItemViewWidget::setSort(int column, Qt::SortOrder order)
{
	if (column == m_sortColumn && order == m_sortOrder)
	{
		return;
	}

	m_sortColumn = column;
	m_sortOrder = order;

	sortByColumn(column, order);
	update();
	saveState();

	emit sortChanged(column, order);
}
Esempio n. 4
0
void HeaderViewWidget::setSort(int column, Qt::SortOrder order)
{
	setSortIndicator(column, order);

	emit sortChanged(column, order);
}
Esempio n. 5
0
void TileView::onSortChanged(int col, Qt::SortOrder ord)
{
	emit sortChanged(col, ord);
}