forked from qt-creator/qt-creator
Design mode/Qt Designer clean-up, part III: Resources.
Move resource code to new ResourceHandler class and instantiate it on the form window.
This commit is contained in:
@@ -29,8 +29,10 @@
|
||||
|
||||
#include "designerxmleditor.h"
|
||||
#include "designerconstants.h"
|
||||
#include "resourcehandler.h"
|
||||
#include "qt_private/formwindowbase_p.h"
|
||||
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/modemanager.h>
|
||||
@@ -124,6 +126,9 @@ bool DesignerXmlEditorEditable::open(const QString &fileName)
|
||||
setDisplayName(fi.fileName());
|
||||
m_file.setFileName(absfileName);
|
||||
|
||||
if (Internal::ResourceHandler *rh = qFindChild<Designer::Internal::ResourceHandler*>(form))
|
||||
rh->updateResources();
|
||||
|
||||
emit changed();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user