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

@@ -89,9 +89,9 @@ void Ribbon::init() {
i->setProperty("__icon", QVariant::fromValue<QIcon>(tic));
else
tic = i->property("__icon").value<QIcon>();
#ifdef Q_OS_MACOS
tic = QIcon();
#endif
//#ifdef Q_OS_MACOS
// tic = QIcon();
//#endif
tab->addTab(new QWidget(), tic, i->text());
//qDebug() << this << i->icon() << i->text();
//continue;
@@ -107,7 +107,11 @@ void Ribbon::init() {
i->setIcon(QIcon());
tl = new QBoxLayout(QBoxLayout::LeftToRight);
tl->setSpacing(2);
#ifndef Q_OS_MACOS
tl->setContentsMargins(2, 2, 2, 2);
#else
tl->setContentsMargins(2, 0, 2, 2);
#endif
g = new QGroupBox();
l = new QBoxLayout(QBoxLayout::LeftToRight);
g->setLayout(l);
@@ -209,6 +213,8 @@ void Ribbon::setIconSize(const QSize & size) {
void Ribbon::setTabIconSize(const QSize & size) {
#ifndef Q_OS_MACOS
tab->setIconSize(size);
#endif
_resize();
}