[qet] [3979] Elementpropertieswidget: restored the pixmap element view with limited scaling and preserving the aspect ratio |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3979
Author: scorpio810
Date: 2015-05-20 14:22:30 +0200 (Wed, 20 May 2015)
Log Message:
-----------
Elementpropertieswidget:restored the pixmap element view with limited scaling and preserving the aspect ratio
Modified Paths:
--------------
trunk/sources/ui/elementpropertieswidget.cpp
Modified: trunk/sources/ui/elementpropertieswidget.cpp
===================================================================
--- trunk/sources/ui/elementpropertieswidget.cpp 2015-05-19 21:41:05 UTC (rev 3978)
+++ trunk/sources/ui/elementpropertieswidget.cpp 2015-05-20 12:22:30 UTC (rev 3979)
@@ -187,10 +187,10 @@
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);