forked from qt-creator/qt-creator
compile fix with namespaces
Change-Id: I1b888ff8bd5c30a13dc8c00824d4cae6990a4b23 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -34,27 +34,20 @@
|
||||
#define CPPSETTINGSPAGE_H
|
||||
|
||||
#include <coreplugin/dialogs/ioptionspage.h>
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
#include <QtCore/QSharedPointer>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace CppTools {
|
||||
namespace Internal {
|
||||
namespace Ui {
|
||||
class CppFileSettingsPage;
|
||||
} // namespace Ui
|
||||
} // namespace Internal
|
||||
} // namespace CppTools
|
||||
|
||||
class QSettings;
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace CppTools {
|
||||
namespace Internal {
|
||||
|
||||
namespace Ui { class CppFileSettingsPage; }
|
||||
|
||||
struct CppFileSettings
|
||||
{
|
||||
CppFileSettings();
|
||||
@@ -73,11 +66,10 @@ struct CppFileSettings
|
||||
static QString licenseTemplate(const QString &file = QString(), const QString &className = QString());
|
||||
|
||||
bool equals(const CppFileSettings &rhs) const;
|
||||
bool operator==(const CppFileSettings &s) const { return equals(s); }
|
||||
bool operator!=(const CppFileSettings &s) const { return !equals(s); }
|
||||
};
|
||||
|
||||
inline bool operator==(const CppFileSettings &s1, const CppFileSettings &s2) { return s1.equals(s2); }
|
||||
inline bool operator!=(const CppFileSettings &s1, const CppFileSettings &s2) { return !s1.equals(s2); }
|
||||
|
||||
class CppFileSettingsWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -98,7 +90,7 @@ private:
|
||||
inline QString licenseTemplatePath() const;
|
||||
inline void setLicenseTemplatePath(const QString &);
|
||||
|
||||
Internal::Ui::CppFileSettingsPage *m_ui;
|
||||
Ui::CppFileSettingsPage *m_ui;
|
||||
};
|
||||
|
||||
class CppFileSettingsPage : public Core::IOptionsPage
|
||||
|
||||
Reference in New Issue
Block a user