Gui: MSVC requires a user-defined destructor of RecentFilesAction

otherwise the class declaration of Private is needed in the header file
This commit is contained in:
wmayer
2022-11-16 12:46:47 +01:00
parent e1aa6f58e3
commit 4483c77530
2 changed files with 6 additions and 0 deletions

View File

@@ -937,6 +937,11 @@ RecentFilesAction::RecentFilesAction ( Command* pcCmd, QObject * parent )
restore();
}
RecentFilesAction::~RecentFilesAction()
{
_pimpl.reset(nullptr);
}
/** Adds the new item to the recent files. */
void RecentFilesAction::appendFile(const QString& filename)
{

View File

@@ -240,6 +240,7 @@ class GuiExport RecentFilesAction : public ActionGroup
public:
explicit RecentFilesAction (Command* pcCmd, QObject * parent = nullptr);
~RecentFilesAction() override;
void appendFile(const QString&);
void activateFile(int);