X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPVViewer%2FPVViewer_Behaviors.cxx;h=fefe75e5bd7671ca542687801e196c1a0101a697;hb=2400f3659b65727d5a776dccd3d5dd506d755a88;hp=1edd81a6617d189580dcd2350067711b021af30b;hpb=c4b058d18583af7f94042eb55d4b933dd222d2e6;p=modules%2Fgui.git diff --git a/src/PVViewer/PVViewer_Behaviors.cxx b/src/PVViewer/PVViewer_Behaviors.cxx index 1edd81a66..fefe75e5b 100644 --- a/src/PVViewer/PVViewer_Behaviors.cxx +++ b/src/PVViewer/PVViewer_Behaviors.cxx @@ -20,7 +20,7 @@ #include "PVViewer_Behaviors.h" -#include +#include #include #include @@ -53,8 +53,8 @@ int PVViewer_Behaviors::BehaviorLoadingLevel = 0; -PVViewer_Behaviors::PVViewer_Behaviors(SUIT_Desktop * parent) - : QObject(static_cast(parent)) +PVViewer_Behaviors::PVViewer_Behaviors(QMainWindow * parent) + : QObject(parent) { } @@ -62,7 +62,7 @@ PVViewer_Behaviors::PVViewer_Behaviors(SUIT_Desktop * parent) * This method should be updated at each new version of ParaView with what is found in * Qt/ApplicationComponents/pqParaViewBehaviors.cxx */ -void PVViewer_Behaviors::instanciateMinimalBehaviors(SUIT_Desktop * desk) +void PVViewer_Behaviors::instanciateMinimalBehaviors(QMainWindow * desk) { if (BehaviorLoadingLevel < 1) { @@ -93,7 +93,7 @@ void PVViewer_Behaviors::instanciateMinimalBehaviors(SUIT_Desktop * desk) * This method should be updated at each new version of ParaView with what is found in * Qt/ApplicationComponents/pqParaViewBehaviors.cxx */ -void PVViewer_Behaviors::instanciateAllBehaviors(SUIT_Desktop * desk) +void PVViewer_Behaviors::instanciateAllBehaviors(QMainWindow * desk) { // "new pqParaViewBehaviors(anApp->desktop(), this);" // -> (which loads all standard ParaView behaviors at once) has to be replaced in order to