mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Loading widgets
This commit is contained in:
@ -30,6 +30,7 @@ class QTextBrowser;
|
||||
class QPushButton;
|
||||
class QDateTimeEdit;
|
||||
class QCheckBox;
|
||||
class QDoubleSpinBox;
|
||||
|
||||
namespace pdf
|
||||
{
|
||||
@ -73,6 +74,9 @@ public:
|
||||
|
||||
void initialize(QTabWidget* tabWidget);
|
||||
|
||||
void setObject(PDFObject object);
|
||||
PDFObject getObject();
|
||||
|
||||
private:
|
||||
struct Subcategory
|
||||
{
|
||||
@ -249,6 +253,24 @@ private:
|
||||
QColor m_color;
|
||||
};
|
||||
|
||||
class PDFObjectEditorMappedDoubleAdapter : public PDFObjectEditorMappedWidgetAdapter
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
using BaseClass = PDFObjectEditorMappedWidgetAdapter;
|
||||
|
||||
public:
|
||||
explicit PDFObjectEditorMappedDoubleAdapter(QLabel* label, QDoubleSpinBox* spinBox, PDFObjectEditorAbstractModel* model, size_t attribute, QObject* parent);
|
||||
|
||||
virtual PDFObject getValue() const override;
|
||||
virtual void setValue(PDFObject object) override;
|
||||
|
||||
private:
|
||||
QLabel* m_label;
|
||||
QDoubleSpinBox* m_spinBox;
|
||||
};
|
||||
|
||||
} // namespace pdf
|
||||
|
||||
#endif // PDFOBJECTEDITORWIDGET_IMPL_H
|
||||
|
Reference in New Issue
Block a user