File: krecentfilesactiontest.h

package info (click to toggle)
kf6-kconfigwidgets 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,020 kB
  • sloc: cpp: 6,309; sh: 18; makefile: 7
file content (33 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
    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