Default Toolbar icon size too big on macx.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2015-04-29 15:43:33 +03:00
parent a233d37317
commit 47c7609ebb
2 changed files with 14 additions and 0 deletions

View File

@ -135,6 +135,15 @@ MainWindow::MainWindow(QWidget *parent)
setCurrentFile("");
WindowsLocale();
#if defined(Q_OS_MAC)
// On Mac deafault icon size is 32x32.
ui->toolBarArrows->setIconSize(QSize(24, 24));
ui->toolBarDraws->setIconSize(QSize(24, 24));
ui->toolBarOption->setIconSize(QSize(24, 24));
ui->toolBarStages->setIconSize(QSize(24, 24));
ui->toolBarTools->setIconSize(QSize(24, 24));
#endif
}
//---------------------------------------------------------------------------------------------------------------------

View File

@ -78,6 +78,11 @@ TableWindow::TableWindow(QWidget *parent)
connect(ui->actionSave, &QAction::triggered, this, &TableWindow::SaveLayout);
connect(ui->actionLayout, &QAction::triggered, this, &TableWindow::Layout);
connect(ui->listWidget, &QListWidget::currentRowChanged, this, &TableWindow::ShowPaper);
#if defined(Q_OS_MAC)
// On Mac deafault icon size is 32x32.
ui->toolBar->setIconSize(QSize(24, 24));
#endif
}
//---------------------------------------------------------------------------------------------------------------------