17 #ifndef QGSFILEWIDGET_H 18 #define QGSFILEWIDGET_H 34 Q_PROPERTY(
bool fileWidgetButtonVisible READ fileWidgetButtonVisible WRITE setFileWidgetButtonVisible )
35 Q_PROPERTY(
bool useLink READ useLink WRITE setUseLink )
36 Q_PROPERTY(
bool fullUrl READ fullUrl WRITE setFullUrl )
37 Q_PROPERTY(
QString dialogTitle READ dialogTitle WRITE setDialogTitle )
38 Q_PROPERTY(
QString filter READ filter WRITE setFilter )
39 Q_PROPERTY(
QString defaultRoot READ defaultRoot WRITE setDefaultRoot )
40 Q_PROPERTY(
StorageMode storageMode READ storageMode WRITE setStorageMode )
41 Q_PROPERTY(
RelativeStorage relativeStorage READ relativeStorage WRITE setRelativeStorage )
74 void setFilePath(
QString path );
77 void setReadOnly(
bool readOnly );
85 void setDialogTitle(
const QString& title );
93 void setFilter(
const QString &filter );
96 bool fileWidgetButtonVisible()
const;
98 void setFileWidgetButtonVisible(
bool visible );
101 bool useLink()
const;
103 void setUseLink(
bool useLink );
106 bool fullUrl()
const;
108 void setFullUrl(
bool fullUrl );
113 void setDefaultRoot(
const QString& defaultRoot );
127 void fileChanged(
const QString& );
130 void openFileDialog();
131 void textEdited(
const QString& path );
152 QString relativePath(
const QString& filePath,
bool removeRelative )
const;
154 friend class TestQgsFileWidget;
157 #endif // QGSFILEWIDGET_H
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...