Commit db5e9a8f authored by Nikita Baryshnikov's avatar Nikita Baryshnikov Committed by Eike Ziller

Fix WindowList compilation

QMenu::setAsDockMenu defined only on OsX

Change-Id: Ie9c572e450fc01662d0a1a0b2f514fa026ad4a6d
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 9c36ad3a
......@@ -145,10 +145,12 @@ void WindowSupport::updateFullScreenAction()
void WindowList::addWindow(QWidget *window)
{
if (Utils::HostOsInfo::isMacHost() && !m_dockMenu) {
#ifdef Q_OS_OSX
if (!m_dockMenu) {
m_dockMenu = new QMenu;
m_dockMenu->setAsDockMenu();
}
#endif
m_windows.append(window);
Id id = Id("QtCreator.Window.").withSuffix(m_windows.size());
......
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