Added toolbox page to Debug interface, with deliberate crash feature.
This commit is contained in:
parent
e1326e397c
commit
9928124195
@ -1,6 +1,6 @@
|
||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
||||
*
|
||||
* Copyright 2015, Teo Mrnjavac <teo@kde.org>
|
||||
* Copyright 2015-2016, Teo Mrnjavac <teo@kde.org>
|
||||
*
|
||||
* Calamares is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include "DebugWindow.h"
|
||||
#include "utils/CalamaresUtils.h"
|
||||
#include "utils/Retranslator.h"
|
||||
#include "utils/qjsonmodel.h"
|
||||
#include "JobQueue.h"
|
||||
@ -91,6 +92,11 @@ DebugWindow::DebugWindow()
|
||||
}
|
||||
} );
|
||||
|
||||
connect( crashButton, &QPushButton::clicked,
|
||||
this, [] {
|
||||
CalamaresUtils::crash();
|
||||
} );
|
||||
|
||||
CALAMARES_RETRANSLATE(
|
||||
retranslateUi( this );
|
||||
setWindowTitle( tr( "Debug information" ) );
|
||||
|
@ -52,6 +52,33 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="toolsTab">
|
||||
<attribute name="title">
|
||||
<string>Tools</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="QPushButton" name="crashButton">
|
||||
<property name="text">
|
||||
<string notr="true">Crash now</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
Loading…
Reference in New Issue
Block a user