From da4fcfbaf2b51ddb1205b72f8eec9e77e4925a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Mon, 16 Mar 2009 11:17:45 +0100 Subject: 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. --- src/plugins/cpptools/cpptoolsplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp') diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index 63a1808e3d..3ca1db8809 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -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"); -- cgit v1.2.1