diff options
| author | Serg Podtynnyi <[email protected]> | 2023-02-04 00:14:53 +0700 |
|---|---|---|
| committer | Serg Podtynnyi <[email protected]> | 2023-02-05 12:45:38 +0700 |
| commit | 38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch) | |
| tree | 886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/selectionmode/actionwithwidget.h | |
| parent | ffff8af851e3a386c44438337779d0ce7ca98a61 (diff) | |
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/selectionmode/actionwithwidget.h')
| -rw-r--r-- | src/selectionmode/actionwithwidget.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/selectionmode/actionwithwidget.h b/src/selectionmode/actionwithwidget.h index 14db6df22..9b83022de 100644 --- a/src/selectionmode/actionwithwidget.h +++ b/src/selectionmode/actionwithwidget.h @@ -42,13 +42,15 @@ public: ActionWithWidget(QAction *action, QAbstractButton *button); /** @returns the action of this object. */ - inline QAction *action() { + inline QAction *action() + { Q_CHECK_PTR(m_action); return m_action; }; /** @returns the widget of this object. */ - inline QWidget *widget() { + inline QWidget *widget() + { return m_widget; } @@ -61,7 +63,8 @@ public: QWidget *newWidget(QWidget *parent); /** returns true if the widget exists and is visible. false otherwise. */ - inline bool isWidgetVisible() const { + inline bool isWidgetVisible() const + { return m_widget && m_widget->isVisible(); }; |
