Elementpropertieswidget:restored the pixmap element view with limited scaling and preserving the aspect ratio

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3979 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2015-05-20 12:22:30 +00:00
parent e5035f8125
commit 6be71a97b7

View File

@@ -187,10 +187,10 @@ QWidget *ElementPropertiesWidget::generalWidget()
vlayout_->addWidget(label);
//widget for the pixmap
// QLabel *pix = new QLabel(general_widget);
// pix->setPixmap(m_element->pixmap());
// vlayout_->addWidget(pix, 0, Qt::AlignHCenter);
// vlayout_ -> addStretch();
QLabel *pix = new QLabel(general_widget);
pix->setPixmap(m_element->pixmap().scaled (34, 34, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation));
vlayout_->addWidget(pix, 0, Qt::AlignHCenter);
vlayout_ -> addStretch();
//button widget
QPushButton *find_in_panel = new QPushButton(QET::Icons::ZoomDraw, tr("Retrouver dans le panel"), general_widget);