45 if ( qobject_cast<QgsExternalStorageFileWidget *>( sipCpp ) )
46 sipType = sipType_QgsExternalStorageFileWidget;
53 Q_PROPERTY( QString storageType READ storageType WRITE setStorageType )
54 Q_PROPERTY( QString auth READ storageAuthConfigId WRITE setStorageAuthConfigId )
55 Q_PROPERTY( QString storageUrlExpression READ storageUrlExpressionString WRITE setStorageUrlExpression )
72 void setStorageType( const QString &storageType );
80 QString storageType() const;
96 void setStorageAuthConfigId( const QString &authCfg );
102 const QString &storageAuthConfigId() const;
111 void setStorageUrlExpression( const QString &urlExpression );
120 QString storageUrlExpressionString() const;
164 void setReadOnly(
bool readOnly ) override;
168 void updateLayout() override;
170 void setSelectedFileNames( QStringList fileNames ) override;
175 void addFileWidgetScope();
177 void dragEnterEvent( QDragEnterEvent *event ) override;
179 void dropEvent( QDropEvent *event ) override;
187 void storeExternalFiles( QStringList fileNames, QStringList storedUrls = QStringList() );
190 void updateAcceptDrops();
192 bool mStoreInProgress = false;
200 QLabel *mProgressLabel =
nullptr;
201 QProgressBar *mProgressBar =
nullptr;
202 QToolButton *mCancelButton =
nullptr;
205 friend class TestQgsExternalResourceWidgetWrapper;
206 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...