2023-03-23 15:25:43 +00:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
|
|
|
|
#ifndef RECENTFILEMENU_H
|
|
|
|
#define RECENTFILEMENU_H
|
|
|
|
|
|
|
|
#include <QMenu>
|
|
|
|
|
2023-06-07 14:11:25 +00:00
|
|
|
class RecentFiles;
|
|
|
|
|
2023-03-23 15:25:43 +00:00
|
|
|
class RecentFileMenu : public QMenu
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit RecentFileMenu(QWidget *parent, RecentFiles *recent);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void fileOpened(const QString &fileName);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void updateList();
|
|
|
|
|
|
|
|
private:
|
|
|
|
RecentFiles *m_recentFiles;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RECENTFILEMENU_H
|