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 )
43 Q_PROPERTY(
QgsFileWidget::RelativeStorage relativeStorage READ relativeStorage WRITE setRelativeStorage )
44 Q_PROPERTY(
QString defaultRoot READ defaultRoot WRITE setDefaultRoot )
65 QVariant documentPath( QVariant::Type type = QVariant::String )
const;
66 void setDocumentPath(
const QVariant& documentPath );
72 bool fileWidgetVisible()
const;
74 void setFileWidgetVisible(
bool visible );
82 int documentViewerHeight()
const;
87 void setDocumentViewerHeight(
int height );
89 int documentViewerWidth()
const ;
94 void setDocumentViewerWidth(
int width );
97 void setReadOnly(
bool readOnly );
122 void setDefaultRoot(
const QString& defaultRoot );
126 void valueChanged(
const QString& );
129 void loadDocument(
const QString& path );
132 void updateDocumentViewer();
137 bool mFileWidgetVisible;
139 int mDocumentViewerHeight;
140 int mDocumentViewerWidth;
154 #endif // QGSEXTERNALRESOURCEWIDGET_H
The QgsPixmapLabel class shows a pixmap and adjusts its size to the space given to the widget by the ...