bool QFontDialogPrivate::canBeNativeDialog() { Q_Q(QFontDialog); if (nativeDialogInUse) return true; if (q->testAttribute(Qt::WA_DontShowOnScreen)) return false; if (opts & QFontDialog::DontUseNativeDialog) return false; QLatin1String staticName(QFontDialog::staticMetaObject.className()); QLatin1String dynamicName(q->metaObject()->className()); return (staticName == dynamicName); }
/** * Get the string representation of the Value. * This tries to use the isis type conversion to create a string from the Value. * If thats no available, it will fall back to boost::lexical_cast. And it will send a warning to CoreDebug. * If the lexical cast fails as well, boost::bad_lexical_cast is thrown. * \param labeled if true the typename will be appended to the resulting string in brackets. */ std::string toString( bool labeled = false )const { std::string ret; Reference ref = copyToNewByID( Value<std::string>::staticID ); if ( ref.isEmpty() ) { LOG( Debug, warning ) << "Automatic conversion of " << *this << " to string failed. Falling back to boost::lexical_cast<std::string>"; ret = boost::lexical_cast<std::string>( m_val ); } else { ret = ref->castTo<std::string>(); } if ( labeled )ret += "(" + staticName() + ")"; return ret; }
virtual std::string getTypeName()const { return staticName(); }
const char* HelpAction::name() const { return staticName(); }
const char* SigGBAction::name() const { return staticName(); }
std::string NamerConfiguration::name() { return staticName(); }
std::string GeneralConfiguration::name() { return staticName(); }
medSegmentationWorkspace::medSegmentationWorkspace(QWidget * parent) : medSelectorWorkspace(parent, staticName()) { connect(this->stackedViewContainers(), SIGNAL(containersSelectedChanged()), selectorToolBox(), SIGNAL(inputChanged())); }