From: stv Date: Mon, 9 Jul 2007 15:06:48 +0000 (+0000) Subject: no message X-Git-Tag: qt4_porting_delivery_220807~109 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=adfb77217108481423ae8cdd73bd88f479efd30e;p=modules%2Fgui.git no message --- diff --git a/src/Qtx/QtxToolBar.cxx b/src/Qtx/QtxToolBar.cxx index 50972d29a..f450db201 100644 --- a/src/Qtx/QtxToolBar.cxx +++ b/src/Qtx/QtxToolBar.cxx @@ -91,7 +91,9 @@ bool QtxToolBar::Watcher::eventFilter( QObject* o, QEvent* e ) bool updVis = ( o != myCont && ( e->type() == QEvent::Show || e->type() == QEvent::ShowToParent || e->type() == QEvent::Hide || e->type() == QEvent::HideToParent ) ) || - ( o == myCont && ( e->type() == QEvent::ChildRemoved || e->type() == QEvent::Show || e->type() == QEvent::ShowToParent ) ); + ( o == myCont && ( e->type() == QEvent::ChildRemoved || e->type() == QEvent::Show || + e->type() == QEvent::ShowToParent || e->type() == QEvent::ActionAdded || + e->type() == QEvent::ActionRemoved ) ); if ( updVis ) { diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 46522f56e..35b80fc39 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -1,17 +1,17 @@ // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D -// +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either +// License as published by the Free Software Foundation; either // version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// +// This library is distributed in the hope that it will be useful +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com @@ -558,7 +558,7 @@ bool STD_Application::onSaveAsDoc() /*!Closing session.*/ void STD_Application::onExit() { - int aAnswer = 1; + int aAnswer = SUIT_MessageBox::Ok; if ( exitConfirmation() ) aAnswer = SUIT_MessageBox::question( desktop(), tr( "INF_DESK_EXIT" ), tr( "QUE_DESK_EXIT" ), SUIT_MessageBox::Ok | SUIT_MessageBox::Cancel, SUIT_MessageBox::Cancel );