forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user