File indexing completed on 2024-03-24 03:56:07
0001 /* 0002 This file is part of the KDE libraries 0003 SPDX-FileCopyrightText: 2015 Laurent Montel <montel@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef KRECENTFILESACTIONTEST_H 0009 #define KRECENTFILESACTIONTEST_H 0010 0011 #include <QObject> 0012 class QMenu; 0013 class KRecentFilesActionTest : public QObject 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit KRecentFilesActionTest(QObject *parent = nullptr); 0018 ~KRecentFilesActionTest() override; 0019 0020 private: 0021 static QStringList extractActionNames(QMenu *menu); 0022 static QList<bool> extractActionEnableVisibleState(QMenu *menu); 0023 0024 private Q_SLOTS: 0025 void shouldHaveDefaultValue(); 0026 void shouldAddActionInTop(); 0027 void shouldClearMenu(); 0028 void testUrlsOrder(); 0029 void addUrlAlreadyInList(); 0030 void removeExecessItems(); 0031 }; 0032 0033 #endif // KRECENTFILESACTIONTEST_H