コード例 #1
0
ファイル: qfontdialog.cpp プロジェクト: 66eli77/RadChip
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);
}
コード例 #2
0
ファイル: type.hpp プロジェクト: rollwurst/isis
	/**
	 * 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;
	}
コード例 #3
0
ファイル: type.hpp プロジェクト: rollwurst/isis
	virtual std::string getTypeName()const {
		return staticName();
	}
コード例 #4
0
ファイル: HelpAction.cpp プロジェクト: Macaulay2/mathic
 const char* HelpAction::name() const {
   return staticName();
 }
コード例 #5
0
ファイル: SigGBAction.cpp プロジェクト: magichowl/mathicgb
const char* SigGBAction::name() const {
  return staticName();
}
コード例 #6
0
std::string NamerConfiguration::name()
{
    return staticName();
}
コード例 #7
0
std::string GeneralConfiguration::name()
{
    return staticName();
}
コード例 #8
0
medSegmentationWorkspace::medSegmentationWorkspace(QWidget * parent) :
medSelectorWorkspace(parent, staticName())
{
    connect(this->stackedViewContainers(), SIGNAL(containersSelectedChanged()),
            selectorToolBox(), SIGNAL(inputChanged()));
}