#include <inspector/View_Window.hxx>
+#include <inspector/TInspectorAPI_Version.hxx>
+
#include <inspector/View_Displayer.hxx>
#include <inspector/View_ToolBar.hxx>
#include <inspector/View_Tools.hxx>
// =======================================================================
void View_Window::onViewContextMenuRequested (const QPoint& thePosition)
{
+#if TINSPECTORAPI_VERSION_HEX > 0x070200
QMenu* aMenu = new QMenu (this);
QMenu* anOrientationSubMenu = aMenu->addMenu ("Set View Orientation");
QPoint aPoint = myView->mapToGlobal (thePosition);
aMenu->exec (aPoint);
+#else
+ (void)thePosition;
+#endif
}
// =======================================================================
// =======================================================================
void View_Window::onSetOrientation()
{
+#if TINSPECTORAPI_VERSION_HEX > 0x070200
QAction* anAction = (QAction*)(sender());
TCollection_AsciiString anOrientationStr (anAction->text().toStdString().c_str());
aView->SetProj (anOrientationType);
aView->FitAll();
aView->Redraw();
+#endif
}
// =======================================================================