From b34af22fcc7e9321e5a7943763cd68a1d51a36d5 Mon Sep 17 00:00:00 2001
From: Christian Stenger <christian.stenger@digia.com>
Date: Thu, 22 Nov 2012 15:24:49 +0100
Subject: [PATCH] Stylefixes for examples in qtxmlpatterns

Change-Id: I5a7a22779f13805479b37970888a26250c56a70d
Reviewed-by: hjk <qthjk@ovi.com>
---
 examples/xmlpatterns/filetree/filetree.h      |  6 +-
 examples/xmlpatterns/filetree/mainwindow.h    |  6 +-
 .../xmlpatterns/recipes/querymainwindow.h     |  6 +-
 examples/xmlpatterns/schema/mainwindow.cpp    | 74 +++++++++----------
 examples/xmlpatterns/schema/mainwindow.h      |  6 +-
 5 files changed, 49 insertions(+), 49 deletions(-)

diff --git a/examples/xmlpatterns/filetree/filetree.h b/examples/xmlpatterns/filetree/filetree.h
index 159dd35f..996cf992 100644
--- a/examples/xmlpatterns/filetree/filetree.h
+++ b/examples/xmlpatterns/filetree/filetree.h
@@ -45,7 +45,7 @@
 
 class FileTree : public QSimpleXmlNodeModel
 {
- public:
+public:
     FileTree(const QXmlNamePool &namePool);
 
     QXmlNodeModelIndex nodeFor(const QString &fileName) const;
@@ -58,13 +58,13 @@ class FileTree : public QSimpleXmlNodeModel
     virtual QXmlNodeModelIndex root(const QXmlNodeModelIndex &node) const;
     virtual QVariant typedValue(const QXmlNodeModelIndex &node) const;
     //! [0]
- protected:
+protected:
     //! [1]
     virtual QVector<QXmlNodeModelIndex> attributes(const QXmlNodeModelIndex &element) const;
     virtual QXmlNodeModelIndex nextFromSimpleAxis(SimpleAxis, const QXmlNodeModelIndex&) const;
     //! [1]
 
- private:
+private:
     //! [4]
     enum Type {
         File,
diff --git a/examples/xmlpatterns/filetree/mainwindow.h b/examples/xmlpatterns/filetree/mainwindow.h
index e9ca3081..33aef68e 100644
--- a/examples/xmlpatterns/filetree/mainwindow.h
+++ b/examples/xmlpatterns/filetree/mainwindow.h
@@ -52,15 +52,15 @@ class MainWindow : public QMainWindow, private Ui_MainWindow
 {
     Q_OBJECT
 
-  public:
+public:
     MainWindow();
 
-  private slots:
+private slots:
     void on_actionOpenDirectory_triggered();
     void on_actionAbout_triggered();
     void on_queryBox_currentIndexChanged();
 
-  private:
+private:
     void loadDirectory(const QString &directory);
     void evaluateResult();
 
diff --git a/examples/xmlpatterns/recipes/querymainwindow.h b/examples/xmlpatterns/recipes/querymainwindow.h
index 666df098..60877521 100644
--- a/examples/xmlpatterns/recipes/querymainwindow.h
+++ b/examples/xmlpatterns/recipes/querymainwindow.h
@@ -59,13 +59,13 @@ class QueryMainWindow : public QMainWindow,
 {
     Q_OBJECT
 
-  public:
+public:
     QueryMainWindow();
 
-  public slots:
+public slots:
     void displayQuery(int index);
 
-  private:
+private:
     QComboBox* ui_defaultQueries;
 
     void evaluate(const QString &str);
diff --git a/examples/xmlpatterns/schema/mainwindow.cpp b/examples/xmlpatterns/schema/mainwindow.cpp
index aa2e1b06..22628b14 100644
--- a/examples/xmlpatterns/schema/mainwindow.cpp
+++ b/examples/xmlpatterns/schema/mainwindow.cpp
@@ -47,43 +47,43 @@
 //! [4]
 class MessageHandler : public QAbstractMessageHandler
 {
-    public:
-        MessageHandler()
-            : QAbstractMessageHandler(0)
-        {
-        }
-
-        QString statusMessage() const
-        {
-            return m_description;
-        }
-
-        int line() const
-        {
-            return m_sourceLocation.line();
-        }
-
-        int column() const
-        {
-            return m_sourceLocation.column();
-        }
-
-    protected:
-        virtual void handleMessage(QtMsgType type, const QString &description,
-                                   const QUrl &identifier, const QSourceLocation &sourceLocation)
-        {
-            Q_UNUSED(type);
-            Q_UNUSED(identifier);
-
-            m_messageType = type;
-            m_description = description;
-            m_sourceLocation = sourceLocation;
-        }
-
-    private:
-        QtMsgType m_messageType;
-        QString m_description;
-        QSourceLocation m_sourceLocation;
+public:
+    MessageHandler()
+        : QAbstractMessageHandler(0)
+    {
+    }
+
+    QString statusMessage() const
+    {
+        return m_description;
+    }
+
+    int line() const
+    {
+        return m_sourceLocation.line();
+    }
+
+    int column() const
+    {
+        return m_sourceLocation.column();
+    }
+
+protected:
+    virtual void handleMessage(QtMsgType type, const QString &description,
+                               const QUrl &identifier, const QSourceLocation &sourceLocation)
+    {
+        Q_UNUSED(type);
+        Q_UNUSED(identifier);
+
+        m_messageType = type;
+        m_description = description;
+        m_sourceLocation = sourceLocation;
+    }
+
+private:
+    QtMsgType m_messageType;
+    QString m_description;
+    QSourceLocation m_sourceLocation;
 };
 //! [4]
 
diff --git a/examples/xmlpatterns/schema/mainwindow.h b/examples/xmlpatterns/schema/mainwindow.h
index 6ac6a593..0d6b6d8a 100644
--- a/examples/xmlpatterns/schema/mainwindow.h
+++ b/examples/xmlpatterns/schema/mainwindow.h
@@ -55,16 +55,16 @@ class MainWindow : public QMainWindow,
 {
     Q_OBJECT
 
-  public:
+public:
     MainWindow();
 
-  private Q_SLOTS:
+private Q_SLOTS:
     void schemaSelected(int index);
     void instanceSelected(int index);
     void validate();
     void textChanged();
 
-  private:
+private:
     void moveCursor(int line, int column);
 };
 //! [0]
-- 
GitLab