forked from qt-creator/qt-creator
Fix tr()/compiler warnings
This commit is contained in:
@@ -67,9 +67,9 @@ bool CodePasterProtocol::isValidHostName(const QString& hostName)
|
|||||||
if (hostName.isEmpty()) {
|
if (hostName.isEmpty()) {
|
||||||
ICore::instance()->messageManager()->printToOutputPane(
|
ICore::instance()->messageManager()->printToOutputPane(
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
tr("No Server defined in the CodePaster preferences!"),
|
tr("No Server defined in the CodePaster preferences."),
|
||||||
#else
|
#else
|
||||||
tr("No Server defined in the CodePaster options!"),
|
tr("No Server defined in the CodePaster options."),
|
||||||
#endif
|
#endif
|
||||||
true /*error*/);
|
true /*error*/);
|
||||||
ICore::instance()->messageManager()->showOutputPane();
|
ICore::instance()->messageManager()->showOutputPane();
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ void ProjectWelcomePageWidget::updateWelcomePage(const WelcomePageData &welcomeP
|
|||||||
if (welcomePageData.projectList.count() > 0) {
|
if (welcomePageData.projectList.count() > 0) {
|
||||||
foreach (const QStringPair &it, welcomePageData.projectList) {
|
foreach (const QStringPair &it, welcomePageData.projectList) {
|
||||||
const QFileInfo fi(it.first);
|
const QFileInfo fi(it.first);
|
||||||
QTreeWidgetItem *item = ui->projTreeWidget->addItem(it.second, it.first, fi.absolutePath());
|
ui->projTreeWidget->addItem(it.second, it.first, fi.absolutePath());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ui->projTreeWidget->hide();
|
ui->projTreeWidget->hide();
|
||||||
|
|||||||
Reference in New Issue
Block a user