Skip to content

Commit

Permalink
Change Q_WS_X11 to Q_OS_UNIX for Qt5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
naihil committed Dec 24, 2014
1 parent d5d4a5a commit ea00b36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/main.cpp
Expand Up @@ -599,7 +599,7 @@ int main( int argc, char *argv[] )
// Initialise the application and the translation stuff
/////////////////////////////////////////////////////////////////////

#ifdef Q_WS_X11
#ifdef Q_OS_UNIX
bool myUseGuiFlag = getenv( "DISPLAY" ) != 0;
#else
bool myUseGuiFlag = true;
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisappstylesheet.cpp
Expand Up @@ -262,7 +262,7 @@ void QgisAppStyleSheet::setActiveValues()
#endif

// window servers
#ifdef Q_WS_X11
#ifdef Q_OS_UNIX
mX11WS = true;
#else
mX11WS = false;
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptooloffsetcurve.cpp
Expand Up @@ -304,7 +304,7 @@ void QgsMapToolOffsetCurve::createDistanceItem()
mDistanceSpinBox->setMaximum( 99999999 );
mDistanceSpinBox->setDecimals( 2 );
mDistanceSpinBox->setPrefix( tr( "Offset: " ) );
#ifndef Q_WS_X11
#ifndef Q_OS_UNIX
mDistanceItem = new QGraphicsProxyWidget();
mDistanceItem->setWidget( mDistanceSpinBox );
mCanvas->scene()->addItem( mDistanceItem );
Expand All @@ -326,7 +326,7 @@ void QgsMapToolOffsetCurve::deleteDistanceItem()
}
delete mDistanceItem;
mDistanceItem = 0;
#ifdef Q_WS_X11
#ifdef Q_OS_UNIX
QgisApp::instance()->statusBar()->removeWidget( mDistanceSpinBox );
delete mDistanceSpinBox;
#endif
Expand Down

0 comments on commit ea00b36

Please sign in to comment.