GUI: report bug option + small GUI changes
This commit is contained in:
parent
dd82db43cc
commit
e46c3d879d
|
@ -186,6 +186,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWi
|
|||
connect(ui->actionCheckUpdates, SIGNAL(triggered()), this, SLOT(checkUpdates()));
|
||||
connect(ui->actionCallStack, SIGNAL(triggered()), this, SLOT(displayCallstack()));
|
||||
connect(ui->actionDonate, SIGNAL(triggered()), this, SLOT(donate()));
|
||||
connect(ui->actionReportBug, SIGNAL(triggered()), this, SLOT(reportBug()));
|
||||
connect(ui->actionAttach, SIGNAL(triggered()), this, SLOT(displayAttach()));
|
||||
connect(ui->actionDetach, SIGNAL(triggered()), this, SLOT(detach()));
|
||||
connect(ui->actionChangeCommandLine, SIGNAL(triggered()), this, SLOT(changeCommandLine()));
|
||||
|
@ -301,6 +302,7 @@ void MainWindow::refreshShortcuts()
|
|||
ui->actionDonate->setShortcut(ConfigShortcut("HelpDonate"));
|
||||
ui->actionCheckUpdates->setShortcut(ConfigShortcut("HelpCheckForUpdates"));
|
||||
ui->actionCalculator->setShortcut(ConfigShortcut("HelpCalculator"));
|
||||
ui->actionReportBug->setShortcut(ConfigShortcut("HelpReportBug"));
|
||||
|
||||
ui->actionStrings->setShortcut(ConfigShortcut("ActionFindStrings"));
|
||||
ui->actionCalls->setShortcut(ConfigShortcut("ActionFindIntermodularCalls"));
|
||||
|
@ -969,7 +971,20 @@ void MainWindow::donate()
|
|||
msg.setDefaultButton(QMessageBox::Ok);
|
||||
if(msg.exec() != QMessageBox::Ok)
|
||||
return;
|
||||
QDesktopServices::openUrl(QUrl("https://blockchain.info/address/1GuXgtCrLk4aYgivAT7xAi8zVHWk5CkEoY"));
|
||||
QDesktopServices::openUrl(QUrl("http://donate.x64dbg.com"));
|
||||
}
|
||||
|
||||
void MainWindow::reportBug()
|
||||
{
|
||||
QMessageBox msg(QMessageBox::Information, "Report Bug", "You will be taken to a website where you can report a bug.\nMake sure to fill in as much information as possible.");
|
||||
msg.setWindowIcon(QIcon(":/icons/images/bug-report.png"));
|
||||
msg.setParent(this, Qt::Dialog);
|
||||
msg.setWindowFlags(msg.windowFlags() & (~Qt::WindowContextHelpButtonHint));
|
||||
msg.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
|
||||
msg.setDefaultButton(QMessageBox::Ok);
|
||||
if(msg.exec() != QMessageBox::Ok)
|
||||
return;
|
||||
QDesktopServices::openUrl(QUrl("http://report.x64dbg.com"));
|
||||
}
|
||||
|
||||
void MainWindow::displayAttach()
|
||||
|
|
|
@ -91,6 +91,7 @@ public slots:
|
|||
void openShortcuts();
|
||||
void changeTopmost(bool checked);
|
||||
void donate();
|
||||
void reportBug();
|
||||
void displayAttach();
|
||||
void detach();
|
||||
void changeCommandLine();
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
<addaction name="actionCalculator"/>
|
||||
<addaction name="actionCheckUpdates"/>
|
||||
<addaction name="actionDonate"/>
|
||||
<addaction name="actionReportBug"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionAbout"/>
|
||||
</widget>
|
||||
|
@ -165,8 +166,11 @@
|
|||
<addaction name="actionStrings"/>
|
||||
<addaction name="actionCalls"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionCheckUpdates"/>
|
||||
<addaction name="actionCalculator"/>
|
||||
<addaction name="actionCheckUpdates"/>
|
||||
<addaction name="actionDonate"/>
|
||||
<addaction name="actionReportBug"/>
|
||||
<addaction name="actionAbout"/>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar"/>
|
||||
<widget class="QToolBar" name="cmdBar">
|
||||
|
@ -633,6 +637,18 @@
|
|||
<string>Topmost Window</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReportBug">
|
||||
<property name="icon">
|
||||
<iconset resource="../../resource.qrc">
|
||||
<normaloff>:/icons/images/bug-report.png</normaloff>:/icons/images/bug-report.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Report Bug</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Report Bug</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources>
|
||||
|
|
|
@ -221,6 +221,7 @@ Configuration::Configuration() : QObject()
|
|||
defaultShortcuts.insert("HelpDonate", Shortcut(tr("Help -> Donate"), "", true));
|
||||
defaultShortcuts.insert("HelpCheckForUpdates", Shortcut(tr("Help -> Check for Updates"), "", true));
|
||||
defaultShortcuts.insert("HelpCalculator", Shortcut(tr("Help -> Calculator"), "?"));
|
||||
defaultShortcuts.insert("HelpReportBug", Shortcut(tr("Help -> Report Bug"), "", true));
|
||||
|
||||
defaultShortcuts.insert("ActionFindStrings", Shortcut(tr("Actions -> Find Strings"), "", true));
|
||||
defaultShortcuts.insert("ActionFindIntermodularCalls", Shortcut(tr("Actions -> Find Intermodular Calls"), "", true));
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 773 B |
|
@ -50,5 +50,6 @@
|
|||
<file>images/arrow-skip.png</file>
|
||||
<file>images/topmost.png</file>
|
||||
<file>images/close-all-tabs.png</file>
|
||||
<file>images/bug-report.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in New Issue