Source code for svir.ui.tool_button_with_help_link

"""
button that when is clicked with whatsThis mode on opens an URL

Contact : marco@opengis.ch

.. note:: 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.
"""
from svir.utilities.shared import DEBUG

__author__ = 'marco@opengis.ch'
__revision__ = '$Format:%H$'
__date__ = '26/11/2015'


from qgis.PyQt.QtCore import QUrl, QEvent
from qgis.PyQt.QtGui import QToolButton, QWhatsThis, QDesktopServices