CppTools: Export CppCodeModelSettings

Needed for the ClangCodeModel tests, where we need to activate the clang
code model.

Change-Id: I368b840875ca2a46da4535338bf55967cbcdf5ea
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2015-06-02 17:25:41 +02:00
parent 65137313b0
commit 45194515c0
5 changed files with 34 additions and 14 deletions

View File

@@ -28,8 +28,10 @@
**
****************************************************************************/
#ifndef CPPTOOLS_INTERNAL_CPPCODEMODELSETTINGS_H
#define CPPTOOLS_INTERNAL_CPPCODEMODELSETTINGS_H
#ifndef CPPTOOLS_CPPCODEMODELSETTINGS_H
#define CPPTOOLS_CPPCODEMODELSETTINGS_H
#include "cpptools_global.h"
#include <QHash>
#include <QList>
@@ -40,9 +42,7 @@ namespace CppTools {
class ModelManagerSupport;
namespace Internal {
class CppCodeModelSettings
class CPPTOOLS_EXPORT CppCodeModelSettings
{
public:
enum PCHUsage {
@@ -73,6 +73,8 @@ public:
PCHUsage pchUsage() const { return m_pchUsage; }
void setPCHUsage(PCHUsage pchUsage) { m_pchUsage = pchUsage; }
static QStringList supportedMimeTypes();
private:
void setIdForMimeType(const QVariant &var, const QString &mimeType);
@@ -83,7 +85,6 @@ private:
PCHUsage m_pchUsage;
};
} // namespace Internal
} // namespace CppTools
#endif // CPPTOOLS_INTERNAL_CPPCODEMODELSETTINGS_H
#endif // CPPTOOLS_CPPCODEMODELSETTINGS_H