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