mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
Use small icon size from QStyle for dock widget tab icon.
This commit is contained in:
parent
a2b07fd97f
commit
12b0182337
@ -444,7 +444,7 @@ void CDockWidgetTab::setIcon(const QIcon& Icon)
|
|||||||
d->Icon = Icon;
|
d->Icon = Icon;
|
||||||
if (d->IconLabel)
|
if (d->IconLabel)
|
||||||
{
|
{
|
||||||
d->IconLabel->setPixmap(Icon.pixmap(this->windowHandle(), QSize(16, 16)));
|
d->IconLabel->setPixmap(Icon.pixmap(style()->pixelMetric(QStyle::PM_SmallIconSize, nullptr, this)));
|
||||||
d->IconLabel->setVisible(true);
|
d->IconLabel->setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user