forked from qt-creator/qt-creator
Fix tr()/compiler warnings
This commit is contained in:
@@ -68,7 +68,7 @@ using namespace Core;
|
||||
using namespace Core::Internal;
|
||||
|
||||
|
||||
//================EditorView====================
|
||||
// ================EditorView====================
|
||||
|
||||
EditorView::EditorView(OpenEditorsModel *model, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user