aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangtools/clangselectablefilesdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/clangtools/clangselectablefilesdialog.cpp')
-rw-r--r--src/plugins/clangtools/clangselectablefilesdialog.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/plugins/clangtools/clangselectablefilesdialog.cpp b/src/plugins/clangtools/clangselectablefilesdialog.cpp
index f879e5099d..6fa105e896 100644
--- a/src/plugins/clangtools/clangselectablefilesdialog.cpp
+++ b/src/plugins/clangtools/clangselectablefilesdialog.cpp
@@ -264,30 +264,6 @@ private:
}
};
-class FileFilterModel : public QSortFilterProxyModel
-{
- Q_OBJECT
-
-public:
- FileFilterModel(QObject *parent = nullptr)
- : QSortFilterProxyModel(parent)
- {}
-
-private:
- bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override
- {
- QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent);
- const int rowCount = sourceModel()->rowCount(index);
- if (rowCount == 0) // No children -> file node!
- return sourceModel()->data(index).toString().contains(filterRegExp());
- for (int row = 0; row < rowCount; ++row) {
- if (filterAcceptsRow(row, index))
- return true;
- }
- return false;
- }
-};
-
SelectableFilesDialog::SelectableFilesDialog(const ProjectInfo &projectInfo,
const FileInfoProviders &fileInfoProviders,
int initialProviderIndex)