17 #ifndef QGSEXTERNALRESOURCEWIDGET_H 18 #define QGSEXTERNALRESOURCEWIDGET_H 39 Q_PROPERTY(
bool fileWidgetVisible READ fileWidgetVisible WRITE setFileWidgetVisible )
40 Q_PROPERTY(
DocumentViewerContent documentViewerContent READ documentViewerContent WRITE setDocumentViewerContent )
41 Q_PROPERTY(
int documentViewerHeight READ documentViewerHeight WRITE setDocumentViewerHeight )
42 Q_PROPERTY(
int documentViewerWidth READ documentViewerWidth WRITE setDocumentViewerWidth )
63 QVariant documentPath( QVariant::Type type = QVariant::String )
const;
64 void setDocumentPath(
const QVariant& documentPath );
70 bool fileWidgetVisible()
const;
72 void setFileWidgetVisible(
bool visible );
80 int documentViewerHeight()
const;
85 void setDocumentViewerHeight(
int height );
87 int documentViewerWidth()
const ;
92 void setDocumentViewerWidth(
int width );
95 void setReadOnly(
bool readOnly );
99 void valueChanged(
const QString& );
102 void loadDocument(
const QString& path );
105 void updateDocumentViewer();
108 bool mFileWidgetVisible;
110 int mDocumentViewerHeight;
111 int mDocumentViewerWidth;
123 #endif // QGSEXTERNALRESOURCEWIDGET_H
The QgsPixmapLabel class shows a pixmap and adjusts its size to the space given to the widget by the ...