Skip to content
Snippets Groups Projects
Commit da4fcfba authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -231,7 +231,7 @@ QString CppToolsPlugin::correspondingHeaderOrSourceI(const QString &fileName) co ...@@ -231,7 +231,7 @@ QString CppToolsPlugin::correspondingHeaderOrSourceI(const QString &fileName) co
return QString(); return QString();
const QDir absoluteDir = fi.absoluteDir(); const QDir absoluteDir = fi.absoluteDir();
const QString baseName = fi.baseName(); const QString baseName = fi.completeBaseName();
const QStringList suffixes = matchingCandidateSuffixes(mimeDatase, type); const QStringList suffixes = matchingCandidateSuffixes(mimeDatase, type);
const QString privateHeaderSuffix = QLatin1String("_p"); const QString privateHeaderSuffix = QLatin1String("_p");
......
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
namespace ProjectExplorer { namespace ProjectExplorer {
namespace Internal { namespace Internal {
/// //
/// DependenciesModel // DependenciesModel
/// //
class DependenciesModel : public QAbstractListModel class DependenciesModel : public QAbstractListModel
{ {
...@@ -137,9 +137,9 @@ Qt::ItemFlags DependenciesModel::flags(const QModelIndex &index) const ...@@ -137,9 +137,9 @@ Qt::ItemFlags DependenciesModel::flags(const QModelIndex &index) const
return rc; return rc;
} }
/// //
/// DependenciesWidget // DependenciesWidget
/// //
class DependenciesWidget : public QWidget class DependenciesWidget : public QWidget
{ {
...@@ -165,9 +165,9 @@ DependenciesWidget::DependenciesWidget(SessionManager *session, ...@@ -165,9 +165,9 @@ DependenciesWidget::DependenciesWidget(SessionManager *session,
m_ui.dependenciesView->setHeaderHidden(true); m_ui.dependenciesView->setHeaderHidden(true);
} }
/// //
/// DependenciesPanel // DependenciesPanel
/// //
DependenciesPanel::DependenciesPanel(SessionManager *session, Project *project) DependenciesPanel::DependenciesPanel(SessionManager *session, Project *project)
: PropertiesPanel() : PropertiesPanel()
...@@ -190,9 +190,9 @@ QWidget *DependenciesPanel::widget() ...@@ -190,9 +190,9 @@ QWidget *DependenciesPanel::widget()
return m_widget; return m_widget;
} }
/// //
/// DependenciesPanelFactory // DependenciesPanelFactory
/// //
DependenciesPanelFactory::DependenciesPanelFactory(SessionManager *session) DependenciesPanelFactory::DependenciesPanelFactory(SessionManager *session)
: m_session(session) : m_session(session)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment