From 9d61420e4f816dc8bb36d1aedea154452dc8ea94 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 15 Mar 2016 11:15:09 +0100 Subject: [PATCH] Added toolbox page to Debug interface, with deliberate crash feature. --- src/libcalamaresui/utils/DebugWindow.cpp | 8 ++++++- src/libcalamaresui/utils/DebugWindow.ui | 27 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/src/libcalamaresui/utils/DebugWindow.cpp b/src/libcalamaresui/utils/DebugWindow.cpp index 168aec02a..504a56b6e 100644 --- a/src/libcalamaresui/utils/DebugWindow.cpp +++ b/src/libcalamaresui/utils/DebugWindow.cpp @@ -1,6 +1,6 @@ /* === This file is part of Calamares - === * - * Copyright 2015, Teo Mrnjavac + * Copyright 2015-2016, Teo Mrnjavac * * 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" ) ); diff --git a/src/libcalamaresui/utils/DebugWindow.ui b/src/libcalamaresui/utils/DebugWindow.ui index a445e8ad1..fa6b28acf 100644 --- a/src/libcalamaresui/utils/DebugWindow.ui +++ b/src/libcalamaresui/utils/DebugWindow.ui @@ -52,6 +52,33 @@ + + + Tools + + + + + + Crash now + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + +