X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/78cffd2979a6ed87e044fcb024cf4fdfc5c7cb3d..483faa05cf265615f9a896171122c473477ec6a3:/src/selectionmode/actionwithwidget.h diff --git a/src/selectionmode/actionwithwidget.h b/src/selectionmode/actionwithwidget.h index 14db6df22..e56729a6f 100644 --- a/src/selectionmode/actionwithwidget.h +++ b/src/selectionmode/actionwithwidget.h @@ -1,6 +1,6 @@ /* This file is part of the KDE project - SPDX-FileCopyrightText: 2022 Felix Ernst + SPDX-FileCopyrightText: 2022 Felix Ernst SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ @@ -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(); };