From: vsr Date: Thu, 1 Dec 2005 11:30:01 +0000 (+0000) Subject: Improvement: prohibit input focus for modules combo-box X-Git-Tag: BR_3_1_0_deb~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=91f0870fee990e8364c299a95238156ca50e1abe;p=modules%2Fgui.git Improvement: prohibit input focus for modules combo-box --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 39c394f62..f554a11fa 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -73,6 +73,8 @@ #include #include #include +#include +#include #include #define OBJECT_BROWSER_WIDTH 300 @@ -419,7 +421,16 @@ void LightApp_Application::createActions() const int iconSize = 20; modGroup->addTo( modTBar ); - modTBar->addSeparator(); + QObjectList *l = modTBar->queryList( "QComboBox" ); + QObjectListIt oit( *l ); + while ( QObject* obj = oit.current() ) { + QComboBox* cb = (QComboBox*)obj; + if ( cb ) cb->setFocusPolicy( QWidget::NoFocus ); + ++oit; + } + delete l; + + modTBar->addSeparator(); QStringList modList; modules( modList, false );