Added report issue button in "About" window (#2908)

This commit is contained in:
Islam Bassuni 2022-04-03 16:50:14 +02:00 committed by GitHub
parent aed42d7300
commit 99c58718ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 159 additions and 104 deletions

View File

@ -5,6 +5,8 @@
#include "ui_AboutDialog.h" #include "ui_AboutDialog.h"
#include "RizinPluginsDialog.h" #include "RizinPluginsDialog.h"
#include "common/Configuration.h" #include "common/Configuration.h"
#include "common/BugReporting.h"
#include <QUrl> #include <QUrl>
#include <QTimer> #include <QTimer>
@ -85,6 +87,10 @@ void AboutDialog::on_showPluginsButton_clicked()
RizinPluginsDialog dialog(this); RizinPluginsDialog dialog(this);
dialog.exec(); dialog.exec();
} }
void AboutDialog::on_Issue_clicked()
{
openIssue();
}
void AboutDialog::on_checkForUpdatesButton_clicked() void AboutDialog::on_checkForUpdatesButton_clicked()
{ {

View File

@ -21,6 +21,7 @@ private slots:
void on_buttonBox_rejected(); void on_buttonBox_rejected();
void on_showVersionButton_clicked(); void on_showVersionButton_clicked();
void on_showPluginsButton_clicked(); void on_showPluginsButton_clicked();
void on_Issue_clicked();
/** /**
* @fn AboutDialog::on_checkForUpdatesButton_clicked() * @fn AboutDialog::on_checkForUpdatesButton_clicked()

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>570</width> <width>935</width>
<height>393</height> <height>554</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -15,6 +15,121 @@
</property> </property>
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="0"> <item row="1" column="0">
<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>
<item row="4" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
</property>
</widget>
</item>
<item row="2" column="0">
<layout class="QGridLayout" name="gridLayout">
<property name="horizontalSpacing">
<number>5</number>
</property>
<property name="verticalSpacing">
<number>15</number>
</property>
<item row="4" column="1" colspan="2">
<widget class="QCheckBox" name="updatesCheckBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Check for updates on start</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QPushButton" name="checkForUpdatesButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Check for updates</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="4" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="label_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:11pt; font-weight:600;&quot;&gt;Cutter is a free and open-source reverse engineering platform powered by Rizin&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:11pt;&quot;&gt;Read more on &lt;/span&gt;&lt;a href=&quot;https://cutter.re&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#2980b9;&quot;&gt;cutter.re&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="1" column="2" colspan="2" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="label_2">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:28pt; font-weight:600;&quot;&gt;Cutter&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="3" column="4">
<widget class="QPushButton" name="Issue">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Report an issue</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QPushButton" name="showPluginsButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Show Rizin plugin information</string>
</property>
</widget>
</item>
<item row="3" column="3">
<widget class="QPushButton" name="showVersionButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Show version information</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
@ -42,95 +157,17 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="0" column="0" alignment="Qt::AlignHCenter">
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QSvgWidget" name="logoSvgWidget" native="true">
<property name="standardButtons"> <property name="enabled">
<set>QDialogButtonBox::Close</set> <bool>true</bool>
</property> </property>
</widget>
</item>
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout">
<property name="horizontalSpacing">
<number>5</number>
</property>
<property name="verticalSpacing">
<number>15</number>
</property>
<item row="5" column="1" colspan="2">
<widget class="QCheckBox" name="updatesCheckBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Check for updates on start</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QPushButton" name="checkForUpdatesButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Check for updates</string>
</property>
</widget>
</item>
<item row="4" column="3">
<widget class="QPushButton" name="showVersionButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Show version information</string>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QPushButton" name="showPluginsButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Show Rizin plugin information</string>
</property>
</widget>
</item>
<item row="3" column="1" colspan="3" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="label_3">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:11pt; font-weight:600;&quot;&gt;Cutter is a free and open-source reverse engineering platform powered by Rizin&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:11pt;&quot;&gt;Read more on &lt;/span&gt;&lt;a href=&quot;https://cutter.re&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#2980b9;&quot;&gt;cutter.re&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="2" column="2" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="label_2">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:28pt; font-weight:600;&quot;&gt;Cutter&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="1" column="2" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QSvgWidget" name="logoSvgWidget" native="true">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>96</width> <width>96</width>
@ -143,11 +180,18 @@
<height>96</height> <height>96</height>
</size> </size>
</property> </property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="contextMenuPolicy">
<enum>Qt::DefaultContextMenu</enum>
</property>
<property name="toolTipDuration">
<number>0</number>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item>
</layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>
@ -159,4 +203,8 @@
</customwidgets> </customwidgets>
<resources/> <resources/>
<connections/> <connections/>
<slots>
<signal>signal1()</signal>
<slot>on_reportIssueButton_clicked()</slot>
</slots>
</ui> </ui>