ui: Fixes in project setup

* fixed include paths fetched from CDB not canonical
* fixed content names
This commit is contained in:
Eberhard Graether
2017-10-25 00:57:28 +02:00
parent c4de8f1af8
commit c73e58893e
4 changed files with 10 additions and 11 deletions
@@ -15,7 +15,7 @@ QtProjectWizzardContentCDBSource::QtProjectWizzardContentCDBSource(
void QtProjectWizzardContentCDBSource::populate(QGridLayout* layout, int& row)
{
QLabel* title = createFormLabel("Source Files");
QLabel* title = createFormLabel("Source Files to Index");
layout->addWidget(title, row, QtProjectWizzardWindow::FRONT_COL, Qt::AlignTop);
layout->setRowStretch(row, 0);
@@ -276,7 +276,7 @@ void QtProjectWizzardContentPathsCDBHeader::load()
}
m_settings->setSourcePaths(sourcePaths);
}
QtProjectWizzardContentPathsSource::load();
}
@@ -285,7 +285,7 @@ bool QtProjectWizzardContentPathsCDBHeader::check()
if (!m_list->getList().size())
{
QMessageBox msgBox;
msgBox.setText("You didn't specify any Indexed Header Paths.");
msgBox.setText("You didn't specify any Header Files & Directories to Index.");
msgBox.setInformativeText(
"Sourcetrail will only index the source files listed in the compilation database file and none of the included "
"header files.");
@@ -325,9 +325,9 @@ void QtProjectWizzardContentPathsCDBHeader::buttonClicked()
connect(m_filesDialog.get(), &QtSelectPathsDialog::finished, this, &QtProjectWizzardContentPathsCDBHeader::savedFilesDialog);
connect(m_filesDialog.get(), &QtSelectPathsDialog::canceled, this, &QtProjectWizzardContentPathsCDBHeader::closedFilesDialog);
dynamic_cast<QtSelectPathsDialog*>(m_filesDialog.get())->setPathsList(
getTopLevelHeaderSearchPaths(std::dynamic_pointer_cast<SourceGroupSettingsCxxCdb>(m_settings)),
getTopLevelHeaderSearchPaths(std::dynamic_pointer_cast<SourceGroupSettingsCxxCdb>(m_settings)),
m_settings->getSourcePaths()
);
}