优化模型图元文件的预览效果
This commit is contained in:
parent
0321bad4c3
commit
a2fc55ced7
|
|
@ -139,7 +139,12 @@ void ModelInfoEditDialog::resetUI()
|
|||
ui->lineEdit_modelImage->setText("");
|
||||
ui->plainTextEdit_modelComment->setPlainText("");
|
||||
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_oldType = "";
|
||||
|
|
|
|||
|
|
@ -193,11 +193,14 @@
|
|||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
<string notr="true">background-color: rgb(240, 240, 240);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignmentFlag::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
|
|||
Loading…
Reference in New Issue