using setup instead of test_database

This commit is contained in:
Chris Cochrun 2023-04-17 11:30:26 -05:00
parent 860469a3d1
commit 1a9b7b0bd7
4 changed files with 4 additions and 4 deletions

View file

@ -209,7 +209,7 @@ ImageProxyModel::ImageProxyModel(QObject *parent)
:QSortFilterProxyModel(parent)
{
m_imageModel = new ImageModel;
m_imageModel->testDatabase();
m_imageModel->setup();
setSourceModel(m_imageModel);
setDynamicSortFilter(true);
setFilterRole(1);