git-svn-id: svn://db.shs.com.ru/libs@462 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "edockwidget.h"
|
||||
#include "qad_types.h"
|
||||
#include <QEvent>
|
||||
#include <QStyle>
|
||||
|
||||
|
||||
@@ -22,9 +23,17 @@ void EDockWidget::setWindowIcon(const QIcon & icon) {
|
||||
QDockWidget::setWindowIcon(icon);
|
||||
if (!icon.isNull()) {
|
||||
lbl_icon->setScaledContents(true);
|
||||
lbl_icon->setFixedSize(preferredIconSize(1.5));
|
||||
lbl_icon->setFixedSize(preferredIconSize(1.5, this));
|
||||
}
|
||||
//#endif
|
||||
//#endif
|
||||
}
|
||||
|
||||
|
||||
bool EDockWidget::event(QEvent * e) {
|
||||
if (e->type() == QEvent::FontChange || e->type() == QEvent::Polish) {
|
||||
lbl_icon->setFixedSize(preferredIconSize(1.5, this));
|
||||
}
|
||||
return QDockWidget::event(e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user