git-svn-id: svn://db.shs.com.ru/libs@413 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -19,6 +19,10 @@ void EDockWidget::setWindowTitle(const QString & title) {
|
|||||||
void EDockWidget::setWindowIcon(const QIcon & icon) {
|
void EDockWidget::setWindowIcon(const QIcon & icon) {
|
||||||
lbl_icon->setPixmap(icon.pixmap(QSize(256, 256)));
|
lbl_icon->setPixmap(icon.pixmap(QSize(256, 256)));
|
||||||
QDockWidget::setWindowIcon(icon);
|
QDockWidget::setWindowIcon(icon);
|
||||||
|
if (!icon.isNull()) {
|
||||||
|
lbl_icon->setScaledContents(true);
|
||||||
|
lbl_icon->setFixedSize(preferredIconSize(1.5));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user