QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
qgsformlabelformatwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsformlabelformatwidget.h - QgsFormLabelFormatWidget
3
4 ---------------------
5 begin : 22.4.2022
6 copyright : (C) 2022 by Alessandro Pasotti
7 email : elpaso at itopen dot it
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef QGSFORMLABELFORMATWIDGET_H
17#define QGSFORMLABELFORMATWIDGET_H
18
19
20// We don't want to expose this in the public API
21#define SIP_NO_FILE
22
24
25#include "ui_qgsformlabelformatwidget.h"
26#include "qgsconditionalstyle.h"
28#include "qgis_gui.h"
29
30#include <QColor>
31#include <QFont>
32
40class GUI_EXPORT QgsFormLabelFormatWidget : public QWidget, private Ui::QgsFormLabelFormatWidget
41{
42 Q_OBJECT
43 public:
44
48 explicit QgsFormLabelFormatWidget( QWidget *parent = nullptr );
49
53 void setLabelStyle( const QgsAttributeEditorElement::LabelStyle &labelStyle );
54
58 QgsAttributeEditorElement::LabelStyle labelStyle( ) const;
59
60};
61
63
64#endif // QGSFORMLABELFORMATWIDGET_H
The TabStyle struct defines color and font overrides for form fields, tabs and groups labels.