Skip to content
Snippets Groups Projects
Commit 3fc4511f authored by Konstantin Tokarev's avatar Konstantin Tokarev Committed by Eike Ziller
Browse files

Use plain QrcEditor* instead of QPointer


Change-Id: Ie8529d0daf1573130212be7c0acfd42f7627a092
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent a628fdb6
Branches
Tags
No related merge requests found
...@@ -315,8 +315,7 @@ void ResourceEditorW::openFile(const QString &fileName) ...@@ -315,8 +315,7 @@ void ResourceEditorW::openFile(const QString &fileName)
void ResourceEditorW::onRefresh() void ResourceEditorW::onRefresh()
{ {
if (!m_resourceEditor.isNull()) m_resourceEditor->refresh();
m_resourceEditor.data()->refresh();
} }
void ResourceEditorW::renameCurrentFile() void ResourceEditorW::renameCurrentFile()
...@@ -326,14 +325,12 @@ void ResourceEditorW::renameCurrentFile() ...@@ -326,14 +325,12 @@ void ResourceEditorW::renameCurrentFile()
void ResourceEditorW::onUndo() void ResourceEditorW::onUndo()
{ {
if (!m_resourceEditor.isNull()) m_resourceEditor->onUndo();
m_resourceEditor.data()->onUndo();
} }
void ResourceEditorW::onRedo() void ResourceEditorW::onRedo()
{ {
if (!m_resourceEditor.isNull()) m_resourceEditor->onRedo();
m_resourceEditor.data()->onRedo();
} }
} // namespace Internal } // namespace Internal
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include <coreplugin/idocument.h> #include <coreplugin/idocument.h>
#include <coreplugin/editormanager/ieditor.h> #include <coreplugin/editormanager/ieditor.h>
#include <QPointer>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QMenu; class QMenu;
class QToolBar; class QToolBar;
...@@ -113,7 +111,7 @@ private: ...@@ -113,7 +111,7 @@ private:
const QString m_fileFilter; const QString m_fileFilter;
QString m_displayName; QString m_displayName;
QString m_suggestedName; QString m_suggestedName;
QPointer<QrcEditor> m_resourceEditor; QrcEditor *m_resourceEditor;
ResourceEditorDocument *m_resourceDocument; ResourceEditorDocument *m_resourceDocument;
ResourceEditorPlugin *m_plugin; ResourceEditorPlugin *m_plugin;
bool m_shouldAutoSave; bool m_shouldAutoSave;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment