Skip to content

Commit

Permalink
Merge pull request #4982 from nyalldawson/drop_file_drop_file_drop_fi…
Browse files Browse the repository at this point in the history
…le_drop_file_drop

Remove QgsFileDropEdit widget and integrate functionality into QgsFileWidget
  • Loading branch information
nyalldawson committed Aug 6, 2017
2 parents 42d7e0b + c3b62ad commit 434bda7
Show file tree
Hide file tree
Showing 11 changed files with 270 additions and 248 deletions.
1 change: 1 addition & 0 deletions doc/api_break.dox
Expand Up @@ -267,6 +267,7 @@ should now call QgsCoordinateReferenceSystem::invalidateCache() and QgsCoordinat
- QgsDataDefinedSymbolDialog was removed. Code using this dialog should be reworked to use QgsPropertyOverrideButton
- QgsDefaultPluginLayerLegend was removed. Use QgsMapLayer::setLegend() to provide legend nodes for plugin layers.
- QgsFileNameWidgetWrapper was removed. Use QgsExternalResourceWidgetWrapper instead.
- QgsFileDropEdit was removed. Use QgsFileWidget instead.
- QgsFormAnnotationItem. Use QgsFormAnnotation instead.
- QgsHtmlAnnotationItem. Use QgsHtmlAnnotation instead.
- QgsHttpTransaction. This class was outdated and code should be ported to native Qt or Python implementations.
Expand Down
1 change: 0 additions & 1 deletion python/gui/gui_auto.sip
Expand Up @@ -4,7 +4,6 @@
%Include qgscustomdrophandler.sip
%Include qgsdetaileditemdata.sip
%Include qgsexpressionbuilderdialog.sip
%Include qgsfiledropedit.sip
%Include qgsgeometryrubberband.sip
%Include qgsgui.sip
%Include qgshelp.sip
Expand Down
14 changes: 12 additions & 2 deletions python/gui/qgsfilewidget.sip
Expand Up @@ -9,8 +9,6 @@





class QgsFileWidget : QWidget
{
%Docstring
Expand Down Expand Up @@ -149,6 +147,14 @@ returns if the relative path is with respect to the project path or the default
determines if the relative path is with respect to the project path or the default path
%End

QLineEdit *lineEdit();
%Docstring
Returns a pointer to the widget's line edit, which can be used to customize
the appearance and behavior of the line edit portion of the widget.
.. versionadded:: 3.0
:rtype: QLineEdit
%End

signals:
void fileChanged( const QString & );
%Docstring
Expand All @@ -157,6 +163,10 @@ emitted as soon as the current file or directory is changed

};





/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
3 changes: 0 additions & 3 deletions src/gui/CMakeLists.txt
Expand Up @@ -243,7 +243,6 @@ SET(QGIS_GUI_SRCS
qgsfieldexpressionwidget.cpp
qgsfieldvalidator.cpp
qgsfieldvalueslineedit.cpp
qgsfiledropedit.cpp
qgsfilewidget.cpp
qgsfilterlineedit.cpp
qgsfloatingwidget.cpp
Expand Down Expand Up @@ -408,7 +407,6 @@ SET(QGIS_GUI_MOC_HDRS
qgsfieldexpressionwidget.h
qgsfieldvalidator.h
qgsfieldvalueslineedit.h
qgsfiledropedit.h
qgsfilewidget.h
qgsfilterlineedit.h
qgsfloatingwidget.h
Expand Down Expand Up @@ -691,7 +689,6 @@ SET(QGIS_GUI_HDRS
qgscustomdrophandler.h
qgsdetaileditemdata.h
qgsexpressionbuilderdialog.h
qgsfiledropedit.h
qgsgeometryrubberband.h
qgsgui.h
qgsguiutils.h
Expand Down
121 changes: 0 additions & 121 deletions src/gui/qgsfiledropedit.cpp

This file was deleted.

78 changes: 0 additions & 78 deletions src/gui/qgsfiledropedit.h

This file was deleted.

0 comments on commit 434bda7

Please sign in to comment.