From e17655243c92899c03514e189e6d74c7262b1b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 27 Aug 2013 16:50:42 +0200 Subject: More OSX magic! --- gui/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gui') diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 48e3aceb..cef5f278 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -81,6 +81,9 @@ MainWindow::MainWindow ( QWidget *parent ) : // Set active instance to null. m_activeInst = nullptr; + // OSX magic. + setUnifiedTitleAndToolBarOnMac(true); + // The instance action toolbar customizations { ui->instanceToolBar->setEnabled(false); @@ -111,6 +114,8 @@ MainWindow::MainWindow ( QWidget *parent ) : view->setItemDelegate(delegate); view->setSpacing(10); view->setUniformItemWidths(true); + + // do not show ugly blue border on the mac view->setAttribute(Qt::WA_MacShowFocusRect, false); view->installEventFilter(this); -- cgit v1.2.3