Commit da4fcfba authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer

Fixed switching header/source with additional dots in the filename

For example when a file was called test.something.cpp, it would search
for test.h instead of test.something.h.
parent 408b533d
......@@ -231,7 +231,7 @@ QString CppToolsPlugin::correspondingHeaderOrSourceI(const QString &fileName) co
return QString();
const QDir absoluteDir = fi.absoluteDir();
const QString baseName = fi.baseName();
const QString baseName = fi.completeBaseName();
const QStringList suffixes = matchingCandidateSuffixes(mimeDatase, type);
const QString privateHeaderSuffix = QLatin1String("_p");
......
......@@ -43,9 +43,9 @@
namespace ProjectExplorer {
namespace Internal {
///
/// DependenciesModel
///
//
// DependenciesModel
//
class DependenciesModel : public QAbstractListModel
{
......@@ -137,9 +137,9 @@ Qt::ItemFlags DependenciesModel::flags(const QModelIndex &index) const
return rc;
}
///
/// DependenciesWidget
///
//
// DependenciesWidget
//
class DependenciesWidget : public QWidget
{
......@@ -165,9 +165,9 @@ DependenciesWidget::DependenciesWidget(SessionManager *session,
m_ui.dependenciesView->setHeaderHidden(true);
}
///
/// DependenciesPanel
///
//
// DependenciesPanel
//
DependenciesPanel::DependenciesPanel(SessionManager *session, Project *project)
: PropertiesPanel()
......@@ -190,9 +190,9 @@ QWidget *DependenciesPanel::widget()
return m_widget;
}
///
/// DependenciesPanelFactory
///
//
// DependenciesPanelFactory
//
DependenciesPanelFactory::DependenciesPanelFactory(SessionManager *session)
: m_session(session)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment