-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redirect custom widget includes to qgis.gui
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
*************************************************************************** | ||
customwidgets.py | ||
--------------------- | ||
Date : May 2014 | ||
Copyright : (C) 2014 by Denis Rouzaud | ||
Email : denis.rouzaud@gmail.com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
*************************************************************************** | ||
""" | ||
|
||
import sys | ||
import qgis | ||
from qgis import gui | ||
|
||
""" | ||
This allow to redirect the custom widget include header file to qgis.gui | ||
""" | ||
|
||
def referenceCustomWidgets(): | ||
sys.modules["qgscollapsiblegroupboxplugin"] = qgis.gui | ||
sys.modules["qgsfieldcomboboxplugin"] = qgis.gui | ||
sys.modules["qgsfieldexpressionwidgetplugin"] = qgis.gui | ||
sys.modules["qgsmaplayercomboboxplugin"] = qgis.gui | ||
sys.modules["qgsscalevisibilitywidgetplugin"] = qgis.gui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters