44 if ( qobject_cast<QgsExternalStorageFileWidget *>( sipCpp ) )
45 sipType = sipType_QgsExternalStorageFileWidget;
52 Q_PROPERTY( QString storageType READ storageType WRITE setStorageType )
53 Q_PROPERTY( QString auth READ storageAuthConfigId WRITE setStorageAuthConfigId )
54 Q_PROPERTY( QString storageUrlExpression READ storageUrlExpressionString WRITE setStorageUrlExpression )
70 void setStorageType( const QString &storageType );
78 QString storageType() const;
94 void setStorageAuthConfigId( const QString &authCfg );
100 const QString &storageAuthConfigId() const;
109 void setStorageUrlExpression( const QString &urlExpression );
118 QString storageUrlExpressionString() const;
162 void setReadOnly(
bool readOnly ) override;
165 void updateLayout() override;
167 void setSelectedFileNames( QStringList fileNames ) override;
172 void addFileWidgetScope();
174 void dragEnterEvent( QDragEnterEvent *event ) override;
176 void dropEvent( QDropEvent *event ) override;
183 void storeExternalFiles( QStringList fileNames, QStringList storedUrls = QStringList() );
186 void updateAcceptDrops();
188 bool mStoreInProgress = false;
196 QLabel *mProgressLabel =
nullptr;
197 QProgressBar *mProgressBar =
nullptr;
198 QToolButton *mCancelButton =
nullptr;
201 friend class TestQgsExternalResourceWidgetWrapper;
202 friend class TestQgsExternalStorageFileWidget;
Single scope for storing variables and functions for use within a QgsExpressionContext.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...