Replace Q_WS_MAC -> Q_OS_MAC, restore Qt 4 behavior
that does not disable updates on first show.
Change-Id: Ibc7f58add2a44c95879bd3c4772cea36dd7905fa
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
}
container->setGeometry(listRect);
}
container->setGeometry(listRect);
const bool updatesEnabled = container->updatesEnabled();
#endif
const bool updatesEnabled = container->updatesEnabled();
#endif
// If updates are disabled at this point we'll miss our chance at painting the popup
// menu before it's shown, causing flicker since the window then displays the standard gray
// background.
// If updates are disabled at this point we'll miss our chance at painting the popup
// menu before it's shown, causing flicker since the window then displays the standard gray
// background.
container->setUpdatesEnabled(false);
#endif
container->setUpdatesEnabled(false);
#endif
? QAbstractItemView::PositionAtCenter
: QAbstractItemView::EnsureVisible);
? QAbstractItemView::PositionAtCenter
: QAbstractItemView::EnsureVisible);
container->setUpdatesEnabled(updatesEnabled);
#endif
container->setUpdatesEnabled(updatesEnabled);
#endif