forked from qt-creator/qt-creator
L10n: First round of tr()-Fixes for 2.2
This commit is contained in:
@@ -82,7 +82,7 @@ static inline QString msgAutoDetectFail(bool is64Bit, const QString &executable,
|
|||||||
const QString &extLib)
|
const QString &extLib)
|
||||||
{
|
{
|
||||||
return QCoreApplication::translate("Debugger::Cdb::CdbOptions",
|
return QCoreApplication::translate("Debugger::Cdb::CdbOptions",
|
||||||
"Auto-detection of the new CDB debugging engine (%1bit) failed:\n"
|
"Auto-detection of the CDB debugging engine (%1bit) failed:\n"
|
||||||
"Debugger executable: %2\n"
|
"Debugger executable: %2\n"
|
||||||
"Extension library : %3 not present.\n").arg(is64Bit ? 64 : 32).
|
"Extension library : %3 not present.\n").arg(is64Bit ? 64 : 32).
|
||||||
arg(QDir::toNativeSeparators(executable), QDir::toNativeSeparators(extLib));
|
arg(QDir::toNativeSeparators(executable), QDir::toNativeSeparators(extLib));
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ bool CdbOptionsPageWidget::checkInstallation(const QString &executable,
|
|||||||
// 2) Check on extension library
|
// 2) Check on extension library
|
||||||
const QFileInfo extensionFi(CdbEngine::extensionLibraryName(is64Bit));
|
const QFileInfo extensionFi(CdbEngine::extensionLibraryName(is64Bit));
|
||||||
if (extensionFi.isFile()) {
|
if (extensionFi.isFile()) {
|
||||||
message->append(tr("Extension library: %1, built: %3.\n").
|
message->append(tr("Extension library: %1, built: %2.\n").
|
||||||
arg(QDir::toNativeSeparators(extensionFi.absoluteFilePath())).
|
arg(QDir::toNativeSeparators(extensionFi.absoluteFilePath())).
|
||||||
arg(extensionFi.lastModified().toString(Qt::SystemLocaleShortDate)));
|
arg(extensionFi.lastModified().toString(Qt::SystemLocaleShortDate)));
|
||||||
checkedItems++;
|
checkedItems++;
|
||||||
|
|||||||
@@ -1356,7 +1356,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
|
|||||||
sp.executable = it->section('@', 1, 1);
|
sp.executable = it->section('@', 1, 1);
|
||||||
if (sp.remoteChannel.isEmpty()) {
|
if (sp.remoteChannel.isEmpty()) {
|
||||||
*errorMessage = DebuggerPlugin::tr("The parameter '%1' of option "
|
*errorMessage = DebuggerPlugin::tr("The parameter '%1' of option "
|
||||||
"'%2' does not match the pattern <server:port>@<exe>@<arch>.")
|
"'%2' does not match the pattern <server:port>@<executable>@<architecture>.")
|
||||||
.arg(*it, option);
|
.arg(*it, option);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4256,7 +4256,7 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb,
|
|||||||
showStatusMessage(_("%1 cannot find python").arg(nativeGdb));
|
showStatusMessage(_("%1 cannot find python").arg(nativeGdb));
|
||||||
const QString msg = tr("The gdb installed at %1 cannot "
|
const QString msg = tr("The gdb installed at %1 cannot "
|
||||||
"find a valid python installation in its %2 subdirectory.\n"
|
"find a valid python installation in its %2 subdirectory.\n"
|
||||||
"You may set the PYTHONPATH to your installation.")
|
"You may set the environment variable PYTHONPATH to point to your installation.")
|
||||||
.arg(nativeGdb).arg(winPythonVersion);
|
.arg(nativeGdb).arg(winPythonVersion);
|
||||||
handleAdapterStartFailed(msg, settingsIdHint);
|
handleAdapterStartFailed(msg, settingsIdHint);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -695,9 +695,8 @@ void QmlEngine::messageReceived(const QByteArray &message)
|
|||||||
QList<WatchData> locals;
|
QList<WatchData> locals;
|
||||||
stream >> stackFrames >> watches >> locals;
|
stream >> stackFrames >> watches >> locals;
|
||||||
|
|
||||||
logString += tr(" (%1 stack frames)").arg(stackFrames.size());
|
logString += QString::fromLatin1(" (%1 stack frames) (%2 watches) (%3 locals)").
|
||||||
logString += tr(" (%1 watches)").arg(watches.size());
|
arg(stackFrames.size()).arg(watches.size()).arg(locals.size());
|
||||||
logString += tr(" (%1 loacals)").arg(locals.size());
|
|
||||||
|
|
||||||
for (int i = 0; i != stackFrames.size(); ++i)
|
for (int i = 0; i != stackFrames.size(); ++i)
|
||||||
stackFrames[i].level = i + 1;
|
stackFrames[i].level = i + 1;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Save macro</string>
|
<string>Save Macro</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QFormLayout" name="formLayout">
|
<layout class="QFormLayout" name="formLayout">
|
||||||
<property name="fieldGrowthPolicy">
|
<property name="fieldGrowthPolicy">
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="showRunOutputCheckBox">
|
<widget class="QCheckBox" name="showRunOutputCheckBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Show run output on running</string>
|
<string>Pop up application output pane on running</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -180,6 +180,11 @@ bool NavigatorTreeModel::dropMimeData(const QMimeData *data,
|
|||||||
return false; // don't let the view do drag&drop on its own
|
return false; // don't let the view do drag&drop on its own
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline QString msgUnknownItem(const QString &t)
|
||||||
|
{
|
||||||
|
return NavigatorTreeModel::tr("Unknown item: %1").arg(t);
|
||||||
|
}
|
||||||
|
|
||||||
NavigatorTreeModel::ItemRow NavigatorTreeModel::createItemRow(const ModelNode &node)
|
NavigatorTreeModel::ItemRow NavigatorTreeModel::createItemRow(const ModelNode &node)
|
||||||
{
|
{
|
||||||
Q_ASSERT(node.isValid());
|
Q_ASSERT(node.isValid());
|
||||||
@@ -193,11 +198,11 @@ NavigatorTreeModel::ItemRow NavigatorTreeModel::createItemRow(const ModelNode &n
|
|||||||
idItem->setDropEnabled(dropEnabled);
|
idItem->setDropEnabled(dropEnabled);
|
||||||
idItem->setEditable(true);
|
idItem->setEditable(true);
|
||||||
idItem->setData(hash, NavigatorRole);
|
idItem->setData(hash, NavigatorRole);
|
||||||
if (node.metaInfo().isValid())
|
if (node.metaInfo().isValid()) {
|
||||||
idItem->setToolTip(node.type());
|
idItem->setToolTip(node.type());
|
||||||
else
|
} else {
|
||||||
idItem->setToolTip(tr("unkown item: ") + node.type());
|
idItem->setToolTip(msgUnknownItem(node.type()));
|
||||||
|
}
|
||||||
# ifdef _LOCK_ITEMS_
|
# ifdef _LOCK_ITEMS_
|
||||||
QStandardItem *lockItem = new QStandardItem;
|
QStandardItem *lockItem = new QStandardItem;
|
||||||
lockItem->setDragEnabled(true);
|
lockItem->setDragEnabled(true);
|
||||||
@@ -241,10 +246,11 @@ void NavigatorTreeModel::updateItemRow(const ModelNode &node, ItemRow items)
|
|||||||
|
|
||||||
items.idItem->setText(node.id());
|
items.idItem->setText(node.id());
|
||||||
items.visibilityItem->setCheckState(node.auxiliaryData("invisible").toBool() ? Qt::Unchecked : Qt::Checked);
|
items.visibilityItem->setCheckState(node.auxiliaryData("invisible").toBool() ? Qt::Unchecked : Qt::Checked);
|
||||||
if (node.metaInfo().isValid())
|
if (node.metaInfo().isValid()) {
|
||||||
items.idItem->setToolTip(node.type());
|
items.idItem->setToolTip(node.type());
|
||||||
else
|
} else {
|
||||||
items.idItem->setToolTip(tr("unkown item: ") + node.type());
|
items.idItem->setToolTip(msgUnknownItem(node.type()));
|
||||||
|
}
|
||||||
|
|
||||||
blockItemChangedSignal(blockSignal);
|
blockItemChangedSignal(blockSignal);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,19 +145,14 @@ Core::GeneratedFiles QmlProjectApplicationWizard::generateFiles(const QWizard *w
|
|||||||
{
|
{
|
||||||
QTextStream out(&projectContents);
|
QTextStream out(&projectContents);
|
||||||
|
|
||||||
out
|
out << "/* File generated by Qt Creator, version " << Core::Constants::IDE_VERSION_LONG << " */" << endl
|
||||||
//: Comment added to generated .qmlproject file
|
|
||||||
<< "/* "
|
|
||||||
<< tr("File generated by QtCreator, version %1",
|
|
||||||
"qmlproject Template").arg(Core::Constants::IDE_VERSION_LONG) << " */" << endl
|
|
||||||
<< endl
|
<< endl
|
||||||
<< "import QmlProject 1.1" << endl
|
<< "import QmlProject 1.1" << endl
|
||||||
<< endl
|
<< endl
|
||||||
<< "Project {" << endl
|
<< "Project {" << endl
|
||||||
//: Comment added to generated .qmlproject file
|
<< " mainFile: \"" << QDir(projectPath).relativeFilePath(mainFileName) << '"' << endl
|
||||||
<< " mainFile: \"" << QDir(projectPath).relativeFilePath(mainFileName) << "\"" << endl
|
|
||||||
<< endl
|
<< endl
|
||||||
<< " /* " << tr("Include .qml, .js, and image files from current directory and subdirectories", "qmlproject Template") << " */" << endl
|
<< " /* Include .qml, .js, and image files from current directory and subdirectories */" << endl
|
||||||
<< " QmlFiles {" << endl
|
<< " QmlFiles {" << endl
|
||||||
<< " directory: \".\"" << endl
|
<< " directory: \".\"" << endl
|
||||||
<< " }" << endl
|
<< " }" << endl
|
||||||
@@ -167,8 +162,7 @@ Core::GeneratedFiles QmlProjectApplicationWizard::generateFiles(const QWizard *w
|
|||||||
<< " ImageFiles {" << endl
|
<< " ImageFiles {" << endl
|
||||||
<< " directory: \".\"" << endl
|
<< " directory: \".\"" << endl
|
||||||
<< " }" << endl
|
<< " }" << endl
|
||||||
//: Comment added to generated .qmlproject file
|
<< " /* List of plugin directories passed to QML runtime */" << endl
|
||||||
<< " /* " << tr("List of plugin directories passed to QML runtime", "qmlproject Template") << " */" << endl
|
|
||||||
<< " // importPaths: [ \"../exampleplugin\" ]" << endl
|
<< " // importPaths: [ \"../exampleplugin\" ]" << endl
|
||||||
<< "}" << endl;
|
<< "}" << endl;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ bool CodaRunControl::setupLauncher()
|
|||||||
|
|
||||||
bool ok = m_codaDevice && m_codaDevice->device()->isOpen();
|
bool ok = m_codaDevice && m_codaDevice->device()->isOpen();
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
appendMessage(tr("Couldn't open serial device: %1").arg(m_codaDevice->device()->errorString()), ErrorMessageFormat);
|
appendMessage(tr("Could not open serial device: %1").arg(m_codaDevice->device()->errorString()), ErrorMessageFormat);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
connect(SymbianUtils::SymbianDeviceManager::instance(), SIGNAL(deviceRemoved(const SymbianUtils::SymbianDevice)),
|
connect(SymbianUtils::SymbianDeviceManager::instance(), SIGNAL(deviceRemoved(const SymbianUtils::SymbianDevice)),
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Certificate's details</string>
|
<string>Details of Certificate</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
|
|||||||
@@ -247,29 +247,22 @@ void S60CreatePackageStep::handleWarnAboutPatching()
|
|||||||
connect(m_patchWarningDialog, SIGNAL(finished(int)), this, SLOT(packageWarningDialogDone()));
|
connect(m_patchWarningDialog, SIGNAL(finished(int)), this, SLOT(packageWarningDialogDone()));
|
||||||
|
|
||||||
QString title;
|
QString title;
|
||||||
QString text;
|
QString changedText;
|
||||||
const QString &url = QString::fromLatin1("qthelp://com.nokia.qtcreator.%1%2%3/doc/creator-run-settings.html#capabilities-and-signing").
|
const QString url = QString::fromLatin1("qthelp://com.nokia.qtcreator.%1%2%3/doc/creator-run-settings.html#capabilities-and-signing").
|
||||||
arg(IDE_VERSION_MAJOR).arg(IDE_VERSION_MINOR).arg(IDE_VERSION_RELEASE);
|
arg(IDE_VERSION_MAJOR).arg(IDE_VERSION_MINOR).arg(IDE_VERSION_RELEASE);
|
||||||
if (m_packageChanges.count() == 1) {
|
if (m_packageChanges.count() == 1) {
|
||||||
title = tr("A Package was modified");
|
title = tr("Package Modified");
|
||||||
text = tr("<p>Qt modified your package <b>%1</b>.</p>"
|
changedText = tr("<p>Qt modified your package <b>%1</b>.</p>").arg(m_packageChanges.at(0).first);
|
||||||
"<p><em>These changes were not part of your build system</em> but are required to "
|
|
||||||
"make sure the <em>self-signed</em> package can be installed successfully on a "
|
|
||||||
"device.</p>"
|
|
||||||
"<p>Check the Build Issues for more details on the modifications made.</p>"
|
|
||||||
"<p>Please see <a href=\"%2\">"
|
|
||||||
"the documentation</a> for other signing options. These will prevent "
|
|
||||||
"this patching from happening.</p>").arg(m_packageChanges.at(0).first, url);
|
|
||||||
} else {
|
} else {
|
||||||
title = tr("Several Packages were modified");
|
title = tr("Packages Modified");
|
||||||
text = tr("<p>Qt modified some of your packages.</p>"
|
changedText = tr("<p>Qt modified some of your packages.</p>");
|
||||||
"<p><em>These changes were not part of your build system</em> but are required to "
|
|
||||||
"make sure the <em>self-signed</em> packages can be installed successfully.</p>"
|
|
||||||
"<p>Check the Build Issues for more details on the modifications made.</p>"
|
|
||||||
"<p>Please see <a href=\"%1\">"
|
|
||||||
"the documentation</a> for other signing options. These will prevent "
|
|
||||||
"this patching from happening.</p>").arg(url);
|
|
||||||
}
|
}
|
||||||
|
const QString text =
|
||||||
|
tr("%1<p><em>These changes were not part of your build system</em> but are required to "
|
||||||
|
"make sure the <em>self-signed</em> package can be installed successfully on a device.</p>"
|
||||||
|
"<p>Check the Build Issues pane for more details on the modifications made.</p>"
|
||||||
|
"<p>Please see the <a href=\"%2\">documentation</a> for other signing options which "
|
||||||
|
"remove the need for this patching.</p>").arg(changedText, url);
|
||||||
m_patchWarningDialog->setWindowTitle(title);
|
m_patchWarningDialog->setWindowTitle(title);
|
||||||
m_patchWarningDialog->setText(text);
|
m_patchWarningDialog->setText(text);
|
||||||
m_patchWarningDialog->setCheckBoxText(tr("Ignore patching for this packaging step."));
|
m_patchWarningDialog->setCheckBoxText(tr("Ignore patching for this packaging step."));
|
||||||
@@ -457,18 +450,16 @@ bool S60CreatePackageStep::validateCustomSigningResources(const QStringList &cap
|
|||||||
|
|
||||||
QString errorString;
|
QString errorString;
|
||||||
if (customSignaturePath().isEmpty())
|
if (customSignaturePath().isEmpty())
|
||||||
errorString = tr("Certificate file has not heen defined. "
|
errorString = tr("No certificate file specified. Please specify one in the project settings.");
|
||||||
"Please define certificate file in the project's options.");
|
|
||||||
else if (!QFileInfo(customSignaturePath()).exists())
|
else if (!QFileInfo(customSignaturePath()).exists())
|
||||||
errorString = tr("Certificate file \"%1\" does not exist. "
|
errorString = tr("Certificate file \"%1\" does not exist. "
|
||||||
"Please define certificate file in the project's options.").arg(customSignaturePath());
|
"Please specify an existing certificate file in the project settings.").arg(customSignaturePath());
|
||||||
|
|
||||||
if (customKeyPath().isEmpty())
|
if (customKeyPath().isEmpty())
|
||||||
errorString = tr("Key file has not heen defined. "
|
errorString = tr("No key file specified. Please specify one in the project settings.");
|
||||||
"Please define certificate file in the project's options.");
|
|
||||||
else if (!QFileInfo(customKeyPath()).exists())
|
else if (!QFileInfo(customKeyPath()).exists())
|
||||||
errorString = tr("Key file \"%1\" does not exist. "
|
errorString = tr("Key file \"%1\" does not exist. "
|
||||||
"Please define certificate file in the project's options.").arg(customKeyPath());
|
"Please specify an existing key file in the project settings.").arg(customKeyPath());
|
||||||
|
|
||||||
if (!errorString.isEmpty()) {
|
if (!errorString.isEmpty()) {
|
||||||
reportPackageStepIssue(errorString, true);
|
reportPackageStepIssue(errorString, true);
|
||||||
@@ -490,7 +481,7 @@ bool S60CreatePackageStep::validateCustomSigningResources(const QStringList &cap
|
|||||||
QStringList unsupportedCaps;
|
QStringList unsupportedCaps;
|
||||||
if (certInfoPtr.data()->compareCapabilities(capabilitiesInPro, unsupportedCaps)) {
|
if (certInfoPtr.data()->compareCapabilities(capabilitiesInPro, unsupportedCaps)) {
|
||||||
if (!unsupportedCaps.isEmpty()) {
|
if (!unsupportedCaps.isEmpty()) {
|
||||||
QString message = tr("The created package will not install on a "
|
QString message = tr("The package created will not install on a "
|
||||||
"device as some of the defined capabilities "
|
"device as some of the defined capabilities "
|
||||||
"are not supported by the certificate: %1")
|
"are not supported by the certificate: %1")
|
||||||
.arg(unsupportedCaps.join(" "));
|
.arg(unsupportedCaps.join(" "));
|
||||||
@@ -932,11 +923,11 @@ QString S60CreatePackageStepConfigWidget::summaryText() const
|
|||||||
case S60CreatePackageStep::SignCustom:
|
case S60CreatePackageStep::SignCustom:
|
||||||
if (!m_signStep->customSignaturePath().isEmpty()
|
if (!m_signStep->customSignaturePath().isEmpty()
|
||||||
&& !m_signStep->customKeyPath().isEmpty())
|
&& !m_signStep->customKeyPath().isEmpty())
|
||||||
text = tr("signed with \"%1\" certificate and \"%2\" key file")
|
text = tr("signed with the certificate \"%1\" using the key \"%2\"")
|
||||||
.arg(QFileInfo(m_signStep->customSignaturePath()).fileName(),
|
.arg(QFileInfo(m_signStep->customSignaturePath()).fileName(),
|
||||||
QFileInfo(m_signStep->customKeyPath()).fileName());
|
QFileInfo(m_signStep->customKeyPath()).fileName());
|
||||||
else
|
else
|
||||||
text = tr("signed with a certificate and a key that need to be defined");
|
text = tr("signed with a certificate and a key that need to be specified");
|
||||||
break;
|
break;
|
||||||
case S60CreatePackageStep::NotSigned:
|
case S60CreatePackageStep::NotSigned:
|
||||||
text = tr("not signed");
|
text = tr("not signed");
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ void S60DeployConfigurationWidget::init(ProjectExplorer::DeployConfiguration *dc
|
|||||||
debugClientHBoxLayout->addWidget(createCommunicationChannel());
|
debugClientHBoxLayout->addWidget(createCommunicationChannel());
|
||||||
debugClientHBoxLayout->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Ignored));
|
debugClientHBoxLayout->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Ignored));
|
||||||
|
|
||||||
QGroupBox *debugClientGroupBox = new QGroupBox(tr("Debug Client"));
|
QGroupBox *debugClientGroupBox = new QGroupBox(tr("Device Agent"));
|
||||||
debugClientGroupBox->setLayout(debugClientHBoxLayout);
|
debugClientGroupBox->setLayout(debugClientHBoxLayout);
|
||||||
|
|
||||||
bool usingTrk = m_deployConfiguration->communicationChannel() == S60DeployConfiguration::CommunicationTrkSerialConnection;
|
bool usingTrk = m_deployConfiguration->communicationChannel() == S60DeployConfiguration::CommunicationTrkSerialConnection;
|
||||||
@@ -467,7 +467,7 @@ void S60DeployConfigurationWidget::updateDeviceInfo()
|
|||||||
// Wait for either timeout or results
|
// Wait for either timeout or results
|
||||||
m_deviceInfoButton->setEnabled(false);
|
m_deviceInfoButton->setEnabled(false);
|
||||||
} else
|
} else
|
||||||
setDeviceInfoLabel(tr("Currently there is no information about device for CODA connection type."), true);
|
setDeviceInfoLabel(tr("Information about the device is not available when using CODA."), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ void S60DeployStep::startDeployment()
|
|||||||
QString deviceError = tr("No such port");
|
QString deviceError = tr("No such port");
|
||||||
if (m_codaDevice)
|
if (m_codaDevice)
|
||||||
deviceError = m_codaDevice->device()->errorString();
|
deviceError = m_codaDevice->device()->errorString();
|
||||||
reportError(tr("Couldn't open serial device: %1").arg(deviceError));
|
reportError(tr("Could not open serial device: %1").arg(deviceError));
|
||||||
stop();
|
stop();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -541,20 +541,21 @@ void S60DeployStep::startInstalling()
|
|||||||
void S60DeployStep::handleFileSystemOpen(const Coda::CodaCommandResult &result)
|
void S60DeployStep::handleFileSystemOpen(const Coda::CodaCommandResult &result)
|
||||||
{
|
{
|
||||||
if (result.type != Coda::CodaCommandResult::SuccessReply) {
|
if (result.type != Coda::CodaCommandResult::SuccessReply) {
|
||||||
reportError(tr("Open remote file failed: %1").arg(result.errorString()));
|
reportError(tr("Could not open remote file: %1").arg(result.errorString()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.values.size() < 1 || result.values.at(0).data().isEmpty()) {
|
if (result.values.size() < 1 || result.values.at(0).data().isEmpty()) {
|
||||||
reportError(tr("Internal error: No filehandle obtained"));
|
reportError(QLatin1String("Internal error: No filehandle obtained"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_remoteFileHandle = result.values.at(0).data();
|
m_remoteFileHandle = result.values.at(0).data();
|
||||||
|
|
||||||
m_putFile.reset(new QFile(m_signedPackages.at(m_currentFileIndex)));
|
const QString fileName = m_signedPackages.at(m_currentFileIndex);
|
||||||
|
m_putFile.reset(new QFile(fileName));
|
||||||
if (!m_putFile->open(QIODevice::ReadOnly)) { // Should not fail, was checked before
|
if (!m_putFile->open(QIODevice::ReadOnly)) { // Should not fail, was checked before
|
||||||
reportError(tr("Open local file failed: %1").arg(m_putFile->errorString()));
|
reportError(tr("Could not open local file %1: %2").arg(fileName, m_putFile->errorString()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
putSendNextChunk();
|
putSendNextChunk();
|
||||||
@@ -627,7 +628,7 @@ void S60DeployStep::handleFileSystemClose(const Coda::CodaCommandResult &result)
|
|||||||
else
|
else
|
||||||
initFileSending();
|
initFileSending();
|
||||||
} else {
|
} else {
|
||||||
reportError(tr("File close failed: %1").arg(result.toString()));
|
reportError(tr("Failed to close the remote file: %1").arg(result.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -794,7 +795,7 @@ void S60DeployStep::updateProgress(int progress)
|
|||||||
//appendMessage(tr("Copy percentage: %1%").arg((m_currentFileIndex*100 + progress) /m_signedPackages.count()), false);
|
//appendMessage(tr("Copy percentage: %1%").arg((m_currentFileIndex*100 + progress) /m_signedPackages.count()), false);
|
||||||
int copyProgress = ((m_currentFileIndex*100 + progress) /m_signedPackages.count());
|
int copyProgress = ((m_currentFileIndex*100 + progress) /m_signedPackages.count());
|
||||||
int entireProgress = copyProgress * 0.8; //the copy progress is just 80% of the whole deployment progress
|
int entireProgress = copyProgress * 0.8; //the copy progress is just 80% of the whole deployment progress
|
||||||
m_futureInterface->setProgressValueAndText(entireProgress, tr("Copy percentage: %1%").arg(copyProgress));
|
m_futureInterface->setProgressValueAndText(entireProgress, tr("Copy progress: %1%").arg(copyProgress));
|
||||||
}
|
}
|
||||||
|
|
||||||
// #pragma mark -- S60DeployStepWidget
|
// #pragma mark -- S60DeployStepWidget
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ static void updateBoilerPlateCodeFiles(const AbstractMobileApp *app, const QStri
|
|||||||
const QList<AbstractGeneratedFileInfo> updates =
|
const QList<AbstractGeneratedFileInfo> updates =
|
||||||
app->fileUpdates(proFile);
|
app->fileUpdates(proFile);
|
||||||
if (!updates.empty()) {
|
if (!updates.empty()) {
|
||||||
const QString title = Qt4Manager::tr("Update of generated files");
|
const QString title = Qt4Manager::tr("Update of Generated Files");
|
||||||
QStringList fileNames;
|
QStringList fileNames;
|
||||||
foreach (const AbstractGeneratedFileInfo &info, updates)
|
foreach (const AbstractGeneratedFileInfo &info, updates)
|
||||||
fileNames.append(QDir::toNativeSeparators(info.fileInfo.fileName()));
|
fileNames.append(QDir::toNativeSeparators(info.fileInfo.fileName()));
|
||||||
|
|||||||
@@ -494,17 +494,13 @@ Influences the indentation of continuation lines.
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="utf8BomBox">
|
<widget class="QComboBox" name="utf8BomBox">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><html><head/><body>
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<p>How text editors should deal with UTF-8 Byte Order Marks. The options are:</p>
|
||||||
p, li { white-space: pre-wrap; }
|
<ul ><li><i>Add If Encoding Is UTF-8:</i> always add a BOM when saving a file in UTF-8 encoding. Note that this will not work if the encoding is <i>System</i>, as Qt Creator does not know what it actually is.</li>
|
||||||
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
|
<li><i>Keep If Already Present: </i>save the file with a BOM if it already had one when it was loaded.</li>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">How text editors should deal with UTF-8 Byte Order Marks. The options are:</p>
|
<li><i>Always Delete:</i> never write an UTF-8 BOM, possibly deleting a pre-existing one.</li></ul>
|
||||||
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Add If Encoding Is UTF-8:</span> always add a BOM when saving a file in UTF-8 encoding. Note that this will not work if the encoding is <span style=" font-style:italic;">System</span>, as Qt Creator does not know what it actually is.</li>
|
<p>Note that UTF-8 BOMs are uncommon and treated incorrectly by some editors, so it usually makes little sense to add any.</p>
|
||||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Keep If Already Present: </span>save the file with a BOM if it already had one when it was loaded.</li>
|
<p>This setting does <b>not</b> influence the use of UTF-16 and UTF-32 BOMs.</p></body></html></string>
|
||||||
<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Always Delete:</span> never write an UTF-8 BOM, possibly deleting a pre-existing one.</li></ul>
|
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Note that UTF-8 BOMs are uncommon and treated incorrectly by some editors, so it usually makes little sense to add any.</p>
|
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This setting does <span style=" font-weight:600;">not</span> influence the use of UTF-16 and UTF-32 BOMs.</p>
|
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html></string>
|
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|||||||
Reference in New Issue
Block a user