diff options
| author | Oleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io> | 2025-08-06 14:53:56 +0200 |
|---|---|---|
| committer | Oleksii Zbykovskyi <Oleksii.Zbykovskyi@qt.io> | 2025-08-06 20:26:58 +0200 |
| commit | 1cf7d9f34f1bc3ddc5fa97ff57a95dd8083f9ae8 (patch) | |
| tree | 17fd4c4f1ee5437abb40b12acac566d90b62cd87 /src/widgets/doc/snippets/styles/styles.cpp | |
| parent | 1ad8e33ef2500cba7e83cb7248f0f554def610ab (diff) | |
Fix indentation issues in the widgets snippets folder
Most of the snippets in widgets have indentation problems.
So I refactored them to have a consistent indentation.
Change-Id: I94422c222aa7a72cb2352f8cfb41ffe207c74904
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/styles/styles.cpp')
| -rw-r--r-- | src/widgets/doc/snippets/styles/styles.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/widgets/doc/snippets/styles/styles.cpp b/src/widgets/doc/snippets/styles/styles.cpp index d1bc7c9bb88..aa31cef60b5 100644 --- a/src/widgets/doc/snippets/styles/styles.cpp +++ b/src/widgets/doc/snippets/styles/styles.cpp @@ -17,17 +17,17 @@ protected: void MyWidget::paintEvent(QPaintEvent * /* event */) //! [0] { -//! [2] + //! [2] QPainter painter(this); -//! [2] + //! [2] QStyleOptionFocusRect option; option.initFrom(this); option.backgroundColor = palette().color(QPalette::Window); -//! [3] + //! [3] style()->drawPrimitive(QStyle::PE_FrameFocusRect, &option, &painter, this); -//! [3] + //! [3] } //! [1] @@ -36,15 +36,15 @@ void MyWidget::paintEvent2(QPaintEvent * /* event */) { //! [4] //! [5] //! [6] QStylePainter painter(this); -//! [5] + //! [5] QStyleOptionFocusRect option; option.initFrom(this); option.backgroundColor = palette().color(QPalette::Window); -//! [7] + //! [7] painter.drawPrimitive(QStyle::PE_FrameFocusRect, option); -//! [7] + //! [7] } //! [6] |
