86 if ( !(( mFileOnly && !file.isFile() ) ||
87 ( mDirOnly && !file.isDir() ) ||
88 ( !mSuffix.
isEmpty() && mSuffix.
compare( file.suffix(), Qt::CaseInsensitive ) ) ) )
89 path = file.filePath();
100 QString filePath = acceptableFilePath( event );
103 event->acceptProposedAction();
129 QString filePath = acceptableFilePath( event );
135 event->acceptProposedAction();
const QMimeData * mimeData() const
virtual void dragEnterEvent(QDragEnterEvent *e)
void setText(const QString &)
virtual bool event(QEvent *e)
virtual ~QgsFileDropEdit()
QgsFileDropEdit(QWidget *parent=nullptr)
virtual void paintEvent(QPaintEvent *e) override
void drawRect(const QRectF &rectangle)
virtual void dragEnterEvent(QDragEnterEvent *event) override
void setFileOnly(bool isFileOnly)
void setPen(const QColor &color)
void setSuffixFilter(const QString &suffix)
virtual void paintEvent(QPaintEvent *)
QRect adjusted(int dx1, int dy1, int dx2, int dy2) const
virtual void dragLeaveEvent(QDragLeaveEvent *e)
virtual void dragLeaveEvent(QDragLeaveEvent *event) override
QList< QUrl > urls() const
void setDirOnly(bool isDirOnly)
virtual void dropEvent(QDropEvent *event) override
int compare(const QString &other) const
virtual void dropEvent(QDropEvent *e)