From: imn Date: Wed, 17 Sep 2014 09:38:35 +0000 (+0400) Subject: Removed qt3 support and replaced qt macros X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fimn%2Fremoved_qt3_support;p=plugins%2Fhexablockplugin.git Removed qt3 support and replaced qt macros --- diff --git a/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.cxx b/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.cxx index 7a902b0..f58275c 100755 --- a/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.cxx @@ -401,7 +401,7 @@ bool HEXABLOCKPluginGUI_HypothesisCreator::checkVertexIsDefined() if (val) isDefined = ! smpVertexExists(myXCoord->text().toDouble(),myYCoord->text().toDouble(),myZCoord->text().toDouble()); - emit vertexDefined(isDefined); + Q_EMIT vertexDefined(isDefined); return isDefined; } @@ -444,7 +444,7 @@ void HEXABLOCKPluginGUI_HypothesisCreator::onRemoveVertexBtnClicked() QList selectedIndex = myEnforcedTableView->selectionModel()->selectedIndexes(); int row; QModelIndex index; - foreach( index, selectedIndex ) { + Q_FOREACH( index, selectedIndex ) { row = index.row(); if ( !selectedRows.contains( row ) ) selectedRows.append( row ); diff --git a/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.h b/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.h index 257194c..a3fb63e 100755 --- a/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.h +++ b/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.h @@ -90,14 +90,14 @@ protected: virtual QPixmap icon() const; virtual QString type() const; -protected slots: +protected Q_SLOTS: void onDirBtnClicked(); void updateWidgets(); void onVertexBtnClicked(); void onRemoveVertexBtnClicked(); bool checkVertexIsDefined(); -signals: +Q_SIGNALS: void vertexDefined(bool); private: