Add a QTreeView for GlobalStorage contents to DebugWindow.
Not real time yet.
This commit is contained in:
parent
d1c4976ee6
commit
060983279f
@ -18,6 +18,12 @@
|
|||||||
|
|
||||||
#include "DebugWindow.h"
|
#include "DebugWindow.h"
|
||||||
#include "utils/Retranslator.h"
|
#include "utils/Retranslator.h"
|
||||||
|
#include "utils/qjsonmodel.h"
|
||||||
|
#include "JobQueue.h"
|
||||||
|
#include "GlobalStorage.h"
|
||||||
|
|
||||||
|
#include <QJsonDocument>
|
||||||
|
#include <QTreeView>
|
||||||
|
|
||||||
namespace Calamares {
|
namespace Calamares {
|
||||||
|
|
||||||
@ -27,6 +33,11 @@ DebugWindow::DebugWindow()
|
|||||||
|
|
||||||
setupUi( this );
|
setupUi( this );
|
||||||
|
|
||||||
|
QJsonModel* jsonModel = new QJsonModel( this );
|
||||||
|
|
||||||
|
globalStorageView->setModel( jsonModel );
|
||||||
|
jsonModel->loadJson( QJsonDocument::fromVariant( Calamares::JobQueue::instance()->globalStorage()->m ).toJson() );
|
||||||
|
|
||||||
CALAMARES_RETRANSLATE( retranslateUi( this ); )
|
CALAMARES_RETRANSLATE( retranslateUi( this ); )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<author/>
|
|
||||||
<comment/>
|
|
||||||
<exportmacro/>
|
|
||||||
<class>Calamares::DebugWindow</class>
|
<class>Calamares::DebugWindow</class>
|
||||||
<widget class="QWidget" name="Calamares::DebugWindow">
|
<widget class="QWidget" name="Calamares::DebugWindow">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>632</width>
|
||||||
<height>300</height>
|
<height>497</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QTreeView" name="globalStorageView"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<pixmapfunction/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
Loading…
Reference in New Issue
Block a user