summaryrefslogtreecommitdiff
path: root/examples/xmlpatterns/schema
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@digia.com>2012-11-22 15:24:49 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-22 16:51:33 +0100
commitb34af22fcc7e9321e5a7943763cd68a1d51a36d5 (patch)
treec35b5675393e1c90582a3d13f4495284523394f4 /examples/xmlpatterns/schema
parent89c39769e3102d6c3a2231787155a490894b8ff1 (diff)
downloadqtxmlpatterns-b34af22fcc7e9321e5a7943763cd68a1d51a36d5.tar.gz
Stylefixes for examples in qtxmlpatterns
Change-Id: I5a7a22779f13805479b37970888a26250c56a70d Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/xmlpatterns/schema')
-rw-r--r--examples/xmlpatterns/schema/mainwindow.cpp74
-rw-r--r--examples/xmlpatterns/schema/mainwindow.h6
2 files changed, 40 insertions, 40 deletions
diff --git a/examples/xmlpatterns/schema/mainwindow.cpp b/examples/xmlpatterns/schema/mainwindow.cpp
index aa2e1b0..22628b1 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 6ac6a59..0d6b6d8 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]