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(); } }
void djvFileBrowserModel::setSort(COLUMNS sort) { if (sort == _p->sort) return; _p->sort = sort; modelUpdate(); Q_EMIT sortChanged(_p->sort); Q_EMIT optionChanged(); }
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); }
void HeaderViewWidget::setSort(int column, Qt::SortOrder order) { setSortIndicator(column, order); emit sortChanged(column, order); }
void TileView::onSortChanged(int col, Qt::SortOrder ord) { emit sortChanged(col, ord); }