Skip to content

Commit

Permalink
- Fixes compilation of OMEdit when using Qt 4.6.0
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8017 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 25, 2011
1 parent 547ebc5 commit d9e6a8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/Component.cpp
Expand Up @@ -516,12 +516,14 @@ QVariant Component::itemChange(GraphicsItemChange change, const QVariant &value)
emit componentPositionChanged();
}
}
#if (QT_VERSION >= QT_VERSION_CHECK(4, 7, 0))
else if (change == QGraphicsItem::ItemRotationHasChanged)
{
emit componentRotated(true);
updateAnnotationString();
updateSelectionBox();
}
#endif
return value;
}

Expand Down
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/mainwindow.h
Expand Up @@ -46,8 +46,8 @@
#include <QSplashScreen>
#include <QProgressBar>

#if (QT_VERSION < QT_VERSION_CHECK(4, 7, 0))
#error "OMEdit requires Qt 4.7.0 or newer"
#if (QT_VERSION < QT_VERSION_CHECK(4, 6, 0))
#error "OMEdit requires Qt 4.6.0 or newer"
#endif

#include "OMCProxy.h"
Expand Down

0 comments on commit d9e6a8f

Please sign in to comment.