16 #ifndef QGSLAYERTREEEMBEDDEDWIDGETSIMPL_H 17 #define QGSLAYERTREEEMBEDDEDWIDGETSIMPL_H 36 class QgsLayerTreeOpacityWidget :
public QWidget
42 QSize sizeHint()
const override;
47 QString id()
const override;
48 QString name()
const override;
49 QgsLayerTreeOpacityWidget *createWidget(
QgsMapLayer *layer,
int widgetIndex )
override;
54 void sliderValueChanged(
int value );
55 void updateOpacityFromSlider();
56 void layerTrChanged();
60 QSlider *mSlider =
nullptr;
61 QTimer *mTimer =
nullptr;
64 #endif // QGSLAYERTREEEMBEDDEDWIDGETSIMPL_H Base class for all map layer types.