Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qgis-otb-plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Catherine CALME
qgis-otb-plugin
Commits
c745969b
Commit
c745969b
authored
May 02, 2018
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix otb icon for provider and algs
parent
19037f7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
otb/OTBAlgorithm.py
otb/OTBAlgorithm.py
+2
-2
otb/OTBAlgorithmProvider.py
otb/OTBAlgorithmProvider.py
+1
-1
No files found.
otb/OTBAlgorithm.py
View file @
c745969b
...
...
@@ -27,7 +27,7 @@ __copyright__ = "(C) 2017,2018 by CS Systemes d'information (CS SI), Centre Nati
__revision__
=
'$Format:%H$'
import
os
pluginPath
=
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
path
.
split
(
os
.
path
.
dirname
(
__file__
))[
0
],
os
.
pardir
))
pluginPath
=
os
.
path
.
split
(
os
.
path
.
dirname
(
__file__
))[
0
]
from
qgis.PyQt.QtCore
import
QCoreApplication
from
qgis.PyQt.QtGui
import
QIcon
...
...
@@ -84,7 +84,7 @@ class OTBAlgorithm(QgsProcessingAlgorithm):
return
True
,
None
def
icon
(
self
):
return
QIcon
(
os
.
path
.
join
(
pluginPath
,
'
images
'
,
'otb.png'
))
return
QIcon
(
os
.
path
.
join
(
pluginPath
,
'
otb
'
,
'otb.png'
))
def
createInstance
(
self
):
return
self
.
__class__
(
self
.
_group
,
self
.
_name
,
self
.
_descriptionfile
)
...
...
otb/OTBAlgorithmProvider.py
View file @
c745969b
...
...
@@ -299,7 +299,7 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
return
False
def
icon
(
self
):
return
QIcon
(
os
.
path
.
join
(
pluginPath
,
'
images
'
,
'otb.png'
))
return
QIcon
(
os
.
path
.
join
(
pluginPath
,
'
otb
'
,
'otb.png'
))
def
tr
(
self
,
string
,
context
=
''
):
if
context
==
''
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment