File indexing completed on 2025-01-26 05:06:19
0001 /* 0002 SPDX-FileCopyrightText: 2017 Klarälvdalens Datakonsult AB a KDAB Group company <info@kdab.com> 0003 SPDX-FileContributor: Andras Mantia <andras.mantia@kdab.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include <QObject> 0011 0012 class QTemporaryDir; 0013 class FolderModel; 0014 0015 class FolderModelTest : public QObject 0016 { 0017 Q_OBJECT 0018 0019 private Q_SLOTS: 0020 void init(); 0021 void cleanup(); 0022 void tst_listing(); 0023 void tst_listingDescending(); 0024 void tst_listingFolderNotFirst(); 0025 void tst_listingHidden(); 0026 void tst_filterListing(); 0027 void tst_cd(); 0028 void tst_rename_data(); 0029 void tst_rename(); 0030 void tst_selection(); 0031 void tst_defaultValues(); 0032 void tst_actionMenu(); 0033 void tst_lockedChanged(); 0034 void tst_multiScreen(); 0035 void tst_multiScreenDifferenPath(); 0036 0037 private: 0038 void createTestFolder(const QString &path); 0039 0040 QString m_currentActivity; 0041 FolderModel *m_folderModel; 0042 QTemporaryDir *m_folderDir; 0043 };