Merge remote-tracking branch 'origin/3.4'

This commit is contained in:
Eike Ziller
2015-06-03 08:39:25 +02:00
6 changed files with 19 additions and 12 deletions

View File

@@ -19,6 +19,11 @@ Editing
* Fixed that the completion popup could become huge * Fixed that the completion popup could become huge
(QTCREATORBUG-14331) (QTCREATORBUG-14331)
Help
* Fixed that manually registered documentation vanished on restart
on Windows (QTCREATORBUG-14249)
Project Management Project Management
* Fixed adding static libraries with `Add Library` wizard * Fixed adding static libraries with `Add Library` wizard
@@ -54,6 +59,8 @@ C++ Support
QML Support QML Support
* Fixed completion for QtQml and QtQml.Models (QTCREATORBUG-13780) * Fixed completion for QtQml and QtQml.Models (QTCREATORBUG-13780)
* Fixed that dragging items from QML overview onto editor removed the
items (QTCREATORBUG-14496)
Platform Specific Platform Specific

View File

@@ -105,7 +105,7 @@
<description><![CDATA[Monitoring the performance of a Qt Quick application.]]></description> <description><![CDATA[Monitoring the performance of a Qt Quick application.]]></description>
<tags>qt quick,qt creator,qml profiler</tags> <tags>qt quick,qt creator,qml profiler</tags>
</tutorial> </tutorial>
<tutorial imageUrl="images/icons/ddays14.png" difficulty="" projectPath="" name="Introducing Qt 3D 2.0 (3D Rendering & Visualisation)" isVideo="true" videoUrl="https://www.youtube.com/watch?v=WbLBgpancME" videoLength="1:01:24"> <tutorial imageUrl="images/icons/ddays14.png" difficulty="" projectPath="" name="Introducing Qt 3D 2.0 (3D Rendering &amp; Visualization)" isVideo="true" videoUrl="https://www.youtube.com/watch?v=WbLBgpancME" videoLength="1:01:24">
<description><![CDATA[Rendering and visualization in Qt 3D.]]></description> <description><![CDATA[Rendering and visualization in Qt 3D.]]></description>
<tags>qt,3d</tags> <tags>qt,3d</tags>
</tutorial> </tutorial>

View File

@@ -103,7 +103,7 @@ void DocSettingsPage::addDocumentation()
} }
addItem(nameSpace, file, true/*user managed*/); addItem(nameSpace, file, true/*user managed*/);
m_filesToRegister.insert(nameSpace, QDir::toNativeSeparators(filePath)); m_filesToRegister.insert(nameSpace, filePath);
m_filesToRegisterUserManaged.insert(nameSpace, true/*user managed*/); m_filesToRegisterUserManaged.insert(nameSpace, true/*user managed*/);
// If the files to unregister contains the namespace, grab a copy of all paths added and try to // If the files to unregister contains the namespace, grab a copy of all paths added and try to

View File

@@ -225,6 +225,7 @@ static const char *const variableKeywords[] = {
"UI_HEADERS_DIR", "UI_HEADERS_DIR",
"UI_SOURCES_DIR", "UI_SOURCES_DIR",
"VERSION", "VERSION",
"VERSION_PE_HEADER",
"VER_MAJ", "VER_MAJ",
"VER_MIN", "VER_MIN",
"VER_PAT", "VER_PAT",

View File

@@ -31,6 +31,7 @@
#include <projectexplorer/deployablefile.h> #include <projectexplorer/deployablefile.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/qtcprocess.h>
#include <ssh/sftpchannel.h> #include <ssh/sftpchannel.h>
#include <ssh/sshconnection.h> #include <ssh/sshconnection.h>
#include <ssh/sshremoteprocess.h> #include <ssh/sshremoteprocess.h>
@@ -184,7 +185,8 @@ void GenericDirectUploadService::handleUploadFinished(SftpJobId jobId, const QSt
// This is done for Windows. // This is done for Windows.
if (df.isExecutable()) { if (df.isExecutable()) {
const QString command = QLatin1String("chmod a+x ") + df.remoteFilePath(); const QString command = QLatin1String("chmod a+x ")
+ Utils::QtcProcess::quoteArgUnix(df.remoteFilePath());
d->chmodProc = connection()->createRemoteProcess(command.toUtf8()); d->chmodProc = connection()->createRemoteProcess(command.toUtf8());
connect(d->chmodProc.data(), SIGNAL(closed(int)), SLOT(handleChmodFinished(int))); connect(d->chmodProc.data(), SIGNAL(closed(int)), SLOT(handleChmodFinished(int)));
connect(d->chmodProc.data(), SIGNAL(readyReadStandardOutput()), connect(d->chmodProc.data(), SIGNAL(readyReadStandardOutput()),
@@ -263,8 +265,9 @@ void GenericDirectUploadService::handleMkdirFinished(int exitStatus)
const QString remoteFilePath = df.remoteDirectory() + QLatin1Char('/') + fi.fileName(); const QString remoteFilePath = df.remoteDirectory() + QLatin1Char('/') + fi.fileName();
if (fi.isSymLink()) { if (fi.isSymLink()) {
const QString target = fi.dir().relativeFilePath(fi.symLinkTarget()); // see QTBUG-5817. const QString target = fi.dir().relativeFilePath(fi.symLinkTarget()); // see QTBUG-5817.
const QString command = QLatin1String("ln -sf ") + target + QLatin1Char(' ') const QStringList args = QStringList() << QLatin1String("ln") << QLatin1String("-sf")
+ remoteFilePath; << target << remoteFilePath;
const QString command = Utils::QtcProcess::joinArgs(args, Utils::OsTypeLinux);
// See comment in SftpChannel::createLink as to why we can't use it. // See comment in SftpChannel::createLink as to why we can't use it.
d->lnProc = connection()->createRemoteProcess(command.toUtf8()); d->lnProc = connection()->createRemoteProcess(command.toUtf8());
@@ -370,7 +373,8 @@ void GenericDirectUploadService::uploadNextFile()
QFileInfo fi = df.localFilePath().toFileInfo(); QFileInfo fi = df.localFilePath().toFileInfo();
if (fi.isDir()) if (fi.isDir())
dirToCreate += QLatin1Char('/') + fi.fileName(); dirToCreate += QLatin1Char('/') + fi.fileName();
const QString command = QLatin1String("mkdir -p ") + dirToCreate; const QString command = QLatin1String("mkdir -p ")
+ Utils::QtcProcess::quoteArgUnix(dirToCreate);
d->mkdirProc = connection()->createRemoteProcess(command.toUtf8()); d->mkdirProc = connection()->createRemoteProcess(command.toUtf8());
connect(d->mkdirProc.data(), SIGNAL(closed(int)), SLOT(handleMkdirFinished(int))); connect(d->mkdirProc.data(), SIGNAL(closed(int)), SLOT(handleMkdirFinished(int)));
connect(d->mkdirProc.data(), SIGNAL(readyReadStandardOutput()), SLOT(handleStdOutData())); connect(d->mkdirProc.data(), SIGNAL(readyReadStandardOutput()), SLOT(handleStdOutData()));

View File

@@ -55,12 +55,7 @@ def main():
previous = filenames[-1] previous = filenames[-1]
for filename in filenames: for filename in filenames:
tempFiletype = filetype tempFiletype = filetype
if previous in ("test", "TEST"): if previous in ("test", "TEST") or filetype == "QML" and previous[-4:] != ".qml":
if tempFiletype in ("Headers", "Sources", "QML"):
tempFiletype = "Sources"
else: # then it must be Resources
tempFiletype = "Other files"
elif filetype == "QML" and previous[-4:] != ".qml":
tempFiletype = "Other files" tempFiletype = "Other files"
renameFile(templateDir, usedProFile, projectName + "." + tempFiletype, renameFile(templateDir, usedProFile, projectName + "." + tempFiletype,
previous, filename) previous, filename)