cf12defd28
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
34 lines
812 B
C++
34 lines
812 B
C++
/*
|
|
This file is part of the KDE libraries
|
|
SPDX-FileCopyrightText: 2015 Laurent Montel <montel@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef KRECENTFILESACTIONTEST_H
|
|
#define KRECENTFILESACTIONTEST_H
|
|
|
|
#include <QObject>
|
|
class QMenu;
|
|
class KRecentFilesActionTest : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit KRecentFilesActionTest(QObject *parent = nullptr);
|
|
~KRecentFilesActionTest() override;
|
|
|
|
private:
|
|
static QStringList extractActionNames(QMenu *menu);
|
|
static QList<bool> extractActionEnableVisibleState(QMenu *menu);
|
|
|
|
private Q_SLOTS:
|
|
void shouldHaveDefaultValue();
|
|
void shouldAddActionInTop();
|
|
void shouldClearMenu();
|
|
void testUrlsOrder();
|
|
void addUrlAlreadyInList();
|
|
void removeExecessItems();
|
|
};
|
|
|
|
#endif // KRECENTFILESACTIONTEST_H
|