mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-01 04:08:46 -06:00
Merge topic 'readability-static-accessed-through-instance'
3e60580784 clang-tidy: Fix readability-static-accessed-through-instance
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2647
This commit is contained in:
@@ -32,12 +32,12 @@ AddCacheEntry::AddCacheEntry(QWidget* p, const QStringList& varNames,
|
||||
this->StackedWidget->addWidget(path);
|
||||
this->StackedWidget->addWidget(filepath);
|
||||
this->StackedWidget->addWidget(string);
|
||||
this->setTabOrder(this->Name, this->Type);
|
||||
this->setTabOrder(this->Type, cb);
|
||||
this->setTabOrder(cb, path);
|
||||
this->setTabOrder(path, filepath);
|
||||
this->setTabOrder(filepath, string);
|
||||
this->setTabOrder(string, this->Description);
|
||||
AddCacheEntry::setTabOrder(this->Name, this->Type);
|
||||
AddCacheEntry::setTabOrder(this->Type, cb);
|
||||
AddCacheEntry::setTabOrder(cb, path);
|
||||
AddCacheEntry::setTabOrder(path, filepath);
|
||||
AddCacheEntry::setTabOrder(filepath, string);
|
||||
AddCacheEntry::setTabOrder(string, this->Description);
|
||||
QCompleter* completer = new QCompleter(this->VarNames, this);
|
||||
this->Name->setCompleter(completer);
|
||||
connect(completer, SIGNAL(activated(const QString&)), this,
|
||||
|
||||
@@ -130,15 +130,15 @@ int main(int argc, char** argv)
|
||||
QTranslator translator;
|
||||
QString transfile = QString("cmake_%1").arg(QLocale::system().name());
|
||||
translator.load(transfile, translationsDir.path());
|
||||
app.installTranslator(&translator);
|
||||
QApplication::installTranslator(&translator);
|
||||
|
||||
// app setup
|
||||
app.setApplicationName("CMakeSetup");
|
||||
app.setOrganizationName("Kitware");
|
||||
QApplication::setApplicationName("CMakeSetup");
|
||||
QApplication::setOrganizationName("Kitware");
|
||||
QIcon appIcon;
|
||||
appIcon.addFile(":/Icons/CMakeSetup32.png");
|
||||
appIcon.addFile(":/Icons/CMakeSetup128.png");
|
||||
app.setWindowIcon(appIcon);
|
||||
QApplication::setWindowIcon(appIcon);
|
||||
|
||||
CMakeSetupDialog dialog;
|
||||
dialog.show();
|
||||
@@ -159,7 +159,7 @@ int main(int argc, char** argv)
|
||||
dialog.setSourceDirectory(QString::fromLocal8Bit(sourceDirectory.c_str()));
|
||||
dialog.setBinaryDirectory(QString::fromLocal8Bit(binaryDirectory.c_str()));
|
||||
} else {
|
||||
QStringList args = app.arguments();
|
||||
QStringList args = QApplication::arguments();
|
||||
if (args.count() == 2) {
|
||||
std::string filePath =
|
||||
cmSystemTools::CollapseFullPath(args[1].toLocal8Bit().data());
|
||||
@@ -189,7 +189,7 @@ int main(int argc, char** argv)
|
||||
}
|
||||
}
|
||||
|
||||
return app.exec();
|
||||
return QApplication::exec();
|
||||
}
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
|
||||
@@ -248,9 +248,9 @@ void QCMakeCacheModel::setProperties(const QCMakePropertyList& props)
|
||||
}
|
||||
} else if (this->View == GroupView) {
|
||||
QMap<QString, QCMakePropertyList> newPropsTree;
|
||||
this->breakProperties(newProps, newPropsTree);
|
||||
QCMakeCacheModel::breakProperties(newProps, newPropsTree);
|
||||
QMap<QString, QCMakePropertyList> newPropsTree2;
|
||||
this->breakProperties(newProps2, newPropsTree2);
|
||||
QCMakeCacheModel::breakProperties(newProps2, newPropsTree2);
|
||||
|
||||
QStandardItem* root = this->invisibleRootItem();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user