Dont auto scroll when copy by drag & drop
This commit is contained in:
parent
88db0b283a
commit
05a36d3ed1
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue