Commit 7cf81798 authored by Francois Bertel's avatar Francois Bertel

ENH:Removed statements in CMakeLists.txt files or source code that depend on...

ENH:Removed statements in CMakeLists.txt files or source code that depend on Qt<4.5 such as DESIRED_QT_VERSION and #if QT_VERSION < 0x040500 ...
parent 97e095cd
...@@ -139,22 +139,7 @@ bool pqAbstractActivateEventPlayer::playEvent(QObject* Object, ...@@ -139,22 +139,7 @@ bool pqAbstractActivateEventPlayer::playEvent(QObject* Object,
} }
else if(QMenu* menu = qobject_cast<QMenu*>(p)) else if(QMenu* menu = qobject_cast<QMenu*>(p))
{ {
#if QT_VERSION < 0x040103
QRect geom = menu->actionGeometry(next->menuAction());
QMouseEvent button_press(QEvent::MouseButtonPress,
geom.center(),
Qt::LeftButton, Qt::LeftButton, 0);
QApplication::sendEvent(menu, &button_press);
// process events before mouse up to help our sub menu show up
pqEventDispatcher::processEventsAndWait(0);
QMouseEvent button_release(QEvent::MouseButtonRelease,
geom.center(),
Qt::LeftButton, 0, 0);
QApplication::sendEvent(menu, &button_release);
#else
menu->setActiveAction(next->menuAction()); menu->setActiveAction(next->menuAction());
#endif
int max_wait = 0; int max_wait = 0;
while(!next->isVisible() && (++max_wait) <= 10) while(!next->isVisible() && (++max_wait) <= 10)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment