From 27f7433cc3fb1bd1a5b47c6244da0bc3aaa960f7 Mon Sep 17 00:00:00 2001 From: "mr.exodia" Date: Thu, 20 Feb 2014 14:54:11 +0100 Subject: [PATCH] GUI: Qt about message --- x64_dbg_gui/Project/Src/Gui/MainWindow.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/x64_dbg_gui/Project/Src/Gui/MainWindow.cpp b/x64_dbg_gui/Project/Src/Gui/MainWindow.cpp index 951794e8..93d688cc 100644 --- a/x64_dbg_gui/Project/Src/Gui/MainWindow.cpp +++ b/x64_dbg_gui/Project/Src/Gui/MainWindow.cpp @@ -309,11 +309,15 @@ void MainWindow::displayScriptWidget() void MainWindow::displayAboutWidget() { #ifdef _WIN64 - const char* title="About x64_dbg"; + QString title="About x64_dbg"; #else - const char* title="About x32_dbg"; + QString title="About x32_dbg"; #endif - MessageBoxA((HWND)MainWindow::winId(), "Created by:\nSigma (GUI)\nMr. eXoDia (DBG)\n\nSpecial Thanks:\nVisualPharm (http://visualpharm.com)\nReversingLabs (http://reversinglabs.com)\nBeatriX (http://beaengine.org)\nQt Project (http://qt-project.org)\nFugue Icons (http://yusukekamiyamane.com)\nNanomite (https://github.com/zer0fl4g/Nanomite)", title, MB_ICONINFORMATION); + QMessageBox msg(QMessageBox::Information, title, "Created by:\nSigma (GUI)\nMr. eXoDia (DBG)\n\nSpecial Thanks:\nVisualPharm (http://visualpharm.com)\nReversingLabs (http://reversinglabs.com)\nBeatriX (http://beaengine.org)\nQt Project (http://qt-project.org)\nFugue Icons (http://yusukekamiyamane.com)\nNanomite (https://github.com/zer0fl4g/Nanomite)"); + msg.setWindowIcon(QIcon(":/icons/images/information.png")); + msg.setParent(this, Qt::Dialog); + msg.setWindowFlags(msg.windowFlags()&(~Qt::WindowContextHelpButtonHint)); + msg.exec(); } void MainWindow::on_actionGoto_triggered()