From b66cba88a98d99fea775dc757c96194b22148970 Mon Sep 17 00:00:00 2001 From: imn Date: Wed, 17 Sep 2014 13:38:35 +0400 Subject: [PATCH] Removed qt3 support and replaced qt macros --- src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.cxx | 4 ++-- src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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: -- 2.39.2