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;
110 void setStorageUrlExpression( const QString &urlExpression );
119 QString storageUrlExpressionString() const;
163 void setReadOnly(
bool readOnly ) override;
167 void updateLayout() override;
169 void setSelectedFileNames( QStringList fileNames ) override;
174 void addFileWidgetScope();
176 void dragEnterEvent( QDragEnterEvent *event ) override;
178 void dropEvent( QDropEvent *event ) override;
186 void storeExternalFiles( QStringList fileNames, QStringList storedUrls = QStringList() );
189 void updateAcceptDrops();
191 bool mStoreInProgress = false;
199 QLabel *mProgressLabel =
nullptr;
200 QProgressBar *mProgressBar =
nullptr;
201 QToolButton *mCancelButton =
nullptr;
204 friend class TestQgsExternalResourceWidgetWrapper;
205 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...