summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/code/src_gui_qproxystyle.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/src/snippets/code/src_gui_qproxystyle.cpp b/doc/src/snippets/code/src_gui_qproxystyle.cpp
index a9c55b3..46a2a5f 100644
--- a/doc/src/snippets/code/src_gui_qproxystyle.cpp
+++ b/doc/src/snippets/code/src_gui_qproxystyle.cpp
@@ -3,7 +3,7 @@ class MyProxyStyle : public QProxyStyle
{
public:
- int styleHint(StyleHint hint, const QStyleOption *option = 0,
+ int styleHint(StyleHint hint, const QStyleOption *option = 0,
const QWidget *widget = 0, QStyleHintReturn *returnData = 0) const
{
if (hint == QStyle::SH_UnderlineShortcut)
@@ -18,7 +18,7 @@ public:
#include "textedit.h"
#include <QApplication>
#include <QProxyStyle>
-
+
class MyProxyStyle : public QProxyStyle
{
public:
@@ -30,16 +30,16 @@ class MyProxyStyle : public QProxyStyle
return QProxyStyle::styleHint(hint, option, widget, returnData);
}
};
-
+
int main(int argc, char **argv)
{
Q_INIT_RESOURCE(textedit);
-
+
QApplication a(argc, argv);
a.setStyle(new MyProxyStyle);
TextEdit mw;
mw.resize(700, 800);
- mw.show();
+ mw.show();
//...
}
//! [1]