Salome HOME
Removed qt3 support and replaced qt macros imn/removed_qt3_support
authorimn <imn@opencascade.com>
Wed, 17 Sep 2014 09:41:53 +0000 (13:41 +0400)
committerimn <imn@opencascade.com>
Wed, 17 Sep 2014 09:41:53 +0000 (13:41 +0400)
89 files changed:
src/OBJECT/SMESH_ActorUtils.cxx
src/SMESHFiltersSelection/SMESH_LogicalFilter.cxx
src/SMESHGUI/SMESHGUI.cxx
src/SMESHGUI/SMESHGUI.h
src/SMESHGUI/SMESHGUI_Add0DElemsOnAllNodesDlg.cxx
src/SMESHGUI/SMESHGUI_Add0DElemsOnAllNodesDlg.h
src/SMESHGUI/SMESHGUI_AddMeshElementDlg.h
src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.h
src/SMESHGUI/SMESHGUI_BuildCompoundDlg.h
src/SMESHGUI/SMESHGUI_ClippingDlg.h
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
src/SMESHGUI/SMESHGUI_ComputeDlg.h
src/SMESHGUI/SMESHGUI_ConvToQuadDlg.cxx
src/SMESHGUI/SMESHGUI_ConvToQuadDlg.h
src/SMESHGUI/SMESHGUI_ConvToQuadOp.h
src/SMESHGUI/SMESHGUI_CopyMeshDlg.h
src/SMESHGUI/SMESHGUI_CreatePatternDlg.cxx
src/SMESHGUI/SMESHGUI_CreatePatternDlg.h
src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx
src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.h
src/SMESHGUI/SMESHGUI_DeleteGroupDlg.h
src/SMESHGUI/SMESHGUI_DuplicateNodesDlg.h
src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.cxx
src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.h
src/SMESHGUI/SMESHGUI_ExtrusionDlg.h
src/SMESHGUI/SMESHGUI_FieldSelectorWdg.h
src/SMESHGUI/SMESHGUI_FilterDlg.cxx
src/SMESHGUI/SMESHGUI_FilterDlg.h
src/SMESHGUI/SMESHGUI_FilterLibraryDlg.h
src/SMESHGUI/SMESHGUI_FindElemByPointDlg.cxx
src/SMESHGUI/SMESHGUI_FindElemByPointDlg.h
src/SMESHGUI/SMESHGUI_GroupDlg.cxx
src/SMESHGUI/SMESHGUI_GroupDlg.h
src/SMESHGUI/SMESHGUI_GroupOnShapeDlg.h
src/SMESHGUI/SMESHGUI_GroupOpDlg.h
src/SMESHGUI/SMESHGUI_Hypotheses.cxx
src/SMESHGUI/SMESHGUI_Hypotheses.h
src/SMESHGUI/SMESHGUI_Make2DFrom3DOp.h
src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.h
src/SMESHGUI/SMESHGUI_Measurements.cxx
src/SMESHGUI/SMESHGUI_Measurements.h
src/SMESHGUI/SMESHGUI_MergeDlg.cxx
src/SMESHGUI/SMESHGUI_MergeDlg.h
src/SMESHGUI/SMESHGUI_MeshDlg.cxx
src/SMESHGUI/SMESHGUI_MeshDlg.h
src/SMESHGUI/SMESHGUI_MeshInfo.cxx
src/SMESHGUI/SMESHGUI_MeshInfo.h
src/SMESHGUI/SMESHGUI_MeshOp.h
src/SMESHGUI/SMESHGUI_MeshOrderDlg.h
src/SMESHGUI/SMESHGUI_MeshOrderOp.h
src/SMESHGUI/SMESHGUI_MeshPatternDlg.h
src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx
src/SMESHGUI/SMESHGUI_MultiEditDlg.h
src/SMESHGUI/SMESHGUI_NodesDlg.h
src/SMESHGUI/SMESHGUI_Operation.h
src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h
src/SMESHGUI/SMESHGUI_PreviewDlg.h
src/SMESHGUI/SMESHGUI_PropertiesDlg.h
src/SMESHGUI/SMESHGUI_RemoveElementsDlg.h
src/SMESHGUI/SMESHGUI_RemoveNodesDlg.h
src/SMESHGUI/SMESHGUI_RenumberingDlg.h
src/SMESHGUI/SMESHGUI_ReorientFacesDlg.h
src/SMESHGUI/SMESHGUI_RevolutionDlg.h
src/SMESHGUI/SMESHGUI_RotationDlg.h
src/SMESHGUI/SMESHGUI_ScaleDlg.h
src/SMESHGUI/SMESHGUI_SelectionOp.h
src/SMESHGUI/SMESHGUI_SewingDlg.h
src/SMESHGUI/SMESHGUI_ShapeByMeshDlg.h
src/SMESHGUI/SMESHGUI_SingleEditDlg.h
src/SMESHGUI/SMESHGUI_SmoothingDlg.h
src/SMESHGUI/SMESHGUI_SpinBox.h
src/SMESHGUI/SMESHGUI_SymmetryDlg.h
src/SMESHGUI/SMESHGUI_TranslationDlg.h
src/SMESHGUI/SMESHGUI_TransparencyDlg.h
src/SMESHGUI/SMESHGUI_VTKUtils.cxx
src/SMESH_SWIG_WITHIHM/libSMESH_Swig.cxx
src/StdMeshersGUI/StdMeshersGUI_CartesianParamCreator.cxx
src/StdMeshersGUI/StdMeshersGUI_CartesianParamCreator.h
src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx
src/StdMeshersGUI/StdMeshersGUI_DistrTable.h
src/StdMeshersGUI/StdMeshersGUI_FixedPointsParamWdg.cxx
src/StdMeshersGUI/StdMeshersGUI_FixedPointsParamWdg.h
src/StdMeshersGUI/StdMeshersGUI_LayerDistributionParamWdg.h
src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.h
src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.cxx
src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h
src/StdMeshersGUI/StdMeshersGUI_QuadrangleParamWdg.h
src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.cxx
src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h

index f5477356eeb8bc3397f79fe598fe04379e4fbbe3..5ef002f00c618352097233d9f8bf32589c06a491 100644 (file)
@@ -203,7 +203,7 @@ namespace SMESH
     aType = aHistogram->getPointList().empty() ? RemoveFrom2dViewer : aType;
     
     SUIT_ViewManager* aViewManager;
-    foreach( aViewManager, aViewManagerList ) {
+    Q_FOREACH( aViewManager, aViewManagerList ) {
       if (Plot2d_ViewManager* aManager = dynamic_cast<Plot2d_ViewManager*>(aViewManager)) {
         if (SPlot2d_Viewer* aViewer = dynamic_cast<SPlot2d_Viewer*>(aManager->getViewModel())) {
           if (Plot2d_ViewFrame* aViewFrame = aViewer->getActiveViewFrame()) {
index 61cadf00cae80dc2cdbb045b3ef2232afae0aa50..9676f2a841933cf3f838481521b9942b3d82bfbf 100644 (file)
@@ -54,7 +54,7 @@ SMESH_LogicalFilter::~SMESH_LogicalFilter()
 bool SMESH_LogicalFilter::isOk (const SUIT_DataOwner* owner) const
 {
   SUIT_SelectionFilter* filter;
-  foreach( filter, myFilters )
+  Q_FOREACH( filter, myFilters )
   {
     if (myOperation == LO_OR && filter->isOk(owner))
       return true;
@@ -114,7 +114,7 @@ void SMESH_LogicalFilter::deleteFilters()
   if ( myOwnership )
   {
     SUIT_SelectionFilter* filter;
-    foreach( filter, myFilters )
+    Q_FOREACH( filter, myFilters )
       delete filter;
   }
 }
index 8723415cda627dd5cbdc57350b073a769c3644ce..468addb60529d17310ac93e12ff45ff590be5489 100644 (file)
@@ -2188,7 +2188,7 @@ void SMESHGUI::ResetState()
 //=============================================================================
 void SMESHGUI::EmitSignalDeactivateDialog()
 {
-  emit SignalDeactivateActiveDialog();
+  Q_EMIT SignalDeactivateActiveDialog();
 }
 
 //=============================================================================
@@ -2198,7 +2198,7 @@ void SMESHGUI::EmitSignalDeactivateDialog()
 //=============================================================================
 void SMESHGUI::EmitSignalStudyFrameChanged()
 {
-  emit SignalStudyFrameChanged();
+  Q_EMIT SignalStudyFrameChanged();
 }
 
 //=============================================================================
@@ -2208,7 +2208,7 @@ void SMESHGUI::EmitSignalStudyFrameChanged()
 //=============================================================================
 void SMESHGUI::EmitSignalCloseAllDialogs()
 {
-  emit SignalCloseAllDialogs();
+  Q_EMIT SignalCloseAllDialogs();
 }
 
 //=============================================================================
@@ -2218,7 +2218,7 @@ void SMESHGUI::EmitSignalCloseAllDialogs()
 //=============================================================================
 void SMESHGUI::EmitSignalVisibilityChanged()
 {
-  emit SignalVisibilityChanged();
+  Q_EMIT SignalVisibilityChanged();
 }
 
 //=============================================================================
@@ -4705,7 +4705,7 @@ bool SMESHGUI::activateModule( SUIT_Study* study )
   if ( aDesk ) {
     QList<SUIT_ViewWindow*> wndList = aDesk->windows();
     SUIT_ViewWindow* wnd;
-    foreach ( wnd, wndList )
+    Q_FOREACH ( wnd, wndList )
       connectView( wnd );
   }
 
index 9055fd200c3516e140e106cdeee4871800dd9f28..506995c1e9aaf328f06d036ffc5aab39bcc774e3 100644 (file)
@@ -156,13 +156,13 @@ public :
 
   SMESHGUI_ClippingPlaneInfoMap&  getClippingPlaneInfoMap() { return myClippingPlaneInfoMap; }
 
-public slots:
+public Q_SLOTS:
   virtual bool                    deactivateModule( SUIT_Study* );
   virtual bool                    activateModule( SUIT_Study* );
   virtual void                    studyClosed( SUIT_Study* );
   void                            onViewClosed( SUIT_ViewWindow* );
 
-private slots:
+private Q_SLOTS:
   void                            OnGUIEvent();
   void                            onViewManagerActivated( SUIT_ViewManager* );
   void                            onViewManagerRemoved( SUIT_ViewManager* );
@@ -170,7 +170,7 @@ private slots:
   void                            onOperationAborted( SUIT_Operation* );
   void                            onHypothesisEdit( int result );
 
-signals:
+Q_SIGNALS:
   void                            SignalDeactivateActiveDialog();
   void                            SignalStudyFrameChanged();
   void                            SignalCloseAllDialogs();
index 9cbad861c453b08361e8a96bc38836bd8742ff6c..414b55cc0c76f2b23fc5bc7060a9f1d28c2fed8a 100644 (file)
@@ -179,7 +179,7 @@ void SMESHGUI_Add0DElemsOnAllNodesDlg::onSelTypeChange( int selType )
 
   myFilterBtn->setEnabled( selType != SEL_OBJECT );
 
-  emit selTypeChanged( selType );
+  Q_EMIT selTypeChanged( selType );
 }
 
 //================================================================================
index d887c14515047eb14bb5fae3881d402a6be655bc..af5cf551ac621c7ba8b0d2d30572066a9c216389 100644 (file)
@@ -53,12 +53,12 @@ class SMESHGUI_EXPORT SMESHGUI_Add0DElemsOnAllNodesDlg : public SMESHGUI_Dialog
   int                            getSelectionType() const;
   bool                           isValid();
 
-signals:
+Q_SIGNALS:
 
   void                           selTypeChanged( int selType );
 
 
- private slots:
+ private Q_SLOTS:
 
   void                           onGroupChecked ( bool on );
   void                           onSelTypeChange( int selType );
@@ -95,7 +95,7 @@ class SMESHGUI_EXPORT SMESHGUI_Add0DElemsOnAllNodesOp : public SMESHGUI_Selectio
   virtual void                   selectionDone();
   virtual SUIT_SelectionFilter*  createFilter( const int ) const;
 
- protected slots:
+ protected Q_SLOTS:
   virtual bool                   onApply();
   void                           onSelTypeChange(int);
   void                           onSetFilter();
index af99005e2e41d816486518f92fc80c5fb435b2ac..934be412f156ec524c51814646ff450417b25246 100644 (file)
@@ -116,11 +116,11 @@ private:
   
   QString                     myHelpFileName;
   
-protected slots:
+protected Q_SLOTS:
   virtual void                reject();
           void                onDiameterChanged();
 
-private slots:
+private Q_SLOTS:
   void                        ClickOnOk();
   void                        ClickOnApply();
   void                        ClickOnHelp();
index bc336e668722d1f6e07a1efedb054c4447eca7fb..a9aa2bfcd83e7caef6809b11ee41fc8c4d2860ec 100644 (file)
@@ -126,10 +126,10 @@ private:
   
   QString                     myHelpFileName;
   
-protected slots:
+protected Q_SLOTS:
   virtual void                reject();
 
-private slots:
+private Q_SLOTS:
   void                        onTextChange( const QString& );
   void                        onCellTextChange( int, int );
   void                        onReverse( int );
index a4fd91a49e55bb148bd166a41060b69b98849f2d..a9de8556d3a040c87e1f7f48422ae15e7b977e9c 100644 (file)
@@ -113,10 +113,10 @@ private:
 
   bool                    myIsApplyAndClose;
 
-protected slots:
+protected Q_SLOTS:
   virtual void            reject();
 
-private slots:
+private Q_SLOTS:
   void                    ClickOnOk();
   bool                    ClickOnApply();
   void                    ClickOnHelp();
index bab2458ed20826fac0629768a3c923f4bf2b7cdf..18496d98c9650fc8a17be6c2d9ddab13356f4478 100644 (file)
@@ -245,10 +245,10 @@ private:
 
   SMESH::Mode             CurrentMode;
 
-protected slots:
+protected Q_SLOTS:
   virtual void reject();
 
-public slots:
+public Q_SLOTS:
   void onModeAbsolute();
   void onModeRelative();
   void ClickOnNew();
index 1bf5e5c8b975283865894de8afd4f48782407be9..991270f675fcee89a2df897fb35d21c75909cd21 100644 (file)
@@ -465,7 +465,7 @@ namespace SMESH
     rows.clear();
     QList<QTableWidgetSelectionRange> selRanges = table->selectedRanges();
     QTableWidgetSelectionRange range;
-    foreach( range, selRanges )
+    Q_FOREACH( range, selRanges )
     {
       for ( int row = range.topRow(); row <= range.bottomRow(); ++row )
         if ( !rows.count( row ))
@@ -1225,7 +1225,7 @@ void SMESHGUI_BaseComputeOp::onPublishShape()
   QList<int> rows;
   SMESH::getSelectedRows( table(), rows );
   int row;
-  foreach ( row, rows )
+  Q_FOREACH ( row, rows )
   {
     int curSub = table()->item(row, COL_SHAPEID)->text().toInt();
     GEOM::GEOM_Object_wrap shape = SMESH::getSubShape( curSub, myMainShape );
@@ -1310,7 +1310,7 @@ void SMESHGUI_BaseComputeOp::onGroupOfBadMesh()
   QList<int> rows;
   SMESH::getSelectedRows( table(), rows );
   int row;
-  foreach ( row, rows )
+  Q_FOREACH ( row, rows )
   {
     bool hasBadMesh = ( !table()->item(row, COL_BAD_MESH)->text().isEmpty() );
     if ( hasBadMesh ) {
@@ -1352,7 +1352,7 @@ void SMESHGUI_BaseComputeOp::currentCellChanged()
   QList<int> rows;
   int nbSelected = SMESH::getSelectedRows( table(), rows );
   int row;
-  foreach ( row, rows )
+  Q_FOREACH ( row, rows )
   {
     bool hasData     = ( !table()->item( row, COL_SHAPE )->text().isEmpty() );
     bool isPublished = ( !table()->item( row, COL_PUBLISHED )->text().isEmpty() );
@@ -1394,7 +1394,7 @@ void SMESHGUI_BaseComputeOp::onPreviewShape()
 
     bool showOnly = true;
     int row;
-    foreach ( row, rows )
+    Q_FOREACH ( row, rows )
     {
       int curSub = table()->item( row, COL_SHAPEID )->text().toInt();
       if ( curSub > 0 ) {
index ad1bd8f985245931be0bfccaa75a2c516498083a..f099a3571b1927a69b6111627318199f16949b1b 100644 (file)
@@ -95,7 +95,7 @@ protected:
 
   virtual bool                   isValid( SUIT_Operation* theOp ) const;
     
-protected slots:
+protected Q_SLOTS:
   virtual bool                   onApply();
   void                           onPreviewShape();
   void                           onPublishShape();
@@ -133,7 +133,7 @@ public:
 protected:
   virtual void                   startOperation();
 
-protected slots:
+protected Q_SLOTS:
 };
 
 class SMESHGUI_MeshOrderMgr;
@@ -164,10 +164,10 @@ protected:
 
   virtual void                   initDialog();
 
-protected slots:
+protected Q_SLOTS:
   virtual void                   onCancel();
 
-private slots:
+private Q_SLOTS:
   void                           onPreview();
   void                           onCompute();
 
@@ -200,7 +200,7 @@ public:
 protected:
   virtual void                   startOperation();
 
-protected slots:
+protected Q_SLOTS:
 };
 
 /*!
@@ -256,7 +256,7 @@ public:
   
   SMESHGUI_MeshOrderBox*       getMeshOrderBox() const;
 
-signals:
+Q_SIGNALS:
   void                         preview();
 
 private:
@@ -310,7 +310,7 @@ protected:
   void timerEvent(QTimerEvent *timer);
   void closeEvent(QCloseEvent *event);
   
-private slots:
+private Q_SLOTS:
   void onCancel();
   
 private:
index 59855bb494c0266f13a2df482356ba0ef5180d95..a5567408c491910a635f5010ddfeaf82a6304e8a 100644 (file)
@@ -170,5 +170,5 @@ void SMESHGUI_ConvToQuadDlg::SetEnabledRB( const int idx, const bool theCheck )
 
   myMedNdsOnGeom->setEnabled( theCheck );
 
-  emit onClicked( myBG->checkedId() );
+  Q_EMIT onClicked( myBG->checkedId() );
 }
index d3b461fe598be27c4e83ff0b3afefd78a0af4a3d..86302f5725194aa09c9380795be4f772811e9a57 100644 (file)
@@ -58,7 +58,7 @@ public:
   bool          isWarningShown();
   bool          IsBiQuadratic() const;
 
-signals:
+Q_SIGNALS:
   void          onClicked( int );
 
 private:
index 023789c6675f95423c6183a4585e05b9d3b061c9..fee6acbacaee54676d059a4d5ab7fdb05d62cad4 100644 (file)
@@ -59,7 +59,7 @@ protected:
   MeshDestinationType            DestinationMesh( const SMESH::SMESH_IDSource_var& ,
                                                   bool* isMixOrder = 0) const;
 
-protected slots:
+protected Q_SLOTS:
   virtual bool                   onApply();
   void                           ConnectRadioButtons( int );
   void                           onWarningWinFinished();
index a81a37669c1887a931600c5ae084fd616a62b699..9f2116464530f86e6301bb2b05da3b4b634fad65 100644 (file)
@@ -112,10 +112,10 @@ private:
 
   bool                   myIsApplyAndClose;
 
-protected slots:
+protected Q_SLOTS:
   virtual void           reject();
 
-private slots:
+private Q_SLOTS:
   void                   ClickOnOk();
   bool                   ClickOnApply();
   void                   ClickOnHelp();
index 34771755d5ca05bc1724e060442c09f4ea933f83..9cfeb2cba65d2cc89aa4d4603c2310b36eaa203f 100755 (executable)
@@ -418,7 +418,7 @@ void SMESHGUI_CreatePatternDlg::onSave()
       disconnect( mySMESHGUI, 0, this, 0 );
       mySMESHGUI->ResetState();
       accept();
-      emit NewPattern();
+      Q_EMIT NewPattern();
     }
   } 
   catch ( const SALOME::SALOME_Exception& S_ex ) {
@@ -471,7 +471,7 @@ void SMESHGUI_CreatePatternDlg::onOk()
       disconnect( mySMESHGUI, 0, this, 0 );
       mySMESHGUI->ResetState();
       accept();
-      emit NewPattern();
+      Q_EMIT NewPattern();
     }
   } 
   catch ( const SALOME::SALOME_Exception& S_ex ) {
@@ -493,7 +493,7 @@ void SMESHGUI_CreatePatternDlg::reject()
   disconnect( mySMESHGUI, 0, this, 0 );
   mySMESHGUI->ResetState();
   QDialog::reject();
-  emit Close();
+  Q_EMIT Close();
 }
 
 //=================================================================================
index 515c230d10df5517cfcc0969a077d9eb2ec1d5ca..415223eb2e0cea2efa39a09cbc751032a9497b60 100755 (executable)
@@ -69,7 +69,7 @@ public:
   SMESH::SMESH_Pattern_ptr GetPattern();
   void                     SetMesh( SMESH::SMESH_Mesh_ptr );
 
-signals:
+Q_SIGNALS:
   void                     NewPattern();
   void                     Close();
 
@@ -77,7 +77,7 @@ private:
   void                     enterEvent( QEvent* );
   void                     keyPressEvent( QKeyEvent* );
  
-private slots:
+private Q_SLOTS:
   void                     onOk();
   void                     onSave();
   void                     reject();
index 73fac9a8451add34f314b5100eb126f264774504..3ae927ebe3e1d45a688c76fca6fa87ba85d2eb13 100644 (file)
@@ -1087,7 +1087,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::onRemove()
 
   if ( selItems.count() > 0 ) myNbOkElements = 1;
 
-  foreach( anItem, selItems )
+  Q_FOREACH( anItem, selItems )
     delete anItem;
 
   RemoveButton->setEnabled( myFacesByNodes->count() > 0 );
@@ -1113,7 +1113,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::onListSelectionChanged()
 
   QList<QListWidgetItem*> selItems = myFacesByNodes->selectedItems();
   QListWidgetItem* anItem;
-  foreach( anItem, selItems ) {
+  Q_FOREACH( anItem, selItems ) {
     QStringList anIds = anItem->text().split( " ", QString::SkipEmptyParts );
     for (QStringList::iterator it = anIds.begin(); it != anIds.end(); ++it)
       aIndexes.Add((*it).toInt());
index 4f6de47b981acb7ebf9f628558a66d61d2ea8920..7551de9da907be7ef2fee0769b5b8753374500db 100644 (file)
@@ -119,14 +119,14 @@ private:
 
   QString                  myHelpFileName;
        
-public slots:
+public Q_SLOTS:
   void                     onAdd();
   void                     onRemove();
 
-protected slots:
+protected Q_SLOTS:
   virtual void             reject();
 
-private slots:
+private Q_SLOTS:
   void                     ConstructorsClicked( int );
   void                     ClickOnPreview( bool );
   void                     ClickOnOk();
index e9f3f2ade945e0df3254450c9d5a35804cf9210c..719574a5e2adbac96c6524a10ca179f536f4d4bf 100644 (file)
@@ -62,10 +62,10 @@ private:
   void                    enterEvent( QEvent* );
   void                    keyPressEvent( QKeyEvent* );
 
-protected slots:
+protected Q_SLOTS:
   virtual void            reject();
 
-private slots:
+private Q_SLOTS:
   void                    onOk();
   bool                    onApply();
   void                    onHelp();
index 5bf5247d292f9e606bbe6e4a60a2944321b5a6ae..6e68445237bef6f8a142d11a4a14371a1f44c660 100644 (file)
@@ -68,10 +68,10 @@ private:
   void                    enterEvent( QEvent* );
   void                    keyPressEvent( QKeyEvent* );
   
-protected slots:
+protected Q_SLOTS:
   virtual void            reject();
 
-private slots:
+private Q_SLOTS:
   void                    onConstructorsClicked( int );
  
   void                    onOk();
index 8c2d0ef51f2fecd701ea4d4d802207f4bd03afcc..34fb644ea31afc486f00f9bfc172a881ca8ebee5 100644 (file)
@@ -1096,7 +1096,7 @@ void SMESHGUI_ExtrusionAlongPathDlg::OnAngleRemoved()
 {
   QList<QListWidgetItem*> aList = AnglesList->selectedItems();
   QListWidgetItem* anItem;
-  foreach(anItem, aList) {
+  Q_FOREACH(anItem, aList) {
     myAnglesList.removeAt(AnglesList->row(anItem));
     delete anItem;
   }
index bedc111efa03cdcd1b1373ea4ce2e6f7a0d3ac63..784f66009d2127c2d4ae727916a0188a803d1b97 100644 (file)
@@ -146,11 +146,11 @@ private:
   QPushButton*              myFilterBtn;
   SMESHGUI_FilterDlg*       myFilterDlg;
    
-protected slots:
+protected Q_SLOTS:
   void                      reject();
   virtual void              onDisplaySimulation( bool );
 
-private slots:
+private Q_SLOTS:
   void                      ConstructorsClicked( int );
   void                      ClickOnOk();
   bool                      ClickOnApply();
index c3acc56d0c3f57e3c2e3cefef9befe2aadeed81b..f3018569ecc228e8a38d74fd2a48bffb1e0c1fc7 100644 (file)
@@ -143,11 +143,11 @@ private:
   QPushButton*                     myFilterBtn;
   SMESHGUI_FilterDlg*              myFilterDlg;
 
-protected slots:
+protected Q_SLOTS:
   virtual void                    onDisplaySimulation( bool );
   virtual void                    reject();
    
-private slots:
+private Q_SLOTS:
   void                            ConstructorsClicked( int );
   void                            CheckIsEnable();
   void                            ClickOnOk();
index feaa8341514caeece262bda3e0847b382e10a1db..de121604c839274afcfd8c366e7c010e56a2def2 100644 (file)
@@ -48,7 +48,7 @@ class SMESHGUI_EXPORT SMESHGUI_FieldSelectorWdg : public QGroupBox
 
   bool GetSelectedFeilds();
 
- private slots:
+ private Q_SLOTS:
   
   void onItemCheck(QTreeWidgetItem * item, int column);
 
index 8409afa4a0f54b61bce997949ef38269d7e850d2..23f8439797a7c7b6bba7c1a817c3b4ff0147590e 100755 (executable)
@@ -846,7 +846,7 @@ QList<int> SMESHGUI_FilterTable::Table::selectedRows()
   QTableWidgetItem* anItem;
   QList<int> rows;
 
-  foreach( anItem, selItems ) {
+  Q_FOREACH( anItem, selItems ) {
     int r = row( anItem );
     if ( !rows.contains( r ) ) rows.append( r );
   }
@@ -1090,7 +1090,7 @@ void SMESHGUI_FilterTable::onEntityType (int theType)
     return;
 
   myIsValid = true;
-  emit NeedValidation();
+  Q_EMIT NeedValidation();
   if (!myIsValid)
   {
     myEntityTypeGrp->button(myEntityType)->setChecked(true);
@@ -1113,7 +1113,7 @@ void SMESHGUI_FilterTable::onEntityType (int theType)
   myTables[ myEntityType ]->updateGeometry();
   adjustSize();
 
-  emit EntityTypeChanged(theType);
+  Q_EMIT EntityTypeChanged(theType);
 }
 
 //=======================================================================
@@ -1428,7 +1428,7 @@ void SMESHGUI_FilterTable::SetCriterion (const int                       theRow,
     myAddWidgets[ anItem ]->SetDouble(AdditionalWidget::Tolerance, theCriterion.Tolerance);
   }
 
-  emit CriterionChanged(theRow, aType);
+  Q_EMIT CriterionChanged(theRow, aType);
 }
 
 //=======================================================================
@@ -1527,7 +1527,7 @@ void SMESHGUI_FilterTable::onRemoveBtn()
   
   QList<int> aRows = aTable->selectedRows(); // already sorted
   int i;
-  foreach( i, aRows )
+  Q_FOREACH( i, aRows )
   {
     removeAdditionalWidget(aTable, i);
     aTable->removeRow(i);
@@ -1662,7 +1662,7 @@ void SMESHGUI_FilterTable::onCurrentChanged (int theRow, int theCol)
 {
   if( !myIsLocked )
     updateAdditionalWidget();
-  emit CurrentChanged(theRow, theCol);
+  Q_EMIT CurrentChanged(theRow, theCol);
 }
 
 //=======================================================================
@@ -1982,7 +1982,7 @@ void SMESHGUI_FilterTable::onCriterionChanged (const int row, const int col, con
 
   updateAdditionalWidget();
 
-  emit CriterionChanged(row, entityType);
+  Q_EMIT CriterionChanged(row, entityType);
 }
 
 //=======================================================================
@@ -1995,7 +1995,7 @@ void SMESHGUI_FilterTable::onCriterionChanged (int row, int col)
   if( col == 0 )
     onCriterionChanged(row, col, -1);
   else if ( col == 2 )
-    emit ThresholdChanged(row, GetType());
+       Q_EMIT ThresholdChanged(row, GetType());
 }
 
 //=======================================================================
@@ -2943,7 +2943,7 @@ void SMESHGUI_FilterDlg::onOk()
     disconnect(mySelectionMgr, 0, this, 0);
     mySMESHGUI->ResetState();
     accept();
-    emit Accepted();
+    Q_EMIT Accepted();
   }
 }
 
@@ -3100,7 +3100,7 @@ void SMESHGUI_FilterDlg::setIdsToWg (QWidget* theWg, const QList<int>& theIds)
     return;
 
   QStringList aStrList;
-  foreach(int id, theIds)
+  Q_FOREACH(int id, theIds)
     aStrList << QString::number(id);
 
   if (theWg->inherits("QListWidget"))
index da3358a8a88053192a93671e9f648bf725780325..24557691aebc352b56adbf445696328d7904ce93 100755 (executable)
@@ -135,7 +135,7 @@ public:
 
   void                      Update();
 
-signals:
+Q_SIGNALS:
   void                      CopyFromClicked();
   void                      AddToClicked();
   void                      EntityTypeChanged( const int );
@@ -144,7 +144,7 @@ signals:
   void                      ThresholdChanged( const int, const int );
   void                      CurrentChanged( int, int );
 
-private slots:
+private Q_SLOTS:
   void                      onAddBtn();
   void                      onInsertBtn();
   void                      onRemoveBtn();
@@ -237,14 +237,14 @@ public:
   void                      SetFilter(SMESH::Filter_var filter, int type);
   void                      UnRegisterFilters();
 
-signals:
+Q_SIGNALS:
 
   void                      Accepted();
 
-protected slots:
+protected Q_SLOTS:
   virtual void              reject();
 
-private slots:
+private Q_SLOTS:
 
   void                      onOk();
   bool                      onApply();
index cc5d1f7ce6b32f9ef4fadde6c456c26b95556992..14f1a6b49203f08bdbcf8d10d21c73e63bc4ffdc 100644 (file)
@@ -80,10 +80,10 @@ private:
   void                        enterEvent( QEvent* );            
   void                        keyPressEvent( QKeyEvent* );
   
-protected slots:
+protected Q_SLOTS:
   virtual void                reject();
 
-private slots:
+private Q_SLOTS:
   void                        onOk();
   bool                        onApply();
   void                        onHelp();
index 12dad3e0fcc1d0f99f1bbbf8005aaa222b4dc73d..d8b62617d63bc85133513615429db0a1d8301286 100644 (file)
@@ -367,7 +367,7 @@ void SMESHGUI_FindElemByPointOp::onElemTypeChange(int index)
 
 void SMESHGUI_FindElemByPointDlg::reject()
 {
-  emit rejectedDlg();
+  Q_EMIT rejectedDlg();
   QtxDialog::reject();
 }
 
index 568ae629559129134a70c0221cca6d5d8d3fda10..5e625873663e1e4fb581e92f133f1792d2b5da38 100644 (file)
@@ -56,12 +56,12 @@ protected:
 
   virtual void                   activateSelection();
 
-protected slots:
+protected Q_SLOTS:
 
   virtual void                   onFind();
   virtual bool                   onApply();
 
-private slots:
+private Q_SLOTS:
 
   void                           onRejectedDlg();
   void                           onSelectionDone();
@@ -107,13 +107,13 @@ private:
 
   friend class SMESHGUI_FindElemByPointOp;
 
-signals:
+Q_SIGNALS:
   void                           rejectedDlg();
 
-protected slots:
+protected Q_SLOTS:
   virtual void                   reject();
 
-private slots:
+private Q_SLOTS:
 //void                          ButtonToggled( bool );
 };
 
index 60095ebe2a7651a7ec543801ba34316e50278c05..d83e45340286823838169b0c04b77794e04906d6 100644 (file)
@@ -1231,7 +1231,7 @@ void SMESHGUI_GroupDlg::onListSelectionChanged()
     TColStd_MapOfInteger aIndexes;
     QList<QListWidgetItem*> selItems = myElements->selectedItems();
     QListWidgetItem* anItem;
-    foreach(anItem, selItems) aIndexes.Add(anItem->text().toInt());
+    Q_FOREACH(anItem, selItems) aIndexes.Add(anItem->text().toInt());
     mySelector->AddOrRemoveIndex(myActorsList.first()->getIO(), aIndexes, false);
     SALOME_ListIO aList;
     aList.Append(myActorsList.first()->getIO());
@@ -1527,13 +1527,13 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
         QStringList anElements = aListStr.split( " ", QString::SkipEmptyParts);
         for (QStringList::iterator it = anElements.begin(); it != anElements.end(); ++it) {
           QList<QListWidgetItem*> found = myElements->findItems(*it, Qt::MatchExactly);
-          foreach(anItem, found)
+          Q_FOREACH(anItem, found)
             if (!anItem->isSelected())
               listItemsToSel.push_back(anItem);
         }
         bool blocked = myElements->signalsBlocked();
         myElements->blockSignals(true);
-        foreach(anItem, listItemsToSel) anItem->setSelected(true);
+        Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
         myElements->blockSignals(blocked);
         onListSelectionChanged();
         listItemsToSel.clear();
@@ -1876,14 +1876,14 @@ void SMESHGUI_GroupDlg::onAdd()
             listItemsToSel.push_back(anItem);
         }
         else {
-          foreach(anItem, found)
+               Q_FOREACH(anItem, found)
             if (!anItem->isSelected())
               listItemsToSel.push_back(anItem);
         }
       }
       bool blocked = myElements->signalsBlocked();
       myElements->blockSignals(true);
-      foreach(anItem, listItemsToSel) anItem->setSelected(true);
+      Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
       myElements->blockSignals(blocked);
       onListSelectionChanged();
       listItemsToSel.clear();
@@ -1914,14 +1914,14 @@ void SMESHGUI_GroupDlg::onAdd()
                   listItemsToSel.push_back(anItem);
               }
               else {
-                foreach(anItem, found)
+                Q_FOREACH(anItem, found)
                   if (!anItem->isSelected())
                     listItemsToSel.push_back(anItem);
               }
             }
             bool blocked = myElements->signalsBlocked();
             myElements->blockSignals(true);
-            foreach(anItem, listItemsToSel) anItem->setSelected(true);
+            Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
             myElements->blockSignals(blocked);
             onListSelectionChanged();
             listItemsToSel.clear();
@@ -1960,14 +1960,14 @@ void SMESHGUI_GroupDlg::onAdd()
                 listItemsToSel.push_back(anItem);
             }
             else {
-              foreach(anItem, found)
+              Q_FOREACH(anItem, found)
                 if (!anItem->isSelected())
                   listItemsToSel.push_back(anItem);
             }
           }
           bool blocked = myElements->signalsBlocked();
           myElements->blockSignals(true);
-          foreach(anItem, listItemsToSel) anItem->setSelected(true);
+          Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
           myElements->blockSignals(blocked);
           onListSelectionChanged();
           listItemsToSel.clear();
@@ -2018,14 +2018,14 @@ void SMESHGUI_GroupDlg::onAdd()
             listItemsToSel.push_back(anItem);
         }
         else {
-          foreach(anItem, found)
+          Q_FOREACH(anItem, found)
             if (!anItem->isSelected())
               listItemsToSel.push_back(anItem);
         }
       }
       bool blocked = myElements->signalsBlocked();
       myElements->blockSignals(true);
-      foreach(anItem, listItemsToSel) anItem->setSelected(true);
+      Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
       myElements->blockSignals(blocked);
       onListSelectionChanged();
       listItemsToSel.clear();
@@ -2054,7 +2054,7 @@ void SMESHGUI_GroupDlg::onRemove()
   if (myCurrentLineEdit == 0) {
     QList<QListWidgetItem*> selItems = myElements->selectedItems();
     QListWidgetItem* item;
-    foreach(item, selItems) delete item;
+    Q_FOREACH(item, selItems) delete item;
   } else {
     SALOME_ListIO aList;
     mySelectionMgr->selectedObjects( aList );
@@ -2092,7 +2092,7 @@ void SMESHGUI_GroupDlg::onRemove()
                   QList<QListWidgetItem*> found = 
                     myElements->findItems(QString::number(anElements[i]), Qt::MatchExactly);
                   QListWidgetItem* anItem;
-                  foreach(anItem, found) delete anItem;
+                  Q_FOREACH(anItem, found) delete anItem;
                 }
               }
               catch (const SALOME::SALOME_Exception& ex) {
@@ -2107,7 +2107,7 @@ void SMESHGUI_GroupDlg::onRemove()
                   QList<QListWidgetItem*> found = 
                     myElements->findItems(QString::number(anElements[i]), Qt::MatchExactly);
                   QListWidgetItem* anItem;
-                  foreach(anItem, found) delete anItem;
+                  Q_FOREACH(anItem, found) delete anItem;
                 }
               }
               catch (const SALOME::SALOME_Exception& ex) {
@@ -2136,7 +2136,7 @@ void SMESHGUI_GroupDlg::onRemove()
               QList<QListWidgetItem*> found = 
                 myElements->findItems(QString::number(anElements[i]), Qt::MatchExactly);
               QListWidgetItem* anItem;
-              foreach(anItem, found) delete anItem;
+              Q_FOREACH(anItem, found) delete anItem;
             }
           }
         }
@@ -2185,7 +2185,7 @@ void SMESHGUI_GroupDlg::onSort()
     }
     bool blocked = myElements->signalsBlocked();
     myElements->blockSignals(true);
-    foreach(anItem, listItemsToSel) anItem->setSelected(true);
+    Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
     myElements->blockSignals(blocked);
     listItemsToSel.clear();
     myIsBusy = false;
index 8deca497685f11ad8575ebee2d00ff75cd9c3b1e..019778446b4c90ffbc72cfa1b4da16a5551c8200 100644 (file)
@@ -81,14 +81,14 @@ public:
   
   static QString                GetDefaultName( const QString& );
   
-public slots:
+public Q_SLOTS:
   void onAdd();
   void onRemove();
 
-protected slots:
+protected Q_SLOTS:
   virtual void                  reject();
 
-private slots:
+private Q_SLOTS:
   void                          onTypeChanged( int );
   void                          onGrpTypeChanged( int );
   void                          onColorChanged( QColor );
index 2fa69da68cf099c2fd1231c0e231f921bcf21eb2..24d0095d3fda31e7302863b35fb84bf278840d8f 100644 (file)
@@ -50,7 +50,7 @@ public:
     virtual LightApp_Dialog*    dlg() const;  
     static QString              GetDefaultName(const QString& theOperation);
 
-public slots:
+public Q_SLOTS:
 
 protected:
   
@@ -59,7 +59,7 @@ protected:
   virtual SUIT_SelectionFilter* createFilter( const int ) const;
   //virtual bool                  isValid( SUIT_Operation* ) const;
 
-private slots:
+private Q_SLOTS:
 
     bool                        onApply();
     void                        onButtonClick();
@@ -96,7 +96,7 @@ public:
     SMESHGUI_GroupOnShapeDlg();
     virtual ~SMESHGUI_GroupOnShapeDlg();
 
-public slots:
+public Q_SLOTS:
 
   void                          updateButtons();
   void                          init();
index db086cd79e45926ab53e307d65541f5c251b94bb..6ba4cfbad371c88fa6fa90877b7339f50aea5e85 100644 (file)
@@ -65,7 +65,7 @@ public:
 
   void                      Init();
 
-protected slots:
+protected Q_SLOTS:
 
   virtual bool              onApply();
   virtual void              onSelectionDone();
@@ -95,10 +95,10 @@ private:
   void                      enterEvent( QEvent* );            
   void                      keyPressEvent( QKeyEvent* );
   
-protected slots:
+protected Q_SLOTS:
   virtual void              reject();
 
-private slots:
+private Q_SLOTS:
   void                      onOk();
   void                      onHelp();
 
@@ -141,7 +141,7 @@ public:
   SMESHGUI_UnionGroupsDlg( SMESHGUI* );
   virtual ~SMESHGUI_UnionGroupsDlg();
 
-protected slots:
+protected Q_SLOTS:
   virtual bool                      onApply();
   virtual void                      onSelectionDone();
 
@@ -167,7 +167,7 @@ public:
   SMESHGUI_IntersectGroupsDlg( SMESHGUI* );
   virtual ~SMESHGUI_IntersectGroupsDlg();
 
-protected slots:
+protected Q_SLOTS:
   virtual bool                      onApply();
   virtual void                      onSelectionDone();
 
@@ -193,7 +193,7 @@ public:
   SMESHGUI_CutGroupsDlg( SMESHGUI* );
   virtual ~SMESHGUI_CutGroupsDlg();
 
-protected slots:
+protected Q_SLOTS:
   virtual bool                      onApply();
   virtual void                      onSelectionDone();
 
@@ -230,7 +230,7 @@ public:
 protected:
   virtual void                      reset();
 
-protected slots:
+protected Q_SLOTS:
   virtual bool                      onApply();
   virtual void                      onSelectionDone();
 
index af1377aba7ebc70904b2d6e9fea9948d170433a9..a06d568290813fd4f4e81f7a227e433246027b1e 100644 (file)
@@ -149,7 +149,7 @@ void SMESHGUI_GenericHypothesisCreator::editHypothesis( SMESH::SMESH_Hypothesis_
     Dlg->resize( Dlg->minimumSizeHint() );
   }
   else {
-    emit finished( QDialog::Accepted );
+    Q_EMIT finished( QDialog::Accepted );
         delete myDlg;
   }
 }
@@ -309,7 +309,7 @@ void SMESHGUI_GenericHypothesisCreator::onDialogFinished( int result )
   myDlg->close();
   //delete myDlg; since WA_DeleteOnClose==true
   myDlg = 0;
-  emit finished( result );
+  Q_EMIT finished( result );
 }
 
 bool SMESHGUI_GenericHypothesisCreator::stdParams( ListOfStdParams& ) const
index fcadee8ddaf1942e4d7bdc0b31c393cc0e5c007e..7e9c5c1d9714d8d4019bbfef387b95c36f996419 100644 (file)
@@ -72,7 +72,7 @@ public:
   QString                      getMainShapeEntry() const { return myMainShapeEntry; }
   void                         setMainShapeEntry( const QString& theEntry ) { myMainShapeEntry = theEntry; }
 
-signals:
+Q_SIGNALS:
   void                         finished( int );
 
 protected:
@@ -120,10 +120,10 @@ protected:
   virtual QPixmap              icon() const;
   virtual QString              type() const;
 
-protected slots:
+protected Q_SLOTS:
   virtual void                 onValueChanged();
 
-private slots:
+private Q_SLOTS:
   virtual void                 onDialogFinished( int );
 
 private:
@@ -154,7 +154,7 @@ public:
   void setCustomFrame( QFrame* );
   void setType( const QString& );
 
-protected slots:
+protected Q_SLOTS:
   virtual void accept();
   virtual void reject();
   void onHelp(); 
index 79867d7912ab0bfbe532d13bdeabb8b05f98d7d8..b4e176875f4cdb845ff5e465c61720f8481fac3f 100644 (file)
@@ -65,7 +65,7 @@ public:
 
   bool                 copySource() const;
 
-private slots:
+private Q_SLOTS:
   void                 onTargetChanged();
   void                 onGroupChecked();
 
@@ -103,7 +103,7 @@ protected:
   virtual SUIT_SelectionFilter*      createFilter( const int ) const;
   bool                               isValid( QString& ) const;
 
-protected slots:
+protected Q_SLOTS:
   virtual bool                       onApply();
   void                               onModeChanged();
 
index 24be56a428fabd94d59e307bd488096a05851df8..e3f13bebe332f9600cca19d9e7fee4b413369bd2 100644 (file)
@@ -64,10 +64,10 @@ protected:
 
   bool                           isValid( QString& );
 
-protected slots:
+protected Q_SLOTS:
   virtual bool                   onApply();
 
-private slots:
+private Q_SLOTS:
   void                           onSelectionDone();
   void                           redisplayPreview();
   void                           onTextChange( const QString& );
@@ -131,7 +131,7 @@ private:
 
   friend class SMESHGUI_MakeNodeAtPointOp;
 
-private slots:
+private Q_SLOTS:
   void                          ButtonToggled( bool );
   void                          ConstructorsClicked( int );
 };
index e00937aff8a58015ab84f83d1597541fb177a03c..a0055e3100ab47e6670a02d991eb8b4e893a3ef4 100644 (file)
@@ -1003,7 +1003,7 @@ void SMESHGUI_BoundingBox::sourceEdited()
       if ( !mySource->isReadOnly() )
         myIDs = mySource->text();
       QStringList ids = myIDs.split( " ", QString::SkipEmptyParts );
-      foreach ( QString id, ids )
+      Q_FOREACH ( QString id, ids )
         ID.Add( id.trimmed().toLong() );
       selector->AddOrRemoveIndex( IO, ID, false );
     }
index 964f7418dbf740d99044507b027dddfff0c605d9..2c8aef3e7a738c3d6bcbb206c90e9853ed3e20eb 100644 (file)
@@ -62,7 +62,7 @@ private:
   void displayPreview();
   void createPreview( double, double, double, double, double, double );
 
-private slots:
+private Q_SLOTS:
   void selectionChanged();
   void firstChanged();
   void secondChanged();
@@ -108,7 +108,7 @@ private:
   void displayPreview();
   void createPreview( double, double, double, double, double, double );
 
-private slots:
+private Q_SLOTS:
   void selectionChanged();
   void sourceChanged();
   void sourceEdited();
@@ -152,7 +152,7 @@ public:
   void updateSelection();
   void deactivate();
 
-private slots:
+private Q_SLOTS:
   void selectionChanged();
   void modeChanged( int);
   void compute();
@@ -192,7 +192,7 @@ protected:
   void keyPressEvent( QKeyEvent* );
   void enterEvent( QEvent* );
 
-private slots:
+private Q_SLOTS:
   void help();
   void updateSelection();
   void activate();
index 046bd063c7f71b280a438b4cfed5e9801ae9771e..428fe0cdad26d0902d03e7c60fba4143a09cc0b9 100644 (file)
@@ -862,7 +862,7 @@ void SMESHGUI_MergeDlg::onSelectGroup()
 
   ListEdit->clear();
 
-  foreach(anItem, selItems) {
+  Q_FOREACH(anItem, selItems) {
     aListIds = anItem->text().split(" ", QString::SkipEmptyParts);
     for (int i = 0; i < aListIds.count(); i++)
       anIndices.Add(aListIds[i].toInt());
@@ -921,7 +921,7 @@ void SMESHGUI_MergeDlg::onSelectElementFromGroup()
   QList<QListWidgetItem*> selItems = ListEdit->selectedItems();
   QListWidgetItem* anItem;
 
-  foreach(anItem, selItems)
+  Q_FOREACH(anItem, selItems)
     anIndices.Add(anItem->text().toInt());
 
   SetFirstButton->setEnabled(selItems.count() == 1);
@@ -991,7 +991,7 @@ void SMESHGUI_MergeDlg::onRemoveGroup()
   QList<QListWidgetItem*> selItems = ListCoincident->selectedItems();
   QListWidgetItem* anItem;
 
-  foreach(anItem, selItems)
+  Q_FOREACH(anItem, selItems)
     delete anItem;
 
   ListEdit->clear();
@@ -1034,7 +1034,7 @@ void SMESHGUI_MergeDlg::onAddElement()
     }
     else {
       QListWidgetItem* anItem;
-      foreach(anItem, found) anItem->setSelected(true);
+      Q_FOREACH(anItem, found) anItem->setSelected(true);
     }
   }
 
@@ -1055,7 +1055,7 @@ void SMESHGUI_MergeDlg::onRemoveElement()
   QList<QListWidgetItem*> selItems = ListEdit->selectedItems();
   QListWidgetItem* anItem;
 
-  foreach(anItem, selItems)
+  Q_FOREACH(anItem, selItems)
     delete anItem;
   
   myIsBusy = false;
@@ -1080,7 +1080,7 @@ void SMESHGUI_MergeDlg::onSetFirst()
   QList<QListWidgetItem*> selItems = ListEdit->selectedItems();
   QListWidgetItem* anItem;
   
-  foreach(anItem, selItems) {
+  Q_FOREACH(anItem, selItems) {
     ListEdit->takeItem(ListEdit->row(anItem));
     ListEdit->insertItem(0, anItem);
   }
index fed3a1865c3557d6f1ec50ea4e5e0c7f2f8e0b10..dd79343dea2fdfe49e7798f4ab5ea2021356d0a6 100644 (file)
@@ -149,10 +149,10 @@ private:
   QString                   myEntry;
   GrpList                   myGroups;
 
-protected slots:
+protected Q_SLOTS:
   virtual void              reject();
 
- private slots:
+ private Q_SLOTS:
   void                      ClickOnOk();
   bool                      ClickOnApply();
   void                      ClickOnHelp();
index f3a2719d41cfbbcb6e44b4b8f11b9ffb1f95a682..3a6313db3afcdcd403804a9d9ba2fc9f8c0f7a4f 100644 (file)
@@ -403,7 +403,7 @@ void SMESHGUI_MeshTab::onCreateHyp()
 
   QAction* a = aPopup.exec( QCursor::pos() );
   if ( a )
-    emit createHyp( isMainHyp ? MainHyp : AddHyp, actions.indexOf( a ) );
+    Q_EMIT createHyp( isMainHyp ? MainHyp : AddHyp, actions.indexOf( a ) );
 }
 
 //================================================================================
@@ -421,7 +421,7 @@ void SMESHGUI_MeshTab::onEditHyp()
   for ( ; aHypType <= MoreAddHyp; ++aHypType )
     if ( aSender == myEditHypBtn[ aHypType ])
       break;
-  emit editHyp( Min( aHypType, AddHyp ),
+  Q_EMIT editHyp( Min( aHypType, AddHyp ),
                 getCurrentIndex( aHypType ) - 1 );  // - 1 because there is NONE on the top
 }
 
@@ -439,7 +439,7 @@ void SMESHGUI_MeshTab::onHyp( int theIndex )
   const QObject* aSender = sender();
   if ( aSender == myHypCombo[ Algo ] )
   {
-    emit selectAlgo( theIndex - 1 ); // - 1 because there is NONE on the top
+    Q_EMIT selectAlgo( theIndex - 1 ); // - 1 because there is NONE on the top
   }
   else if ( aSender == myAddHypList )
   {
@@ -719,7 +719,7 @@ void SMESHGUI_MeshDlg::setHypoSets( const QStringList& theSets )
 
 void SMESHGUI_MeshDlg::onHypoSetPopup( QAction* a )
 {
-  emit hypoSet( a->text() );
+  Q_EMIT hypoSet( a->text() );
 }
   
 //================================================================================
@@ -798,7 +798,7 @@ void SMESHGUI_MeshDlg::onGeomSelectionButton(bool isBtnOn)
 
 void SMESHGUI_MeshDlg::onGeomPopup( QAction* a )
 {
-  emit geomSelectionByMesh( a->data().toInt() == GEOM_BY_MESH_INDEX );
+  Q_EMIT geomSelectionByMesh( a->data().toInt() == GEOM_BY_MESH_INDEX );
 }
 
 int SMESHGUI_MeshDlg::getActiveObject()
@@ -829,7 +829,7 @@ void SMESHGUI_MeshDlg::setAvailableMeshType( const QStringList& theTypeMesh )
 //================================================================================
 void SMESHGUI_MeshDlg::onChangedMeshType( const int isIndex )
 {
-  emit selectMeshType( Dim3D - myTabWg->currentIndex(), isIndex );
+  Q_EMIT selectMeshType( Dim3D - myTabWg->currentIndex(), isIndex );
 }
 //================================================================================
 /*!
index f8d8b108e1d7db746ade6e4717979c321953389d..fe654f5467409da9ddfe9ae9c6196a69ac7cc525 100644 (file)
@@ -79,12 +79,12 @@ public:
   int                          currentMeshType();
   void                         setCurrentMeshType( const int );
 
-signals:
+Q_SIGNALS:
   void                         hypoSet( const QString& );
   void                         geomSelectionByMesh( bool );
   void                         selectMeshType( const int, const int );
 
-private slots:  
+private Q_SLOTS:
   void                         onHypoSetPopup( QAction* );
   void                         onGeomPopup( QAction* );
   void                         onGeomSelectionButton( bool );
@@ -132,7 +132,7 @@ public:
   int                          nbAddHypTypes() const;
   void                         reset();
 
-signals:  
+Q_SIGNALS:
   void                         createHyp( const int, const int );
   //!< Emited when "Create hypothesis" button clicked
   void                         editHyp( const int, const int );
@@ -140,7 +140,7 @@ signals:
   void                         selectAlgo( const int );
   //!< Emited when an algorithm is selected
   
-private slots:  
+private Q_SLOTS:
   void                         onCreateHyp();  
   void                         onEditHyp();
   void                         onHyp( int );
index 2dca23bbacc452bd8c4466bf80eecfe6629d2b91..94401baed4818dcd2bd2923daadf108992a06ada 100644 (file)
@@ -792,7 +792,7 @@ void SMESHGUI_MeshInfo::setFieldsVisible( int start, int end, bool on )
   end   = qMin( end, (int)iElementsEnd );
   for ( int i = start; i < end; i++ ) {
     wlist wl = myWidgets[i];
-    foreach ( QWidget* w, wl ) w->setVisible( on );
+    Q_FOREACH ( QWidget* w, wl ) w->setVisible( on );
   }
 }
 
@@ -1020,7 +1020,7 @@ QString SMESHGUI_ElemInfo::formatConnectivity( Connectivity connectivity, int ty
   if ( connectivity.contains( type ) ) {
     QList<int> elements = connectivity[ type ];
     qSort( elements );
-    foreach( int id, elements )
+    Q_FOREACH( int id, elements )
       str << QString::number( id );
   }
   return str.join( " " );
@@ -1106,7 +1106,7 @@ void SMESHGUI_SimpleElemInfo::information( const QList<long>& ids )
     int cprecision = -1;
     if ( SMESHGUI::resourceMgr()->booleanValue( "SMESH", "use_precision", false ) ) 
       cprecision = SMESHGUI::resourceMgr()->integerValue( "SMESH", "controls_precision", -1 );
-    foreach ( long id, ids ) {
+    Q_FOREACH ( long id, ids ) {
       if ( !isElements() ) {
         //
         // show node info
@@ -1594,7 +1594,7 @@ void SMESHGUI_TreeElemInfo::information( const QList<long>& ids )
     int cprecision = -1;
     if ( SMESHGUI::resourceMgr()->booleanValue( "SMESH", "use_precision", false ) ) 
       cprecision = SMESHGUI::resourceMgr()->integerValue( "SMESH", "controls_precision", -1 );
-    foreach ( long id, ids ) {
+    Q_FOREACH ( long id, ids ) {
       if ( !isElements() ) {
         //
         // show node info
@@ -2163,9 +2163,9 @@ void SMESHGUI_TreeElemInfo::contextMenuEvent( QContextMenuEvent* e )
   QMenu menu;
   QAction* a = menu.addAction( tr( "SHOW_ITEM_INFO" ) );
   if ( type == ElemConnectivity && id > 0 && menu.exec( e->globalPos() ) == a )
-    emit( itemInfo( id ) );
+    Q_EMIT( itemInfo( id ) );
   else if ( type == NodeConnectivity && menu.exec( e->globalPos() ) == a )
-    emit( itemInfo( aTreeItem->text( 1 ) ) );
+    Q_EMIT( itemInfo( aTreeItem->text( 1 ) ) );
 }
 
 void  SMESHGUI_TreeElemInfo::itemDoubleClicked( QTreeWidgetItem* theItem, int theColumn )
@@ -2174,9 +2174,9 @@ void  SMESHGUI_TreeElemInfo::itemDoubleClicked( QTreeWidgetItem* theItem, int th
     int type = theItem->data( 1, TypeRole ).toInt();
     int id   = theItem->data( 1, IdRole ).toInt();
     if ( type == ElemConnectivity && id > 0 )
-      emit( itemInfo( id ) );
+      Q_EMIT( itemInfo( id ) );
     else if ( type == NodeConnectivity )
-      emit( itemInfo( theItem->text( 1 ) ) );
+      Q_EMIT( itemInfo( theItem->text( 1 ) ) );
   }
 }
 
@@ -2816,7 +2816,7 @@ void SMESHGUI_MeshInfoDlg::showInfo( const Handle(SALOME_InteractiveObject)& IO
       myID->setText( ID.trimmed() );
       QSet<long> ids;
       QStringList idTxt = ID.split( " ", QString::SkipEmptyParts );
-      foreach ( ID, idTxt )
+      Q_FOREACH ( ID, idTxt )
         ids << ID.trimmed().toLong();
       myElemInfo->showInfo( ids, myMode->checkedId() == ElemMode );
     }
@@ -2973,7 +2973,7 @@ void SMESHGUI_MeshInfoDlg::idChanged()
     TColStd_MapOfInteger ID;
     QSet<long> ids;
     QStringList idTxt = myID->text().split( " ", QString::SkipEmptyParts );
-    foreach ( QString tid, idTxt ) {
+    Q_FOREACH ( QString tid, idTxt ) {
       long id = tid.trimmed().toLong();
       const SMDS_MeshElement* e = myMode->checkedId() == ElemMode ? 
         myActor->GetObject()->GetMesh()->FindElement( id ) :
index 54ee1aca5191d91d0e2e8bbd161d55940c04f9a9..1e84711069708103ebca47a744f4de7d21b46155 100644 (file)
@@ -131,7 +131,7 @@ private:
   void     setFontAttributes( QWidget*, int, bool = true );
   void     setFieldsVisible( int, int, bool );
 
-private slots:
+private Q_SLOTS:
   void loadMesh();
 
 private:
@@ -177,11 +177,11 @@ protected:
   QString      formatConnectivity( Connectivity, int );
   XYZ          gravityCenter( const SMDS_MeshElement* );
 
-signals:
+Q_SIGNALS:
   void         itemInfo( int );
   void         itemInfo( const QString& );
 
-private slots:
+private Q_SLOTS:
   void         showPrevious();
   void         showNext();
   void         updateControls();
@@ -229,7 +229,7 @@ protected:
   void             nodeInfo( const SMDS_MeshNode*, int, int, QTreeWidgetItem* );
   void             clearInternal();
 
-private slots:
+private Q_SLOTS:
   void             itemDoubleClicked( QTreeWidgetItem*, int );
   
 private:
@@ -247,7 +247,7 @@ public:
   GrpComputor( SMESH::SMESH_GroupBase_ptr, QTreeWidgetItem*, QObject* );
   QTreeWidgetItem* getItem() { return myItem; }
 
-public slots:
+public Q_SLOTS:
   void compute();
 
 private:
@@ -269,7 +269,7 @@ public:
   //  void             clear();
   void             saveInfo( QTextStream &out );
 
-private slots:
+private Q_SLOTS:
   void             changeLoadToCompute();
   void             showPreviousGroups();
   void             showNextGroups();
@@ -311,7 +311,7 @@ private:
   Plot2d_Histogram*     getHistogram( SMESH::NumericalFunctor_ptr functor );
   void                  computeNb( int ft, int iBut, int iWdg );
 
-private slots:
+private Q_SLOTS:
   void                  computeAspectRatio();
   void                  computeAspectRatio3D();
   void                  computeFreeNodesInfo();
@@ -364,7 +364,7 @@ protected:
   void keyPressEvent( QKeyEvent* );
   void enterEvent( QEvent* );
 
-private slots:
+private Q_SLOTS:
   void help();
   void updateSelection();
   void updateInfo();
@@ -398,7 +398,7 @@ public:
   void showInfo( const Handle(SALOME_InteractiveObject)& );
   void reject();
 
-private slots:
+private Q_SLOTS:
   void updateInfo();
   void activate();
   void deactivate();
index 99a699ba489bc9244d3d62afb0048319c505b4a4..bf8209b1e83f5f537c8749d62bdc0595457ce88e 100644 (file)
@@ -73,7 +73,7 @@ protected:
   virtual SUIT_SelectionFilter*  createFilter( const int ) const;
   virtual bool                   isValid( SUIT_Operation* ) const;
 
-protected slots:
+protected Q_SLOTS:
   virtual bool                   onApply();
   void                           onCreateHyp( const int, const int );
   void                           onEditHyp( const int, const int );
index 629d3d3528d0b2f73f5bc88864e8e2ece4ee873f..0703c7ada8ce19cc800a32ee6408813f6e6585a9 100644 (file)
@@ -69,7 +69,7 @@ class SMESHGUI_EXPORT SMESHGUI_MeshOrderBox : public QGroupBox
   //! Returns result (ordered by user) mesh indeces
   ListListName GetMeshNames() const;
  
- private slots:
+ private Q_SLOTS:
   /*! Private slots */
   //! update state of arrow buttons according to selection
   void         onSelectionChanged();
index 6b4940ed1960c1cfbbc2cc45dbbc05413302d143..00cc452fba041956bec38839fab4a1f331491581 100644 (file)
@@ -81,7 +81,7 @@ protected:
   //! sets the dialog widgets to state just after operation start
   virtual void           initDialog();
 
- protected slots:
+ protected Q_SLOTS:
   virtual bool           onApply();
   virtual void           onCancel();
 
index 43317618f40971ba28f2585a431c4495963be220..f3c7e7f7b550be274d22c3f5631e391734781b2c 100755 (executable)
@@ -75,10 +75,10 @@ public:
 
   void                                Init();
   
-protected slots:
+protected Q_SLOTS:
   virtual void                        reject();
 
-private slots:
+private Q_SLOTS:
   void                                onOk();
   bool                                onApply();
   void                                onHelp();
index b2fdc8bddd064dc8435664c56f39650030c88f28..c6c71147af69eac5a47059ee905ef7be34a8bef3 100755 (executable)
@@ -386,7 +386,7 @@ void SMESHGUI_MultiEditDlg::Init()
   myIds.Clear();
   myBusy = false;
   myActor = 0;
-  emit ListContensChanged();
+  Q_EMIT ListContensChanged();
 
   // main buttons
   connect(myOkBtn,    SIGNAL(clicked()), SLOT(onOk()));
@@ -550,7 +550,7 @@ void SMESHGUI_MultiEditDlg::onSelectionDone()
       for (QStringList::iterator it = anElements.begin(); it != anElements.end(); ++it) {
         QList<QListWidgetItem*> items = myListBox->findItems(*it, Qt::MatchExactly);
         QListWidgetItem* anItem;
-        foreach(anItem, items)
+        Q_FOREACH(anItem, items)
           anItem->setSelected(true);
       }
     }
@@ -627,7 +627,7 @@ void SMESHGUI_MultiEditDlg::onFilterAccepted()
   for (int i = 0, n = myListBox->count(); i < n; i++)
     myIds.Add(myListBox->item(i)->text().toInt());
 
-  emit ListContensChanged();
+  Q_EMIT ListContensChanged();
 
   if (mySubmeshChk->isChecked() || myGroupChk->isChecked()) {
     mySubmeshChk->blockSignals(true);
@@ -718,7 +718,7 @@ void SMESHGUI_MultiEditDlg::onAddBtn()
   myListBox->selectAll();
   myBusy = false;
 
-  emit ListContensChanged();
+  Q_EMIT ListContensChanged();
 
   if (isGroupOrSubmesh)
     onListSelectionChanged();
@@ -780,7 +780,7 @@ void SMESHGUI_MultiEditDlg::onRemoveBtn()
 
   QList<QListWidgetItem*> selItems = myListBox->selectedItems();
   QListWidgetItem* item;
-  foreach(item, selItems)
+  Q_FOREACH(item, selItems)
   {
     myIds.Remove(item->text().toInt());
     delete item;
@@ -788,7 +788,7 @@ void SMESHGUI_MultiEditDlg::onRemoveBtn()
 
   myBusy = false;
 
-  emit ListContensChanged();
+  Q_EMIT ListContensChanged();
   updateButtons();
 }
 
@@ -913,7 +913,7 @@ void SMESHGUI_MultiEditDlg::onToAllChk()
 
   myIds.Clear();
 
-  emit ListContensChanged();
+  Q_EMIT ListContensChanged();
 
   updateButtons();
   setSelectionMode();
@@ -992,7 +992,7 @@ bool SMESHGUI_MultiEditDlg::onApply()
 
     myListBox->clear();
     myIds.Clear();
-    emit ListContensChanged();
+    Q_EMIT ListContensChanged();
 
     updateButtons();
   }
@@ -1014,7 +1014,7 @@ void SMESHGUI_MultiEditDlg::on3d2dChanged (int type)
     myListBox->clear();
     myIds.Clear();
 
-    emit ListContensChanged();
+    Q_EMIT ListContensChanged();
 
     if (type)
       myFilterType = SMESH::VolumeFilter;
index a8a0d0a62dbbdcbb7ee24c3d6fe0033e1cc01f32..d0aba94dff794c99d9049c7b200602a123f29960 100755 (executable)
@@ -80,10 +80,10 @@ public:
 
   bool                      eventFilter( QObject*, QEvent* );
 
-signals:
+Q_SIGNALS:
   void                      ListContensChanged();
 
-protected slots:
+protected Q_SLOTS:
   void                      onOk();
   virtual bool              onApply();
   virtual void              reject();
@@ -204,7 +204,7 @@ protected:
                              SMESH::SMESH_IDSource_ptr obj );
   virtual int       nbElemsInMesh();
 
-protected slots:
+protected Q_SLOTS:
    virtual void     onDisplaySimulation( bool );
 
 private:
@@ -229,7 +229,7 @@ protected:
                          SMESH::SMESH_IDSource_ptr obj);
   virtual int   nbElemsInMesh();
 
-protected slots:
+protected Q_SLOTS:
   virtual void  reject();
   void          onCriterionRB();
   void          onPreviewChk();
@@ -255,7 +255,7 @@ public:
   SMESHGUI_SplitVolumesDlg( SMESHGUI* );
   virtual ~SMESHGUI_SplitVolumesDlg();
 
-protected slots:
+protected Q_SLOTS:
 
   virtual void on3d2dChanged(int);
   virtual void onSelectionDone();
index b5b2faa9ddb4658bc5825d5b50fadce91c4a48bb..dc6cba0aafdffe62eecb3b319c0f6a3ffd0c0f4d 100644 (file)
@@ -106,10 +106,10 @@ private:
 
   QString                 myHelpFileName;
 
-protected slots:
+protected Q_SLOTS:
   virtual void            reject();
 
-private slots:
+private Q_SLOTS:
   void                    ClickOnOk();
   bool                    ClickOnApply();
   void                    ClickOnHelp();
index 4e5097c93cbb4ddc20be63c2d76b61688f9c5aed..2721b8d3d7c1fe0965db8749be562a6e235051ab 100755 (executable)
@@ -74,7 +74,7 @@ protected:
   QString           myHelpFileName;
   bool              myIsApplyAndClose;
 
-protected slots:
+protected Q_SLOTS:
   virtual void      onOk();
   virtual bool      onApply();
   virtual void      onCancel();
index d286d2c411f36ecfc74e260bb50f4a9bc8c76efd..9de121b3459c9f3d4a39fc10d71145f7eae5aea0 100644 (file)
@@ -70,10 +70,10 @@ public:
                                              const double );
   void                     initScalarBarFromResources();
 
-protected slots:
+protected Q_SLOTS:
   virtual void             reject();
 
-protected slots:
+protected Q_SLOTS:
   void                     onOk();
   bool                     onApply();
   void                     onHelp();
index 1b63f92240a5f4edc5b662a19c5094b3d18bc877..31a21c95a2d16f6e9f8fa9c51467ab3bc7bdfeed 100644 (file)
@@ -56,7 +56,7 @@ protected:
   virtual void setIsApplyAndClose( const bool theFlag );
   virtual bool isApplyAndClose() const;
 
-protected slots:
+protected Q_SLOTS:
  void                      toDisplaySimulation();
  virtual void              onDisplaySimulation( bool );
 
@@ -85,7 +85,7 @@ protected:
   virtual void setIsApplyAndClose( const bool theFlag );
   virtual bool isApplyAndClose() const;
 
-protected slots:
+protected Q_SLOTS:
  void                      toDisplaySimulation();
  virtual void              onDisplaySimulation( bool );
 
index 5ec3ce6200065554c3d89e53dd4ebe5c40106223..25ecf4ca193740ef54779385066ae0e63429fe3e 100644 (file)
@@ -101,7 +101,7 @@ public:
 
   void              showControls( int, bool );
 
-private slots:
+private Q_SLOTS:
   void              onHelp();
 
 private:
index b4872622310c4e12b5df6502a244aa30a7232864..5fdf097f0feb299802fd84e40e988c8827b34bfc 100644 (file)
@@ -94,10 +94,10 @@ private:
 
   SMESHGUI_FilterDlg*    myFilterDlg;
 
-protected slots:
+protected Q_SLOTS:
   virtual void           reject();
 
-private slots:
+private Q_SLOTS:
   void                   ClickOnOk();
   void                   ClickOnApply();
   void                   ClickOnHelp();
index 0ffc235ace83cd13e4586bdb90d6575bd97a9bd4..320a07fe42a359b8bb8a37db554427044779405c 100644 (file)
@@ -94,10 +94,10 @@ private:
 
   SMESHGUI_FilterDlg*    myFilterDlg;
   
-protected slots:
+protected Q_SLOTS:
   virtual void           reject();
 
-private slots:
+private Q_SLOTS:
   void                   ClickOnOk();
   void                   ClickOnApply();
   void                   ClickOnHelp();
index 26ae2b311e8186e8b26aacff2a0035da6822aae5..ffd993b8591a0a28ee20d8d4329b8c89f50d5c18 100644 (file)
@@ -87,10 +87,10 @@ private:
   
   QString                       myHelpFileName;
 
-protected slots:
+protected Q_SLOTS:
   virtual void                  reject();
 
-private slots:
+private Q_SLOTS:
   void                          ClickOnOk();
   void                          ClickOnApply();
   void                          ClickOnHelp();
index e0908171b24a3a222f6c99d88555d9e4544eef7e..fc2d2ff130f1a37e533b7a206d8609653950f0cc 100644 (file)
@@ -61,10 +61,10 @@ protected:
 
   bool                           isValid( QString& );
 
-protected slots:
+protected Q_SLOTS:
   virtual bool                   onApply();
 
-private slots:
+private Q_SLOTS:
   virtual void                   onActivateObject( int );
   void                           redisplayPreview();
   void                           onTextChange( const QString& );
@@ -91,7 +91,7 @@ class SMESHGUI_EXPORT SMESHGUI_ReorientFacesDlg : public SMESHGUI_Dialog
 public:
   SMESHGUI_ReorientFacesDlg();
 
-public slots:
+public Q_SLOTS:
   void constructorChange(int id);
 
 private:
@@ -116,7 +116,7 @@ private:
 
   friend class SMESHGUI_ReorientFacesOp;
 
-  //private slots:
+  //private Q_SLOTS:
   //void                          ButtonToggled( bool );
 };
 
index 811f65132d8bbda4fc5d326b3d3ebebafc87bc44..02d67a1e37f6fcf3a10106acf4c7d8a806990737 100644 (file)
@@ -158,11 +158,11 @@ private:
   QPushButton*              myFilterBtn;
   SMESHGUI_FilterDlg*       myFilterDlg;
 
-protected slots:
+protected Q_SLOTS:
   virtual void              onDisplaySimulation( bool );
   virtual void                      reject();
    
-private slots:
+private Q_SLOTS:
   void                      ConstructorsClicked( int );
   void                      ClickOnOk();
   bool                      ClickOnApply();
index 3f2c1b9ce7273549f1e9cdc88f46d1e44f8dc177..02b3380a4223ee1c91bd42001d6675fd8ba27842 100644 (file)
@@ -132,11 +132,11 @@ private:
   QPushButton*           myFilterBtn;
   SMESHGUI_FilterDlg*    myFilterDlg;
 
-protected slots:
+protected Q_SLOTS:
   virtual void           onDisplaySimulation( bool );
   virtual void           reject();
  
-private slots:
+private Q_SLOTS:
   void                   ClickOnOk();
   bool                   ClickOnApply();
   void                   ClickOnHelp();
index 378b17af0f5b092819bf4cf5ba481872cbdddcc4..dee8b0c9f438bcfdae3ad145d9c43b36471e52b5 100644 (file)
@@ -128,11 +128,11 @@ private:
   SMESHGUI_FilterDlg*    myFilterDlg;
 
 
-protected slots:
+protected Q_SLOTS:
   virtual void           onDisplaySimulation( bool );
   virtual void           reject();
    
-private slots:
+private Q_SLOTS:
   void                   ConstructorsClicked( int );
   void                   ClickOnOk();
   bool                   ClickOnApply();
index c8080f9ae3057bfded5227a6e01fedf298495c1b..45a5d8bb54eb8eae096f4d7fc6e7f38b66a27a13 100644 (file)
@@ -135,7 +135,7 @@ protected:
   //! Return actor according to selected mesh if selection mode isn't ActorSelection
   SMESH_Actor*                  actor() const;
   
-protected slots:
+protected Q_SLOTS:
   //! Installs filter corresponding to certain object selection widget
   virtual void                  onActivateObject( int );
 
index 7ba8a45c484fa54e5c6f730ec31a2016a93f5ca0..c4d1812fa8bdcc5a0be5d395e8c17d9d83f49d29 100644 (file)
@@ -116,10 +116,10 @@ private:
 
   QString                 myHelpFileName;
 
-protected slots:
+protected Q_SLOTS:
   virtual void            reject();
 
-private slots:
+private Q_SLOTS:
   void                    ConstructorsClicked( int );
   void                    ClickOnOk();
   bool                    ClickOnApply();
index 4b6abe4f46f685bb0a2fce0b9b5ebec600ba90c1..8ce3a4e306a85cc38dafceaf5a2cb494c73b2db3 100644 (file)
@@ -94,10 +94,10 @@ protected:
   void                     activateSelection();
   void                     setElementID( const QString& );
 
-protected slots:
+protected Q_SLOTS:
   virtual bool             onApply();
 
-private slots:
+private Q_SLOTS:
   void                     onSelectionDone();
   void                     onTypeChanged( int );
   void                     onElemIdChanged( const QString& );
index 9e5261746f662ad4aabdc6c8e7d1d3215305eba3..0640a1f05d64a745f354d93045fbabfcf709d4e0 100755 (executable)
@@ -59,7 +59,7 @@ public:
 
   void                    Init();
 
-protected slots:
+protected Q_SLOTS:
   void                    onOk();
   virtual bool            onApply();
   virtual void            reject();
index 792134d3833bc303fa810ac0873ad043cea82ba1..f398e512477680fa4c3d6039c7012fec95005204 100644 (file)
@@ -122,10 +122,10 @@ private:
   QPushButton*           myElemFilterBtn;
   SMESHGUI_FilterDlg*    myFilterDlg;
    
-protected slots:
+protected Q_SLOTS:
   virtual void           reject();
 
-private slots:
+private Q_SLOTS:
   void                   ClickOnOk();
   bool                   ClickOnApply();
   void                   ClickOnHelp();
index dab3f34ba23584cb036aa0586d227eda0ec9a15f..53c0a5463fd4dc07841cd3632ae6056fc27ac1c2 100644 (file)
@@ -61,7 +61,7 @@ public:
   QString           GetString() const;
   QLineEdit*        editor() const;
 
-public slots:
+public Q_SLOTS:
   void              SetStep( double );
 };
 
index efb69b8310080483ecec5361644232c25dfaf39c..a6f3ad6ccb76ea2f0d510e103d5240c236ae6636 100644 (file)
@@ -136,11 +136,11 @@ private:
   QPushButton*           myFilterBtn;
   SMESHGUI_FilterDlg*    myFilterDlg;
 
-protected slots:
+protected Q_SLOTS:
   virtual void           onDisplaySimulation( bool );
   virtual void           reject();
    
-private slots:
+private Q_SLOTS:
   void                   ConstructorsClicked( int );
   void                   ClickOnOk();
   bool                   ClickOnApply();
index 4ee72ab047f39cc851d3c28670458353924eaad0..480a4eface68a28737593a8e5d98e1c403b421ad 100644 (file)
@@ -130,11 +130,11 @@ private:
   QPushButton*           myFilterBtn;
   SMESHGUI_FilterDlg*    myFilterDlg;
 
-protected slots:
+protected Q_SLOTS:
   virtual void           onDisplaySimulation( bool );
   virtual void           reject();
    
-private slots:
+private Q_SLOTS:
   void                   ConstructorsClicked( int );
   void                   ClickOnOk();
   bool                   ClickOnApply();
index 91f13fc4161c1f9cbca9cfbdd147ce87780a3b3b..1d825fbada19682c2309329b2730d165b7be4e83 100644 (file)
@@ -69,7 +69,7 @@ private:
 
   QString                 myHelpFileName;
 
-public slots:
+public Q_SLOTS:
   void                    ClickOnOk();
   void                    ClickOnHelp();
   void                    ValueHasChanged();
index 6b67d5e9cc8cb3ffb6a1d399c1b562bee2dc679f..94d80e7ac5a27ba7bf042aeb58393f41569b1a8c 100644 (file)
@@ -1002,9 +1002,9 @@ namespace SMESH
     //
     ViewManagerList vmList;
     app->viewManagers( SVTK_Viewer::Type(), vmList );
-    foreach ( SUIT_ViewManager* vm, vmList ) {
+    Q_FOREACH ( SUIT_ViewManager* vm, vmList ) {
       QVector<SUIT_ViewWindow*> views = vm->getViews();
-      foreach ( SUIT_ViewWindow* vw, views ) {
+      Q_FOREACH ( SUIT_ViewWindow* vw, views ) {
         // update VTK viewer properties
         if ( SVTK_ViewWindow* aVtkView = GetVtkViewWindow( vw ) ) {
           // update actors
index 633f986f91a02ef684c00afceacc6bf82a93dce7..4defcfb3ba5172f983f018732107af35b5353973 100644 (file)
@@ -657,7 +657,7 @@ void SMESH_Swig::EraseActor( const char* Mesh_Entry, const bool allViewers )
       else {
         aManagers = anApp->viewManagers();
       }
-      foreach( SUIT_ViewManager* aMgr, aManagers ) {
+      Q_FOREACH( SUIT_ViewManager* aMgr, aManagers ) {
         if ( aMgr && aMgr->getType() == VTKViewer_Viewer::Type() ) {
           SALOME_View* aSalomeView = dynamic_cast<SALOME_View*>(aMgr->getViewModel());
           if (aSalomeView) {
index 4cdd2b92ef943cb9fc99d28cd705adf41e9dbc60..75a2fbdf4d04e4d47d59de201da9c83d8b4eaf90 100644 (file)
@@ -289,7 +289,7 @@ namespace StdMeshersGUI
     {
       QList<QTreeWidgetItem *> selItems = mySpacingTreeWdg->selectedItems();
       QTreeWidgetItem * item;
-      foreach ( item, selItems )
+      Q_FOREACH ( item, selItems )
       {
         int i = mySpacingTreeWdg->indexOfTopLevelItem( item );
         if ( i == 0 ) continue; 
index 48477ea0d9f262987f90ddd8864e1df0af5a06ee..46873ef66db7eb89fec2b39492ef4bf4a4410589 100644 (file)
@@ -81,10 +81,10 @@ namespace StdMeshersGUI
     SMESH::double_array* getCoordinates();
     void getSpacing(SMESH::string_array_out funs, SMESH::double_array_out points) const;
 
-  signals:
+  Q_SIGNALS:
     void gridModeChanged(int);
 
-  private slots:
+  private Q_SLOTS:
     void onInsert();
     void onDelete();
     void onMode(int);
@@ -139,7 +139,7 @@ protected:
   virtual void     retrieveParams() const;
   virtual QString  storeParams() const;
 
-private slots:
+private Q_SLOTS:
   bool             updateAxesPreview();
   void             onOrthogonalAxes(bool);
   void             onAxisDirChange(const QString&);
index 582b92b2585ab0bd1df17b282c932c538be729f7..07a6a086a64c0881ec63ddfdd6c82443cfe564f9 100644 (file)
@@ -59,7 +59,7 @@ static void sortData( QList<double>& d )
   d.append( prevX );
   d.append( pairs.count() > 0 ? pairs[0].second : prevY );
 
-  foreach( p, pairs ) {
+  Q_FOREACH( p, pairs ) {
     if ( p.first > prevX ) {
       d.append( p.first  );
       d.append( p.second );
@@ -495,7 +495,7 @@ selectedRows()
   QList<int> l;
   QList<QTableWidgetItem*> selItems = selectedItems();
   QTableWidgetItem* i;
-  foreach( i, selItems )
+  Q_FOREACH( i, selItems )
     if ( !l.contains( i->row() ) ) l.append( i->row() );
   qSort( l );
   return l;
index 7cdbc84e83256150c1a288a3a476c0cce01ca3e5..f24992418cc4b5dce2a96525d9317e46a511b84c 100644 (file)
@@ -68,11 +68,11 @@ public:
 private:
   QPushButton* button( const TableButton ) const;
 
-private slots:
+private Q_SLOTS:
   void onInsert();
   void onRemove();
 
-signals:
+Q_SIGNALS:
   void         valueChanged( int, int );
   void         currentChanged( int, int );
 
index 4d36d494c43c8e683bf2ab5b8548b980ae275884..6e0ca1c1c70cec6c20402483d3152748f837ec45 100644 (file)
@@ -285,7 +285,7 @@ void StdMeshersGUI_FixedPointsParamWdg::removePoints()
 {
   QList<QListWidgetItem*> selItems = myListWidget->selectedItems();
   QListWidgetItem* item;
-  foreach ( item, selItems ) {
+  Q_FOREACH ( item, selItems ) {
     int idx = myListWidget->row( item );
     delete myTreeWidget->topLevelItem( idx );
     delete item;
index bcd19407eedeea0992f3af18fc14e67f6df0c2ab..132597ff2bb58c63edc05e379b59dff34b0b07bc 100644 (file)
@@ -61,7 +61,7 @@ public:
 
   QString                        GetValue() const { return myParamValue; }
 
-private slots:
+private Q_SLOTS:
   void                           onAdd(); 
   void                           onRemove(); 
   void                           onCheckBoxChanged();
index 2a86090def3c124f362c37f286297b90340470c8..e876e6ddb4bb05a6a47e54a718aaa157c05e2999 100644 (file)
@@ -63,7 +63,7 @@ public:
 
   bool IsOk() const { return !myHyp->_is_nil(); }
 
-private slots:
+private Q_SLOTS:
   void onCreate(); 
   void onEdit(); 
   void onHypTypePopup( QAction* );
index 7c9cb4dc4b5333ad214ae1384d03dff886f1ed76..3eafce2a53756e299bf57068ad293c28ac4bb0a4 100644 (file)
@@ -72,7 +72,7 @@ protected:
   virtual void     retrieveParams() const;
   virtual QString  storeParams() const;
 
-protected slots:
+protected Q_SLOTS:
   virtual void     onValueChanged();
 
 private:
index 9e5768402b62d3a3b6a735ac28e558dc8f7f0113..a734bfee66680e7d3f914b4cf13585e9af299f50 100644 (file)
@@ -152,7 +152,7 @@ void StdMeshersGUI_ObjectReferenceParamWdg::activateSelection()
       mySelectionMgr->installFilter( myFilter );
     connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), SLOT(onSelectionDone()));
   }
-  emit selectionActivated();
+  Q_EMIT selectionActivated();
   onSelectionDone();
 
   mySelButton->setChecked( mySelectionActivated );
@@ -211,7 +211,7 @@ void StdMeshersGUI_ObjectReferenceParamWdg::SetObject(CORBA::Object_ptr obj)
     myObjects.push_back( CORBA::Object::_duplicate( obj ));
     myParamValue = sobj->GetID().c_str();
   }
-  emit contentModified();
+  Q_EMIT contentModified();
 }
 
 //================================================================================
@@ -251,7 +251,7 @@ void StdMeshersGUI_ObjectReferenceParamWdg::SetObjects(SMESH::string_array_var&
     }
   }
   if (selChanged)
-    emit contentModified();
+    Q_EMIT contentModified();
 }
 
 //================================================================================
index 02f4f36e097daf2ca1370f92ad7cfcd4042041da..3c5649c81f1fed1a31864ca4c938a437bcbdb9bb 100644 (file)
@@ -93,7 +93,7 @@ public:
   
   void SetDefaultText(QString defaultText="", QString styleSheet="");
 
-public slots:
+public Q_SLOTS:
   /*!
    * \brief Activates selection (if not yet done), emits selectionActivated()
     *
@@ -103,7 +103,7 @@ public slots:
   void activateSelection();
   void deactivateSelection();
 
-signals:
+Q_SIGNALS:
   /*!
    * \brief Emitted when selection is activated
     *
@@ -113,7 +113,7 @@ signals:
   void selectionActivated();
   void contentModified();
   
-private slots:
+private Q_SLOTS:
   void onSelectionDone(); 
 
 private:
index 3e87369b067a2970c05bdba7e3cc6dbdcfc08e58..7cdc6b4b728b149a23d1152b734b0ece5da07b07 100644 (file)
@@ -63,7 +63,7 @@ class STDMESHERSGUI_EXPORT StdMeshersGUI_QuadrangleParamCreator : public StdMesh
   virtual void     retrieveParams() const;
   virtual QString  storeParams() const;
 
- private slots:
+ private Q_SLOTS:
 
   void onTypeChanged(int type);
   void onAddShape();
@@ -104,7 +104,7 @@ class STDMESHERSGUI_EXPORT StdMeshersGUI_QuadrangleParamWdg : public QWidget
   SMESH::nodes_array* GetPoints();
   void                Set( GEOM::ListOfGO_var shapes, SMESH::nodes_array_var points );
 
signals:
Q_SIGNALS:
 
   void typeChanged(int);
 
index 9cd4ff727ecf397522f681e0509c74b2921c9f41..e6fc2f24136e46a52bb458837fa80ce032b85a71 100644 (file)
@@ -144,7 +144,7 @@ StdMeshersGUI_SubShapeSelectorWdg::~StdMeshersGUI_SubShapeSelectorWdg()
   delete myFilter; myFilter=0;
 
   SUIT_SelectionFilter* filter;
-  foreach( filter, myGeomFilters )
+  Q_FOREACH( filter, myGeomFilters )
     delete filter;
 }
 
@@ -312,7 +312,7 @@ void StdMeshersGUI_SubShapeSelectorWdg::SelectionIntoArgument()
       QString anID = QString(" %1").arg( mySelectedIDs.at(i) );
       QList<QListWidgetItem*> anItems = myListWidget->findItems ( anID, Qt::MatchExactly );
       QListWidgetItem* item;
-      foreach(item, anItems)
+      Q_FOREACH(item, anItems)
         item->setSelected(true);
     }
   }
@@ -356,7 +356,7 @@ void StdMeshersGUI_SubShapeSelectorWdg::onRemove()
   myListWidget->blockSignals( true );
   QList<QListWidgetItem*> selItems = myListWidget->selectedItems();
   QListWidgetItem* item;
-  foreach(item, selItems) {
+  Q_FOREACH(item, selItems) {
     QString idStr = item->text();
     int id = idStr.toInt();
 
@@ -406,7 +406,7 @@ void StdMeshersGUI_SubShapeSelectorWdg::onListSelectionChanged()
   TColStd_MapOfInteger aIndexes;
   QList<QListWidgetItem*> selItems = myListWidget->selectedItems();
   QListWidgetItem* anItem;
-  foreach(anItem, selItems)
+  Q_FOREACH(anItem, selItems)
     myPreviewActor->HighlightID( anItem->text().toInt() );
 
   // update remove button
index 7793817be8419c5a208e519dcf66c7eaac8dfb1d..5cf1661496ded64a4dc561c64beb68966164880d 100644 (file)
@@ -89,7 +89,7 @@ private:
   void                           setFilter();
   void                           updateButtons();
 
-private slots:
+private Q_SLOTS:
   void                           onAdd(); 
   void                           onRemove(); 
   void                           onPrevious();