From a783f3fb25aa2ce13da3433ad681e8255148aab3 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 4 Jul 2007 14:03:35 +0000 Subject: [PATCH] Porting to Qt 4 --- src/SUIT/SUIT_MessageBox.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); } /*! -- 2.39.2