forked from qt-creator/qt-creator
more style
Change-Id: Iecd6819a5376beced5413f134d3026fb889a13b1 Reviewed-on: http://codereview.qt-project.org/5115 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -564,44 +564,44 @@ void SnippetsSettingsPagePrivate::decorateEditors(const TextEditor::FontSettings
|
||||
// SnippetsSettingsPage
|
||||
SnippetsSettingsPage::SnippetsSettingsPage(const QString &id, QObject *parent) :
|
||||
TextEditorOptionsPage(parent),
|
||||
m_d(new SnippetsSettingsPagePrivate(id))
|
||||
d(new SnippetsSettingsPagePrivate(id))
|
||||
{}
|
||||
|
||||
SnippetsSettingsPage::~SnippetsSettingsPage()
|
||||
{
|
||||
delete m_d;
|
||||
delete d;
|
||||
}
|
||||
|
||||
QString SnippetsSettingsPage::id() const
|
||||
{
|
||||
return m_d->id();
|
||||
return d->id();
|
||||
}
|
||||
|
||||
QString SnippetsSettingsPage::displayName() const
|
||||
{
|
||||
return m_d->displayName();
|
||||
return d->displayName();
|
||||
}
|
||||
|
||||
bool SnippetsSettingsPage::matches(const QString &s) const
|
||||
{
|
||||
return m_d->isKeyword(s);
|
||||
return d->isKeyword(s);
|
||||
}
|
||||
|
||||
QWidget *SnippetsSettingsPage::createPage(QWidget *parent)
|
||||
{
|
||||
QWidget *w = new QWidget(parent);
|
||||
m_d->configureUi(w);
|
||||
d->configureUi(w);
|
||||
return w;
|
||||
}
|
||||
|
||||
void SnippetsSettingsPage::apply()
|
||||
{
|
||||
m_d->apply();
|
||||
d->apply();
|
||||
}
|
||||
|
||||
void SnippetsSettingsPage::finish()
|
||||
{
|
||||
m_d->finish();
|
||||
d->finish();
|
||||
}
|
||||
|
||||
} // Internal
|
||||
|
||||
@@ -43,6 +43,7 @@ class SnippetsSettingsPagePrivate;
|
||||
class SnippetsSettingsPage : public TextEditorOptionsPage
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SnippetsSettingsPage(const QString &id, QObject *parent);
|
||||
virtual ~SnippetsSettingsPage();
|
||||
@@ -55,7 +56,7 @@ public:
|
||||
virtual void finish();
|
||||
|
||||
private:
|
||||
SnippetsSettingsPagePrivate *m_d;
|
||||
SnippetsSettingsPagePrivate *d;
|
||||
};
|
||||
|
||||
} // Internal
|
||||
|
||||
Reference in New Issue
Block a user