Skip to content

Commit 500175b

Browse files
committedJul 24, 2017
remove QgsScrollAreaWidgetPlugin from custom widgets
it had to be removed form the widget list in uic plugin. It might be better to provide the real list of implemented widgets rather than the full gui list. fixes #16428
1 parent b842043 commit 500175b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed
 

‎python/custom_widgets/qgis_customwidgets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
def moduleInformation():
5151
try:
5252
import qgis.gui
53-
return "qgis.gui", dir(qgis.gui)
53+
widget_list=dir(qgis.gui)
54+
widget_list.remove('QgsScrollArea')
Code has comments. Press enter to view.
55+
return "qgis.gui", widget_list
5456
except ImportError:
5557
return "", []

‎src/customwidgets/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ SET (QGIS_CUSTOMWIDGETS_SRCS
3636
qgsrelationreferencewidgetplugin.cpp
3737
qgsscalerangewidgetplugin.cpp
3838
qgsscalewidgetplugin.cpp
39-
qgsscrollareawidgetplugin.cpp
39+
# qgsscrollareawidgetplugin.cpp
4040
qgsspinboxplugin.cpp
4141
)
4242

@@ -66,7 +66,7 @@ SET (QGIS_CUSTOMWIDGETS_MOC_HDRS
6666
qgsrelationreferencewidgetplugin.h
6767
qgsscalerangewidgetplugin.h
6868
qgsscalewidgetplugin.h
69-
qgsscrollareawidgetplugin.h
69+
# qgsscrollareawidgetplugin.h
7070
qgsspinboxplugin.h
7171
)
7272

‎src/customwidgets/qgiscustomwidgets.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "qgsrelationreferencewidgetplugin.h"
4040
#include "qgsscalerangewidgetplugin.h"
4141
#include "qgsscalewidgetplugin.h"
42-
#include "qgsscrollareawidgetplugin.h"
42+
//#include "qgsscrollareawidgetplugin.h"
4343
#include "qgsspinboxplugin.h"
4444

4545

@@ -69,7 +69,7 @@ QgisCustomWidgets::QgisCustomWidgets( QObject *parent )
6969
mWidgets.append( new QgsRelationReferenceWidgetPlugin( this ) );
7070
mWidgets.append( new QgsScaleRangeWidgetPlugin( this ) );
7171
mWidgets.append( new QgsScaleWidgetPlugin( this ) );
72-
mWidgets.append( new QgsScrollAreaWidgetPlugin( this ) );
72+
// mWidgets.append( new QgsScrollAreaWidgetPlugin( this ) ); // this is causing troubles at the moment
7373
mWidgets.append( new QgsSpinBoxPlugin( this ) );
7474
}
7575

4 commit comments

Comments
 (4)

Gustry commented on Jul 24, 2017

@Gustry
Contributor

Whaou, thanks a lot, I will be able to use Processing again!

nyalldawson commented on Jul 24, 2017

@nyalldawson
Collaborator

Nice catch @3nids!

Gustry commented on Jul 24, 2017

@Gustry
Contributor

@3nids I shouldn't have this kind of UI anymore?
screen shot 2017-07-24 at 23 42 35

Or did I miss something? Thanks

3nids commented on Jul 24, 2017

@3nids
MemberAuthor
Please sign in to comment.