X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUIT%2FSUIT_Desktop.cxx;h=e0cbd04a03f8daf457007c40c9b420ff71554576;hb=57167b9a6b5917daf1efe4f1f15491106276b761;hp=f497fbb7fd09fde22d491639c5e3448a39a53932;hpb=bb8609caf7881d966fbb88dec0a7822736da93f5;p=modules%2Fgui.git diff --git a/src/SUIT/SUIT_Desktop.cxx b/src/SUIT/SUIT_Desktop.cxx index f497fbb7f..e0cbd04a0 100755 --- a/src/SUIT/SUIT_Desktop.cxx +++ b/src/SUIT/SUIT_Desktop.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // 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 -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -216,3 +216,11 @@ void SUIT_Desktop::emitMessage( const QString& theMessage ) { emit message( theMessage ); } + +/*! + Activate window (default implementation just sets focus to the window. +*/ +void SUIT_Desktop::setActiveWindow(SUIT_ViewWindow* wnd) +{ + if (wnd) wnd->setFocus(); +}