Change and create message box for Report a Bug...
This commit is contained in:
parent
ce240c27b2
commit
e3f4cf8d9b
9 changed files with 22 additions and 13 deletions
|
@ -323,7 +323,7 @@
|
|||
<command>MI_OpenWhatsNew</command>
|
||||
<command>MI_OpenCommunityForum</command>
|
||||
<separator/>
|
||||
<command>MI_OpenReportAnIssue</command>
|
||||
<command>MI_OpenReportABug</command>
|
||||
<separator/>
|
||||
<command>MI_About</command>
|
||||
</menu>
|
||||
|
|
|
@ -229,7 +229,7 @@ MI_OpenPalette=
|
|||
MI_OpenPltGizmo=
|
||||
MI_OpenRecentLevel=
|
||||
MI_OpenRecentScene=
|
||||
MI_OpenReportAnIssue=
|
||||
MI_OpenReportABug=
|
||||
MI_OpenSchematic=
|
||||
MI_OpenScriptConsole=
|
||||
MI_OpenStudioPalette=
|
||||
|
|
|
@ -229,7 +229,7 @@ MI_OpenPalette=
|
|||
MI_OpenPltGizmo=
|
||||
MI_OpenRecentLevel=
|
||||
MI_OpenRecentScene=
|
||||
MI_OpenReportAnIssue=
|
||||
MI_OpenReportABug=
|
||||
MI_OpenSchematic=
|
||||
MI_OpenScriptConsole=
|
||||
MI_OpenStudioPalette=
|
||||
|
|
|
@ -229,7 +229,7 @@ MI_OpenPalette=
|
|||
MI_OpenPltGizmo=
|
||||
MI_OpenRecentLevel=
|
||||
MI_OpenRecentScene=
|
||||
MI_OpenReportAnIssue=
|
||||
MI_OpenReportABug=
|
||||
MI_OpenSchematic=
|
||||
MI_OpenScriptConsole=
|
||||
MI_OpenStudioPalette=
|
||||
|
|
|
@ -229,7 +229,7 @@ MI_OpenPalette=
|
|||
MI_OpenPltGizmo=
|
||||
MI_OpenRecentLevel=
|
||||
MI_OpenRecentScene=
|
||||
MI_OpenReportAnIssue=
|
||||
MI_OpenReportABug=
|
||||
MI_OpenSchematic=
|
||||
MI_OpenScriptConsole=
|
||||
MI_OpenStudioPalette=
|
||||
|
|
|
@ -455,7 +455,7 @@ centralWidget->setLayout(centralWidgetLayout);*/
|
|||
setCommandHandler(MI_OpenWhatsNew, this, &MainWindow::onOpenWhatsNew);
|
||||
setCommandHandler(MI_OpenCommunityForum, this,
|
||||
&MainWindow::onOpenCommunityForum);
|
||||
setCommandHandler(MI_OpenReportAnIssue, this, &MainWindow::onOpenReportAnIssue);
|
||||
setCommandHandler(MI_OpenReportABug, this, &MainWindow::onOpenReportABug);
|
||||
|
||||
setCommandHandler(MI_MaximizePanel, this, &MainWindow::maximizePanel);
|
||||
setCommandHandler(MI_FullScreenWindow, this, &MainWindow::fullScreenWindow);
|
||||
|
@ -1017,9 +1017,18 @@ void MainWindow::onOpenCommunityForum() {
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
void MainWindow::onOpenReportAnIssue() {
|
||||
QDesktopServices::openUrl(
|
||||
QUrl("https://github.com/opentoonz/opentoonz/issues"));
|
||||
void MainWindow::onOpenReportABug() {
|
||||
QString str = QString(
|
||||
tr("To report a bug, click on the button below to open a web browser "
|
||||
"window for OpenToonz's Issues page on https://github.com. Click on "
|
||||
"the 'New issue' button and fill out the form."));
|
||||
|
||||
std::vector<QString> buttons = {QObject::tr("Report a Bug"),
|
||||
QObject::tr("Close")};
|
||||
int ret = DVGui::MsgBox(DVGui::INFORMATION, str, buttons, 1);
|
||||
if (ret == 1)
|
||||
QDesktopServices::openUrl(
|
||||
QUrl("https://github.com/opentoonz/opentoonz/issues"));
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
@ -2030,7 +2039,7 @@ void MainWindow::defineActions() {
|
|||
createMenuHelpAction(MI_OpenOnlineManual, tr("&Online Manual..."), "F1");
|
||||
createMenuHelpAction(MI_OpenWhatsNew, tr("&What's New..."), "");
|
||||
createMenuHelpAction(MI_OpenCommunityForum, tr("&Community Forum..."), "");
|
||||
createMenuHelpAction(MI_OpenReportAnIssue, tr("&Report an Issue..."), "");
|
||||
createMenuHelpAction(MI_OpenReportABug, tr("&Report a Bug..."), "");
|
||||
|
||||
createRightClickMenuAction(MI_BlendColors, tr("&Blend colors"), "");
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ public:
|
|||
void onOpenOnlineManual();
|
||||
void onOpenWhatsNew();
|
||||
void onOpenCommunityForum();
|
||||
void onOpenReportAnIssue();
|
||||
void onOpenReportABug();
|
||||
void checkForUpdates();
|
||||
int getRoomCount() const;
|
||||
Room *getRoom(int index) const;
|
||||
|
|
|
@ -1443,7 +1443,7 @@ QMenuBar *StackedMenuBar::createFullMenuBar() {
|
|||
addMenuItem(helpMenu, MI_OpenWhatsNew);
|
||||
addMenuItem(helpMenu, MI_OpenCommunityForum);
|
||||
helpMenu->addSeparator();
|
||||
addMenuItem(helpMenu, MI_OpenReportAnIssue);
|
||||
addMenuItem(helpMenu, MI_OpenReportABug);
|
||||
helpMenu->addSeparator();
|
||||
addMenuItem(helpMenu, MI_About);
|
||||
|
||||
|
|
|
@ -365,7 +365,7 @@
|
|||
#define MI_OpenOnlineManual "MI_OpenOnlineManual"
|
||||
#define MI_OpenWhatsNew "MI_OpenWhatsNew"
|
||||
#define MI_OpenCommunityForum "MI_OpenCommunityForum"
|
||||
#define MI_OpenReportAnIssue "MI_OpenReportAnIssue"
|
||||
#define MI_OpenReportABug "MI_OpenReportABug"
|
||||
|
||||
#define MI_ClearCacheFolder "MI_ClearCacheFolder"
|
||||
|
||||
|
|
Loading…
Reference in a new issue