Fix tr()/compiler warnings

This commit is contained in:
Friedemann Kleint
2009-10-28 17:17:01 +01:00
parent 8b2c15013e
commit b7e03ffdb7
3 changed files with 4 additions and 4 deletions

View File

@@ -67,9 +67,9 @@ bool CodePasterProtocol::isValidHostName(const QString& hostName)
if (hostName.isEmpty()) {
ICore::instance()->messageManager()->printToOutputPane(
#ifdef Q_OS_MAC
tr("No Server defined in the CodePaster preferences!"),
tr("No Server defined in the CodePaster preferences."),
#else
tr("No Server defined in the CodePaster options!"),
tr("No Server defined in the CodePaster options."),
#endif
true /*error*/);
ICore::instance()->messageManager()->showOutputPane();

View File

@@ -125,7 +125,7 @@ void ProjectWelcomePageWidget::updateWelcomePage(const WelcomePageData &welcomeP
if (welcomePageData.projectList.count() > 0) {
foreach (const QStringPair &it, welcomePageData.projectList) {
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 {
ui->projTreeWidget->hide();