From: vsr Date: Wed, 4 Jul 2007 14:03:35 +0000 (+0000) Subject: Porting to Qt 4 X-Git-Tag: qt4_porting_delivery_220807~122 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a783f3fb25aa2ce13da3433ad681e8255148aab3;p=modules%2Fgui.git Porting to Qt 4 --- diff --git a/src/SUIT/SUIT_MessageBox.cxx b/src/SUIT/SUIT_MessageBox.cxx index ba2d261e0..52f8874c0 100755 --- a/src/SUIT/SUIT_MessageBox.cxx +++ b/src/SUIT/SUIT_MessageBox.cxx @@ -162,6 +162,7 @@ void SUIT_MessageBox::setButtonText( StandardButton btn, const QString& text ) SUIT_MessageBox::StandardButton SUIT_MessageBox::critical( QWidget* parent, const QString& title, const QString& text, StandardButtons buttons, StandardButton defaultButton ) { + SUIT_OverrideCursor cw( parent ? parent->cursor() : Qt::ArrowCursor ); return QMessageBox::critical( parent, title, text, buttons, defaultButton ); } @@ -177,6 +178,7 @@ SUIT_MessageBox::StandardButton SUIT_MessageBox::critical( QWidget* parent, cons SUIT_MessageBox::StandardButton SUIT_MessageBox::warning( QWidget* parent, const QString& title, const QString& text, SUIT_MessageBox::StandardButtons buttons, StandardButton defaultButton ) { + SUIT_OverrideCursor cw( parent ? parent->cursor() : Qt::ArrowCursor ); return QMessageBox::warning( parent, title, text, buttons, defaultButton ); } @@ -192,6 +194,7 @@ SUIT_MessageBox::StandardButton SUIT_MessageBox::warning( QWidget* parent, const SUIT_MessageBox::StandardButton SUIT_MessageBox::information( QWidget* parent, const QString& title, const QString& text, StandardButtons buttons, StandardButton defaultButton ) { + SUIT_OverrideCursor cw( parent ? parent->cursor() : Qt::ArrowCursor ); return QMessageBox::information( parent, title, text, buttons, defaultButton ); } @@ -207,7 +210,8 @@ SUIT_MessageBox::StandardButton SUIT_MessageBox::information( QWidget* parent, c SUIT_MessageBox::StandardButton SUIT_MessageBox::question( QWidget* parent, const QString& title, const QString& text, StandardButtons buttons, StandardButton defaultButton ) { - return QMessageBox::question( parent, title, text,buttons, defaultButton ); + SUIT_OverrideCursor cw( parent ? parent->cursor() : Qt::ArrowCursor ); + return QMessageBox::question( parent, title, text, buttons, defaultButton ); } /*!