Skip to content

Commit

Permalink
Removed SIP_FACTORY and fixed docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Sep 5, 2017
1 parent e21630d commit fb12505
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/gui/qgssourceselectprovider.h
Expand Up @@ -27,7 +27,7 @@ class QString;
class QWidget;

/** \ingroup gui
* This is the interface for those who want to add entries to the \see QgsDataSourceManagerDialog
* This is the interface for those who want to add entries to the QgsDataSourceManagerDialog
*
* \since QGIS 3.0
*/
Expand All @@ -50,10 +50,14 @@ class GUI_EXPORT QgsSourceSelectProvider
//! Text for the menu item entry, it will be visible to the user so make sure it's translatable
virtual QString text() const = 0;

/** Creates a new instance of an QIcon for the menu item entry
* Caller takes responsibility of deleting created.
/** Text for the tooltip menu item entry, it will be visible to the user so make sure it's translatable
*
* The default implementation returns an empty string.
*/
virtual QIcon icon() const = 0 SIP_FACTORY;
virtual QString toolTip() const { return QString(); }

//! Creates a new instance of an QIcon for the menu item entry
virtual QIcon icon() const = 0;

/** Ordering: the source select provider registry will be able to sort
* the source selects (ascending) using this integer value
Expand Down

0 comments on commit fb12505

Please sign in to comment.