More OSX magic!

This commit is contained in:
Petr Mrázek 2013-08-27 16:50:42 +02:00
parent fd4026c60a
commit e17655243c

View File

@ -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);