diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-05-11 09:29:40 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-05-12 07:12:30 +0000 |
commit | ae2a9dbb787e682e0f8db1b34075dcf10dff6125 (patch) | |
tree | 04985784495035799b4b0ebf849e7a577d25d437 /src/app | |
parent | d4fe5310d6350e7725e4df24959e10d05176fd52 (diff) |
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: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index 97a509757b2..77cf8cb42e9 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -280,6 +280,9 @@ void loadFonts() int main(int argc, char **argv) { + if (Utils::HostOsInfo::isLinuxHost()) + QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar); + Utils::TemporaryDirectory::setMasterTemporaryDirectory(QDir::tempPath() + "/QtCreator-XXXXXX"); const char *highDpiEnvironmentVariable = setHighDpiEnvironmentVariable(); |