diff options
author | hjk <hjk@qt.io> | 2024-01-16 18:43:18 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2024-01-17 08:22:47 +0000 |
commit | 9d72867ab6f65f31d13092641f60959453bfb09c (patch) | |
tree | d755c524d11194e153ecb2b2a72d62f3d1879166 /src/plugins/resourceeditor/qrceditor/resourcefile.cpp | |
parent | b5b356c680108687255b4b3e287d77f42863859c (diff) |
ResourceEditor: Hide ResourceDocument class definition
... and simplify setup a bit.
Change-Id: Ib9aedbf9ed8449d76e2e6ceb7b4cc9063e4756ea
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/qrceditor/resourcefile.cpp')
-rw-r--r-- | src/plugins/resourceeditor/qrceditor/resourcefile.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp index ef1c077ca9..38ee38fedf 100644 --- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp +++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp @@ -555,8 +555,7 @@ void ResourceFile::clearPrefixList() ** ResourceModel */ -ResourceModel::ResourceModel(QObject *parent) - : QAbstractItemModel(parent), m_dirty(false) +ResourceModel::ResourceModel() { static QIcon resourceFolderIcon = Utils::FileIconProvider::directoryIcon(QLatin1String(ProjectExplorer::Constants::FILEOVERLAY_QRC)); m_prefixIcon = resourceFolderIcon; @@ -1191,11 +1190,7 @@ void PrefixEntryBackup::restore() const } } -RelativeResourceModel::RelativeResourceModel(QObject *parent) : - ResourceModel(parent), - m_resourceDragEnabled(false) -{ -} +RelativeResourceModel::RelativeResourceModel() = default; Qt::ItemFlags RelativeResourceModel::flags(const QModelIndex &index) const { |