+const QString initial_notice = QApplication::tr("Select a decoder to see its description here.");
+const int min_width_margin = 75;
+
+
+bool QCustomSortFilterProxyModel::filterAcceptsRow(int source_row,
+ const QModelIndex& source_parent) const
+{
+ // Search model recursively
+
+ if (QSortFilterProxyModel::filterAcceptsRow(source_row, source_parent))
+ return true;
+
+ const QModelIndex index = sourceModel()->index(source_row, 0, source_parent);
+
+ for (int i = 0; i < sourceModel()->rowCount(index); i++)
+ if (filterAcceptsRow(i, index))
+ return true;
+
+ return false;
+}
+
+
+void QCustomTreeView::currentChanged(const QModelIndex& current,
+ const QModelIndex& previous)
+{
+ QTreeView::currentChanged(current, previous);
+ currentChanged(current);
+}
+