解决保存图像后,缩略图“*”符号没刷新的问题

This commit is contained in:
yangjiaxuan 2023-12-01 18:09:15 +08:00
parent 11175fa485
commit 66d28656cd
3 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,8 @@ Dialog_Input::Dialog_Input(QWidget *parent) :
ui->setupUi(this);
setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
setWindowTitle(tr("configuration scheme name change"));
ui->lineEdit->setMaxLength(20);
}
Dialog_Input::~Dialog_Input()

View File

@ -2309,7 +2309,7 @@ void MainWindow::on_act_save_triggered()
m_thumb->refreshItem(m_currIndex);
}
else
m_thumb->updateItem(m_currIndex, savePath, false);
m_thumb->updateItem(m_currIndex, savePath, true);
m_currFilePath = savePath;
m_modify = false;

View File

@ -10,7 +10,7 @@ Dialog_Input::Dialog_Input(QWidget *parent) :
ui->setupUi(this);
setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
ui->lineEdit->setMaxLength(50);
ui->lineEdit->setMaxLength(20);
}
Dialog_Input::~Dialog_Input()