/*
This file is part of the KDE project
- SPDX-FileCopyrightText: 2022 Felix Ernst <felixernst@zohomail.eu>
+ SPDX-FileCopyrightText: 2022 Felix Ernst <felixernst@kde.org>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
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;
}
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();
};