Changed error message window to use QMessageBox instead of QErrorMessage to have more control over display image.
This commit is contained in:
parent
e918f8562a
commit
3528adea30
|
@ -5,7 +5,6 @@
|
|||
#include <cstdlib>
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QErrorMessage>
|
||||
|
||||
#include "../../fceu.h"
|
||||
#include "../../fds.h"
|
||||
|
@ -37,8 +36,6 @@ consoleWin_t::consoleWin_t(QWidget *parent)
|
|||
{
|
||||
int use_SDL_video = false;
|
||||
|
||||
errorMsgBox = QErrorMessage::qtHandler();
|
||||
|
||||
createMainMenu();
|
||||
|
||||
g_config->getOption( "SDL.VideoDriver", &use_SDL_video );
|
||||
|
@ -124,15 +121,15 @@ void consoleWin_t::setCyclePeriodms( int ms )
|
|||
|
||||
void consoleWin_t::showErrorMsgWindow()
|
||||
{
|
||||
//QErrorMessage msgBox;
|
||||
QMessageBox msgBox(this);
|
||||
|
||||
fceuWrapperLock();
|
||||
//msgBox.setIcon( QMessageBox::Warning );
|
||||
//msgBox.showMessage( tr(errorMsg.c_str()) );
|
||||
qWarning( errorMsg.c_str() );
|
||||
msgBox.setIcon( QMessageBox::Critical );
|
||||
msgBox.setText( tr(errorMsg.c_str()) );
|
||||
errorMsg.clear();
|
||||
fceuWrapperUnLock();
|
||||
//msgBox.exec();
|
||||
msgBox.show();
|
||||
msgBox.exec();
|
||||
}
|
||||
|
||||
void consoleWin_t::QueueErrorMsgWindow( const char *msg )
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include <QApplication>
|
||||
#include <QMainWindow>
|
||||
#include <QErrorMessage>
|
||||
#include <QWidget>
|
||||
#include <QPushButton>
|
||||
#include <QMenu>
|
||||
|
@ -92,8 +91,6 @@ class consoleWin_t : public QMainWindow
|
|||
QAction *recMovAct;
|
||||
QAction *recAsMovAct;
|
||||
|
||||
QErrorMessage *errorMsgBox;
|
||||
|
||||
QTimer *gameTimer;
|
||||
|
||||
emulatorThread_t *emulatorThread;
|
||||
|
|
Loading…
Reference in New Issue