git-svn-id: svn://db.shs.com.ru/libs@436 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2018-09-26 07:31:40 +00:00
parent f5caf8534f
commit 70d6ef80a7
3 changed files with 19 additions and 11 deletions

View File

@@ -280,7 +280,9 @@ void EMainWindow::changedDock() {
tbars << t;
connect(t, SIGNAL(tabCloseRequested(int)), this, SLOT(closeDock(int)));
t->installEventFilter(this);
#ifndef Q_OS_MACOS
t->setIconSize(dockTabsIconSize());
#endif
t->setTabsClosable(true);
}
// qDebug() << "tab" << t << t->count();
@@ -288,10 +290,10 @@ void EMainWindow::changedDock() {
dock = (QDockWidget * )t->tabData(i).toULongLong();
//qDebug() << i << t->tabData(i);
if (dock == 0) continue;
t->setIconSize(dockTabsIconSize());
#ifndef Q_OS_MACOS
t->setTabIcon(i, dock->windowIcon());
t->setIconSize(dockTabsIconSize());
#endif
t->setTabIcon(i, dock->windowIcon());
docks_tabs << dock;
}
}