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

0001 /*
0002     SPDX-FileCopyrightText: 2016 Nicolas Carion
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 <QModelIndex>
0010 #include <memory>
0011 
0012 class AssetParameterModel;
0013 class DoubleWidget;
0014 class QVBoxLayout;
0015 
0016 /** @class DoubleParamWidget
0017     @brief This represent a double parameter
0018  */
0019 class DoubleParamWidget : public AbstractParamWidget
0020 {
0021     Q_OBJECT
0022 public:
0023     DoubleParamWidget() = delete;
0024     DoubleParamWidget(std::shared_ptr<AssetParameterModel> model, QModelIndex index, QWidget *parent);
0025 
0026 public Q_SLOTS:
0027     /** @brief Toggle the comments on or off
0028      */
0029     void slotShowComment(bool show) override;
0030 
0031     /** @brief refresh the properties to reflect changes in the model
0032      */
0033     void slotRefresh() override;
0034 
0035 protected:
0036     DoubleWidget *m_doubleWidget;
0037     QVBoxLayout *m_lay;
0038 };