Skip to content

Commit

Permalink
Embedded constant for QAbstractItemModelTester instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Artiom Khachaturian committed Feb 14, 2025
1 parent 6efd807 commit a961cde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/testfolderstatusmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ using namespace OCC::Utility;
class TestFolderStatusModel : public QObject
{
Q_OBJECT
static inline constexpr auto _modelTesterMode = QAbstractItemModelTester::FailureReportingMode::QtTest;
std::unique_ptr<FolderMan> _folderMan;

public:
Expand Down Expand Up @@ -196,7 +195,7 @@ private Q_SLOTS:
{
executeFolderManTest([functor](const AccountState *accountState, Folder*){
FolderStatusModel test;
QAbstractItemModelTester tester{&test, _modelTesterMode};
QAbstractItemModelTester tester{&test, QAbstractItemModelTester::FailureReportingMode::QtTest};
tester.setUseFetchMore(true);
functor(accountState, test);
});
Expand Down

0 comments on commit a961cde

Please sign in to comment.