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)
|
if (sourceEncoding==ENCODING_SYSTEM_DEFAULT)
|
||||||
sourceEncoding = defaultSystemEncoding;
|
sourceEncoding = defaultSystemEncoding;
|
||||||
|
|
||||||
if (sourceEncoding!=targetEncoding) {
|
if (QString::compare(sourceEncoding,targetEncoding,Qt::CaseInsensitive)!=0) {
|
||||||
encodingStr = QString(" -finput-charset=%1 -fexec-charset=%2")
|
encodingStr = QString(" -finput-charset=%1 -fexec-charset=%2")
|
||||||
.arg(QString(sourceEncoding),
|
.arg(QString(sourceEncoding),
|
||||||
QString(targetEncoding));
|
QString(targetEncoding));
|
||||||
|
|
|
@ -399,10 +399,10 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
m=ui->treeFiles->selectionModel();
|
m=ui->treeFiles->selectionModel();
|
||||||
ui->treeFiles->setModel(&mFileSystemModel);
|
ui->treeFiles->setModel(&mFileSystemModel);
|
||||||
delete m;
|
delete m;
|
||||||
connect(&mFileSystemModel, &QFileSystemModel::layoutChanged,
|
// connect(&mFileSystemModel, &QFileSystemModel::layoutChanged,
|
||||||
this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection);
|
// this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection);
|
||||||
connect(&mFileSystemModel, &QFileSystemModel::fileRenamed,
|
// connect(&mFileSystemModel, &QFileSystemModel::fileRenamed,
|
||||||
this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection);
|
// this, &MainWindow::onFileSystemModelLayoutChanged, Qt::QueuedConnection);
|
||||||
connect(&mFileSystemModel, &QFileSystemModel::fileRenamed,
|
connect(&mFileSystemModel, &QFileSystemModel::fileRenamed,
|
||||||
this, &MainWindow::onFileRenamedInFileSystemModel);
|
this, &MainWindow::onFileRenamedInFileSystemModel);
|
||||||
mFileSystemModel.setReadOnly(false);
|
mFileSystemModel.setReadOnly(false);
|
||||||
|
|
Loading…
Reference in New Issue