diff options
| author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-02 06:15:41 (GMT) |
|---|---|---|
| committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-02 06:15:41 (GMT) |
| commit | 0549df8e6b43fc6aa3d3750bcd0346344f272fd1 (patch) | |
| tree | 94e532f2e3018aaf7b01b896e255b2376aa626b3 /doc/src/snippets/code/src_gui_qproxystyle.cpp | |
| parent | 49bceaf197a5964f244ac094aaa75b35cf3ada49 (diff) | |
| parent | c84fefd59090c0d0f757572fe14b493d94759808 (diff) | |
| download | Qt-0549df8e6b43fc6aa3d3750bcd0346344f272fd1.zip Qt-0549df8e6b43fc6aa3d3750bcd0346344f272fd1.tar.gz Qt-0549df8e6b43fc6aa3d3750bcd0346344f272fd1.tar.bz2 | |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'doc/src/snippets/code/src_gui_qproxystyle.cpp')
| -rw-r--r-- | doc/src/snippets/code/src_gui_qproxystyle.cpp | 10 |
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] |
