using setup instead of test_database
This commit is contained in:
parent
860469a3d1
commit
1a9b7b0bd7
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -244,7 +244,7 @@ PresentationProxyModel::PresentationProxyModel(QObject *parent)
|
|||
:QSortFilterProxyModel(parent)
|
||||
{
|
||||
m_presentationModel = new PresentationModel;
|
||||
m_presentationModel->testDatabase();
|
||||
m_presentationModel->setup();
|
||||
setSourceModel(m_presentationModel);
|
||||
setDynamicSortFilter(true);
|
||||
setFilterRole(Qt::UserRole + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue