mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Fix typo for variable
This commit is contained in:
parent
5351746dc7
commit
2097b24d37
@ -403,10 +403,10 @@ QWidget *ElementPropertiesWidget::generalWidget()
|
|||||||
//Set the maximum size of the pixmap to the minimum size of the layout
|
//Set the maximum size of the pixmap to the minimum size of the layout
|
||||||
QPixmap pixmap = m_element->pixmap();
|
QPixmap pixmap = m_element->pixmap();
|
||||||
int margin = vlayout_->contentsMargins().left() + vlayout_->contentsMargins().right();
|
int margin = vlayout_->contentsMargins().left() + vlayout_->contentsMargins().right();
|
||||||
int widht_ = vlayout_->minimumSize().width()-margin;
|
int width_ = vlayout_->minimumSize().width()-margin;
|
||||||
|
|
||||||
if (pixmap.size().width() > widht_ || pixmap.size().height() > widht_) {
|
if (pixmap.size().width() > width_ || pixmap.size().height() > width_) {
|
||||||
pix->setPixmap(m_element->pixmap().scaled (widht_, widht_, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
pix->setPixmap(m_element->pixmap().scaled (width_, width_, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pix->setPixmap(pixmap);
|
pix->setPixmap(pixmap);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user