┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/selectionmode/actionwithwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/selectionmode/actionwithwidget.h')
-rw-r--r--src/selectionmode/actionwithwidget.h9
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();
};