Widget to display file path with a push button for an "open file" dialog It can also be used to display a picture or a web page.
More...
#include <qgsexternalresourcewidget.h>
|
| bool | eventFilter (QObject *watched, QEvent *event) override |
| |
Widget to display file path with a push button for an "open file" dialog It can also be used to display a picture or a web page.
Definition at line 46 of file qgsexternalresourcewidget.h.
◆ DocumentViewerContent
◆ QgsExternalResourceWidget()
| QgsExternalResourceWidget::QgsExternalResourceWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ defaultRoot()
| QString QgsExternalResourceWidget::defaultRoot |
( |
| ) |
const |
◆ documentPath()
| QVariant QgsExternalResourceWidget::documentPath |
( |
QVariant::Type |
type = QVariant::String | ) |
const |
documentPath returns the path of the current document in the widget
- Parameters
-
| type | determines the type of the returned null variant if the document is not defined yet |
Definition at line 71 of file qgsexternalresourcewidget.cpp.
◆ documentViewerContent()
returns the type of content used in the document viewer
◆ documentViewerHeight()
| int QgsExternalResourceWidget::documentViewerHeight |
( |
| ) |
const |
returns the height of the document viewer
◆ documentViewerWidth()
| int QgsExternalResourceWidget::documentViewerWidth |
( |
| ) |
const |
returns the width of the document viewer
◆ eventFilter()
| bool QgsExternalResourceWidget::eventFilter |
( |
QObject * |
watched, |
|
|
QEvent * |
event |
|
) |
| |
|
overrideprotected |
◆ fileWidget()
◆ fileWidgetVisible()
| bool QgsExternalResourceWidget::fileWidgetVisible |
( |
| ) |
const |
returns if the file widget is visible in the widget
◆ relativeStorage()
Configures if paths are handled absolute or relative and if relative, which should be the base path.
◆ setDefaultRoot()
| void QgsExternalResourceWidget::setDefaultRoot |
( |
const QString & |
defaultRoot | ) |
|
◆ setDocumentPath()
| void QgsExternalResourceWidget::setDocumentPath |
( |
const QVariant & |
documentPath | ) |
|
◆ setDocumentViewerContent()
setDocumentViewerContent defines the type of content to be shown. Widget will be adapted accordingly
Definition at line 110 of file qgsexternalresourcewidget.cpp.
◆ setDocumentViewerHeight()
| void QgsExternalResourceWidget::setDocumentViewerHeight |
( |
int |
height | ) |
|
setDocumentViewerWidth set the height of the document viewer.
- Parameters
-
| height | the height. Use 0 for automatic best display. |
Definition at line 121 of file qgsexternalresourcewidget.cpp.
◆ setDocumentViewerWidth()
| void QgsExternalResourceWidget::setDocumentViewerWidth |
( |
int |
width | ) |
|
setDocumentViewerWidth set the width of the document viewer.
- Parameters
-
| width | the width. Use 0 for automatic best display. |
Definition at line 132 of file qgsexternalresourcewidget.cpp.
◆ setFileWidgetVisible()
| void QgsExternalResourceWidget::setFileWidgetVisible |
( |
bool |
visible | ) |
|
◆ setReadOnly()
| void QgsExternalResourceWidget::setReadOnly |
( |
bool |
readOnly | ) |
|
◆ setRelativeStorage()
Configures if paths are handled absolute or relative and if relative, which should be the base path.
Definition at line 222 of file qgsexternalresourcewidget.cpp.
◆ valueChanged
| void QgsExternalResourceWidget::valueChanged |
( |
const QString & |
| ) |
|
|
signal |
emitteed as soon as the current document changes
◆ defaultRoot
| QString QgsExternalResourceWidget::defaultRoot |
|
readwrite |
◆ documentViewerContent
◆ documentViewerHeight
| int QgsExternalResourceWidget::documentViewerHeight |
|
readwrite |
◆ documentViewerWidth
| int QgsExternalResourceWidget::documentViewerWidth |
|
readwrite |
◆ fileWidgetVisible
| bool QgsExternalResourceWidget::fileWidgetVisible |
|
readwrite |
◆ relativeStorage
The documentation for this class was generated from the following files: