forked from qt-creator/qt-creator
Use plain QrcEditor* instead of QPointer
Change-Id: Ie8529d0daf1573130212be7c0acfd42f7627a092 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
a628fdb6a5
commit
3fc4511fdf
@@ -315,8 +315,7 @@ void ResourceEditorW::openFile(const QString &fileName)
|
||||
|
||||
void ResourceEditorW::onRefresh()
|
||||
{
|
||||
if (!m_resourceEditor.isNull())
|
||||
m_resourceEditor.data()->refresh();
|
||||
m_resourceEditor->refresh();
|
||||
}
|
||||
|
||||
void ResourceEditorW::renameCurrentFile()
|
||||
@@ -326,14 +325,12 @@ void ResourceEditorW::renameCurrentFile()
|
||||
|
||||
void ResourceEditorW::onUndo()
|
||||
{
|
||||
if (!m_resourceEditor.isNull())
|
||||
m_resourceEditor.data()->onUndo();
|
||||
m_resourceEditor->onUndo();
|
||||
}
|
||||
|
||||
void ResourceEditorW::onRedo()
|
||||
{
|
||||
if (!m_resourceEditor.isNull())
|
||||
m_resourceEditor.data()->onRedo();
|
||||
m_resourceEditor->onRedo();
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
@@ -34,8 +34,6 @@
|
||||
#include <coreplugin/idocument.h>
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QMenu;
|
||||
class QToolBar;
|
||||
@@ -113,7 +111,7 @@ private:
|
||||
const QString m_fileFilter;
|
||||
QString m_displayName;
|
||||
QString m_suggestedName;
|
||||
QPointer<QrcEditor> m_resourceEditor;
|
||||
QrcEditor *m_resourceEditor;
|
||||
ResourceEditorDocument *m_resourceDocument;
|
||||
ResourceEditorPlugin *m_plugin;
|
||||
bool m_shouldAutoSave;
|
||||
|
Reference in New Issue
Block a user