Dont auto scroll when copy by drag & drop

This commit is contained in:
Roy Qu 2024-04-11 08:09:43 +08:00
parent 88db0b283a
commit 05a36d3ed1
2 changed files with 5 additions and 5 deletions

View File

@ -478,7 +478,7 @@ void ProjectCompiler::writeMakeObjFilesRules(QFile &file)
if (sourceEncoding==ENCODING_SYSTEM_DEFAULT)
sourceEncoding = defaultSystemEncoding;
if (sourceEncoding!=targetEncoding) {
if (QString::compare(sourceEncoding,targetEncoding,Qt::CaseInsensitive)!=0) {
encodingStr = QString(" -finput-charset=%1 -fexec-charset=%2")
.arg(QString(sourceEncoding),
QString(targetEncoding));

View File

@ -399,10 +399,10 @@ MainWindow::MainWindow(QWidget *parent)
m=ui->treeFiles->selectionModel();
ui->treeFiles->setModel(&mFileSystemModel);
delete m;
connect(&mFileSystemModel, &QFileSystemModel::layoutChanged,
this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection);
connect(&mFileSystemModel, &QFileSystemModel::fileRenamed,
this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection);
// connect(&mFileSystemModel, &QFileSystemModel::layoutChanged,
// this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection);
// connect(&mFileSystemModel, &QFileSystemModel::fileRenamed,
// this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection);
connect(&mFileSystemModel, &QFileSystemModel::fileRenamed,
this, &MainWindow::onFileRenamedInFileSystemModel);
mFileSystemModel.setReadOnly(false);