Пример #1
0
void
Symbol::resolve() const
{
    if ( symbolState() != ResolvedState )
    {
	const_cast<Symbol*>(this)->_resolving = true;

	if ( _scope && resolveSymbols() )
	{
	    const_cast<Symbol*>(this)->_state = ResolvedState;
            MU_GC_END_CHANGE_STUBBORN(this);
	}
	else
	{
	    //
	    //	Symbol is not resolved -- it still contains
	    //	names which are unresolved. It will be ignored
	    //	by other table functions
	    //
	    
	    const_cast<Symbol*>(this)->_state = Symbol::UnresolvedState;
	}
	
	const_cast<Symbol*>(this)->_resolving = false;
    }
}
Пример #2
0
QVistaHelper::QVistaHelper(QWizard *wizard)
    : pressed(false)
    , wizard(wizard)
    , backButton_(0)
{
    is_vista = resolveSymbols();
    if (is_vista)
        backButton_ = new QVistaBackButton(wizard);
}
Пример #3
0
// Resolve the relocations for all symbols we currently know about.
void RuntimeDyldImpl::resolveRelocations() {
  // First, resolve relocations associated with external symbols.
  resolveSymbols();

  // Just iterate over the sections we have and resolve all the relocations
  // in them. Gross overkill, but it gets the job done.
  for (int i = 0, e = Sections.size(); i != e; ++i) {
    reassignSectionAddress(i, Sections[i].LoadAddress);
  }
}
Пример #4
0
QVistaHelper::QVistaHelper(QWizard *wizard)
    : QObject(wizard)
    , pressed(false)
    , wizard(wizard)
    , backButton_(0)
{
    is_vista = resolveSymbols();
    if (is_vista)
        backButton_ = new QVistaBackButton(wizard);

    // Handle diff between Windows 7 and Vista
    iconSpacing = QStyleHelper::dpiScaled(7);
    textSpacing = QSysInfo::WindowsVersion >= QSysInfo::WV_WINDOWS7 ?
                  iconSpacing : QStyleHelper::dpiScaled(20);
}
QVistaHelper::QVistaHelper(QWizard *wizard)
    : QObject(wizard)
    , pressed(false)
    , wizard(wizard)
    , backButton_(0)
{
    is_vista = resolveSymbols();
    if (instanceCount++ == 0)
        cachedVistaState = Dirty;
    if (is_vista) {
        backButton_ = new QVistaBackButton(wizard);
        backButton_->hide();
    }

    // Handle diff between Windows 7 and Vista
    iconSpacing = QStyleHelper::dpiScaled(7);
    textSpacing = QSysInfo::WindowsVersion >= QSysInfo::WV_WINDOWS7 ?
                  iconSpacing : QStyleHelper::dpiScaled(20);
}
Пример #6
0
WindowsModernStyle::WindowsModernStyle() : QWindowsVistaStyle(),
	m_mode( Classic )
{
	resolveSymbols();
}