解决扫描至功能,拖动会造成文件夹内文件顺序异常的问题

This commit is contained in:
yangjiaxuan 2024-01-08 16:17:26 +08:00
parent 1d68833034
commit a4d4455bf0
1 changed files with 6 additions and 1 deletions

View File

@ -756,7 +756,12 @@ void MainWindow::on_itemSelectingChanged()
static bool Greater(const QString &str1, const QString &str2) static bool Greater(const QString &str1, const QString &str2)
{ {
return str1 < str2; if (str1.size() == str2.size())
{
return str1 < str2;
}
return str1.size() < str2.size();
} }
void MainWindow::on_currItemChanged(int index) void MainWindow::on_currItemChanged(int index)