Skip to content
Snippets Groups Projects
Commit 9d61420e authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Added toolbox page to Debug interface, with deliberate crash feature.

parent 9fb9aaf6
No related branches found
No related tags found
No related merge requests found
/* === This file is part of Calamares - <http://github.com/calamares> === /* === 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 * Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
*/ */
#include "DebugWindow.h" #include "DebugWindow.h"
#include "utils/CalamaresUtils.h"
#include "utils/Retranslator.h" #include "utils/Retranslator.h"
#include "utils/qjsonmodel.h" #include "utils/qjsonmodel.h"
#include "JobQueue.h" #include "JobQueue.h"
...@@ -91,6 +92,11 @@ DebugWindow::DebugWindow() ...@@ -91,6 +92,11 @@ DebugWindow::DebugWindow()
} }
} ); } );
connect( crashButton, &QPushButton::clicked,
this, [] {
CalamaresUtils::crash();
} );
CALAMARES_RETRANSLATE( CALAMARES_RETRANSLATE(
retranslateUi( this ); retranslateUi( this );
setWindowTitle( tr( "Debug information" ) ); setWindowTitle( tr( "Debug information" ) );
......
...@@ -52,6 +52,33 @@ ...@@ -52,6 +52,33 @@
</item> </item>
</layout> </layout>
</widget> </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> </widget>
</item> </item>
</layout> </layout>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment