Gui: implemented isShow() for python viewproviders

This commit is contained in:
Yorik van Havre
2017-04-28 15:03:47 -03:00
parent 6ffe8837c4
commit 765e164b0b
2 changed files with 36 additions and 0 deletions

View File

@@ -72,6 +72,8 @@ public:
/** @name Display methods */
//@{
/// Returns true if the icon must always appear enabled in the tree view
virtual bool isShow() const;
/// get the default display mode
const char* getDefaultDisplayMode() const;
/// returns a list of all possible modes
@@ -265,6 +267,12 @@ public:
/** @name Display methods */
//@{
/// Returns true if the icon must always appear enabled in the tree view
virtual bool isShow() const {
bool ok = imp->isShow();
if (ok) return ok;
return ViewProviderT::isShow();
}
/// get the default display mode
virtual const char* getDefaultDisplayMode() const {
return imp->getDefaultDisplayMode();