mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-02 09:00:14 -06:00
CMake : Improve handling of compiler flags (#8486)
#8478 Code cleanup to fix some warnings Several adjustments to improve the specification and usage of compile flags.
This commit is contained in:
1 parent
d5b17976ed
commit
2d2bf0bbc7
24 files changed
+190
-64
No files matched your search
@@ -74,7 +74,7 @@ bool caf::CadNavigation::handleInputEvent( QInputEvent* inputEvent )
|
||||
int translatedMousePosX, translatedMousePosY;
|
||||
cvfEventPos( me->x(), me->y(), &translatedMousePosX, &translatedMousePosY );
|
||||
|
||||
if ( me->button() == Qt::MidButton && me->modifiers() == Qt::NoModifier && isRotationEnabled() )
|
||||
if ( me->button() == Qt::MiddleButton && me->modifiers() == Qt::NoModifier && isRotationEnabled() )
|
||||
{
|
||||
this->pickAndSetPointOfInterest( me->x(), me->y() );
|
||||
|
||||
@@ -85,7 +85,7 @@ bool caf::CadNavigation::handleInputEvent( QInputEvent* inputEvent )
|
||||
m_hasMovedMouseDuringNavigation = false;
|
||||
isEventHandled = true;
|
||||
}
|
||||
else if ( me->button() == Qt::MidButton && ( me->modifiers() & Qt::ShiftModifier ) )
|
||||
else if ( me->button() == Qt::MiddleButton && ( me->modifiers() & Qt::ShiftModifier ) )
|
||||
{
|
||||
m_trackball->startNavigation( cvf::ManipulatorTrackball::PAN, translatedMousePosX, translatedMousePosY );
|
||||
m_isNavigating = true;
|
||||
@@ -100,7 +100,7 @@ bool caf::CadNavigation::handleInputEvent( QInputEvent* inputEvent )
|
||||
if ( m_isNavigating )
|
||||
{
|
||||
QMouseEvent* me = static_cast<QMouseEvent*>( inputEvent );
|
||||
if ( me->button() == Qt::MidButton )
|
||||
if ( me->button() == Qt::MiddleButton )
|
||||
{
|
||||
m_trackball->endNavigation();
|
||||
|
||||
|
||||
@@ -229,7 +229,7 @@ ManipulatorTrackball::NavigationType caf::CeetronNavigation::getNavigationTypeFr
|
||||
{
|
||||
return ManipulatorTrackball::ROTATE;
|
||||
}
|
||||
else if ( mouseButtons == Qt::MidButton || mouseButtons == ( Qt::LeftButton | Qt::RightButton ) )
|
||||
else if ( mouseButtons == Qt::MiddleButton || mouseButtons == ( Qt::LeftButton | Qt::RightButton ) )
|
||||
{
|
||||
return ManipulatorTrackball::WALK;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ bool caf::CeetronPlusNavigation::handleInputEvent( QInputEvent* inputEvent )
|
||||
isEventHandled = true;
|
||||
}
|
||||
}
|
||||
else if ( me->button() == Qt::MidButton )
|
||||
else if ( me->button() == Qt::MiddleButton )
|
||||
{
|
||||
if ( me->modifiers() == Qt::NoModifier )
|
||||
{
|
||||
@@ -130,7 +130,7 @@ bool caf::CeetronPlusNavigation::handleInputEvent( QInputEvent* inputEvent )
|
||||
if ( m_hasMovedMouseDuringNavigation ) isEventHandled = true;
|
||||
m_hasMovedMouseDuringNavigation = false;
|
||||
}
|
||||
else if ( me->button() == Qt::MidButton )
|
||||
else if ( me->button() == Qt::MiddleButton )
|
||||
{
|
||||
m_isZooming = false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user