20 #include <QFileDialog>
22 #include <QGridLayout>
41 value = mLineEdit->
text();
45 value = mLabel->
text();
71 mLineEdit = qobject_cast<
QLineEdit*>( editor );
80 connect( mPushButton, SIGNAL( clicked() ),
this, SLOT( selectFileName() ) );
82 mLabel = qobject_cast<
QLabel*>( editor );
110 void QgsFileNameWidgetWrapper::selectFileName()
115 text = mLineEdit->
text();
118 text = mLabel->
text();
QString toNativeSeparators(const QString &pathName)
QString tr(const char *sourceText, const char *disambiguation, int n)
Lineedit with builtin clear button.
void setNullValue(QString nullValue)
void setMargin(int margin)
QVariant value(const QString &key, const QVariant &defaultValue) const
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFlags< QFileDialog::Option > options)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Represents a vector layer which manages a vector based data sets.
QVariant::Type type() const
Gets variant type of the field as it will be retrieved from data source.
T findChild(const QString &name) const