优化模型图元文件的预览效果
This commit is contained in:
parent
0321bad4c3
commit
a2fc55ced7
|
|
@ -139,7 +139,12 @@ void ModelInfoEditDialog::resetUI()
|
||||||
ui->lineEdit_modelImage->setText("");
|
ui->lineEdit_modelImage->setText("");
|
||||||
ui->plainTextEdit_modelComment->setPlainText("");
|
ui->plainTextEdit_modelComment->setPlainText("");
|
||||||
ui->label_error->clear();
|
ui->label_error->clear();
|
||||||
ui->modelImagePreview->setPixmap(QPixmap(":/img/images/icon_file.png"));
|
ui->modelImagePreview->setPixmap(QPixmap(":/img/images/icon_file.png").scaled(
|
||||||
|
ui->modelImagePreview->width(),
|
||||||
|
ui->modelImagePreview->height(),
|
||||||
|
Qt::KeepAspectRatio,
|
||||||
|
Qt::SmoothTransformation
|
||||||
|
));
|
||||||
|
|
||||||
m_oldName = "";
|
m_oldName = "";
|
||||||
m_oldType = "";
|
m_oldType = "";
|
||||||
|
|
|
||||||
|
|
@ -193,11 +193,14 @@
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true"/>
|
<string notr="true">background-color: rgb(240, 240, 240);</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignmentFlag::AlignCenter</set>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue