Commit ae2a9dbb authored by Eike Ziller's avatar Eike Ziller

Work around issue with vanishing menu bar with Unity

When Widget Designer is opened with a QMainWindow based form, the
"native" Unity menu bar vanishes. This is a workaround by disabling the
native menu bar integration on Linux.

Task-number: QTCREATORBUG-17519
Change-Id: I93eb3a590200fb8fff90017d8d6eddda8edaa42e
Reviewed-by: default avatarAndré Hartmann <aha_1980@gmx.de>
parent d4fe5310
...@@ -280,6 +280,9 @@ void loadFonts() ...@@ -280,6 +280,9 @@ void loadFonts()
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
if (Utils::HostOsInfo::isLinuxHost())
QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);
Utils::TemporaryDirectory::setMasterTemporaryDirectory(QDir::tempPath() + "/QtCreator-XXXXXX"); Utils::TemporaryDirectory::setMasterTemporaryDirectory(QDir::tempPath() + "/QtCreator-XXXXXX");
const char *highDpiEnvironmentVariable = setHighDpiEnvironmentVariable(); const char *highDpiEnvironmentVariable = setHighDpiEnvironmentVariable();
......
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