git-svn-id: svn://db.shs.com.ru/libs@436 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user