File indexing completed on 2024-05-12 04:52:52

0001 /*
0002     SPDX-FileCopyrightText: 2019 Jean-Baptiste Mardelle
0003     SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004 */
0005 
0006 #pragma once
0007 
0008 #include "abstractparamwidget.hpp"
0009 #include <QWidget>
0010 
0011 /** @brief This class represents a parameter that requires
0012            no display
0013  */
0014 class HideParamWidget : public AbstractParamWidget
0015 {
0016     Q_OBJECT
0017 public:
0018     /** @brief Constructor for the widgetComment
0019         @param model The asset model
0020         @param index The parameter model index
0021         @param parent Parent widget
0022     */
0023     HideParamWidget(std::shared_ptr<AssetParameterModel> model, QModelIndex index, QWidget *parent);
0024 
0025 public Q_SLOTS:
0026     /** @brief Toggle the comments on or off
0027      */
0028     void slotShowComment(bool show) override;
0029 
0030     /** @brief refresh the properties to reflect changes in the model
0031      */
0032     void slotRefresh() override;
0033 };