raw -> smart pointer for musredit where it makes sence.

This commit is contained in:
2023-10-21 22:33:19 +02:00
parent c2d2307755
commit 1117ad9732
12 changed files with 70 additions and 92 deletions

View File

@@ -43,7 +43,9 @@
#include <QtDebug>
#include <memory>
#include "PAdmin.h"
#include "musredit.h"
class PSubTextEdit;
@@ -167,7 +169,7 @@ private slots:
private:
bool fDarkMenuIcon; ///< flag indicating if a dark or plain icon shall be used in the menu pull-downs
bool fDarkToolBarIcon; ///< flag indicating if a dark or plain icon shall be used in the toolbar
PAdmin *fAdmin; ///< pointer to the xml-startup file informations. Needed for different purposes like default working- and executable directories etc.
std::unique_ptr<PAdmin> fAdmin; ///< pointer to the xml-startup file informations. Needed for different purposes like default working- and executable directories etc.
QFileSystemWatcher *fFileSystemWatcher; ///< checks if msr-files are changing on the disk while being open in musredit.
bool fFileSystemWatcherActive; ///< flag to enable/disable the file system watcher
QTimer fFileSystemWatcherTimeout; ///< timer used to re-enable file system watcher. Needed to delay the re-enabling