当前位置: 首页>>代码示例>>C++>>正文


C++ setLoading函数代码示例

本文整理汇总了C++中setLoading函数的典型用法代码示例。如果您正苦于以下问题:C++ setLoading函数的具体用法?C++ setLoading怎么用?C++ setLoading使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了setLoading函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: CachedResource

CachedImage::CachedImage(const URL& url, Image* image, SessionID sessionID)
    : CachedResource(ResourceRequest(url), ImageResource, sessionID)
    , m_image(image)
    , m_isManuallyCached(false)
    , m_shouldPaintBrokenImage(true)
{
    setStatus(Cached);
    setLoading(false);
}
开发者ID:rhythmkay,项目名称:webkit,代码行数:9,代码来源:CachedImage.cpp

示例2: DEBUG_LOG_WRITE_D

    void Engine::SurfaceChanged(int width, int height) {

        DEBUG_LOG_WRITE_D("TAG", "Changed");
        SetShader("shaders/draw", ShaderType::Draw, true);
        this->InitiseRenderer();
        this->SetResolution(Maths::Vector2<int>(width, height));

        setLoading(false);
    }
开发者ID:benbancroft,项目名称:2DEngine,代码行数:9,代码来源:engine.cpp

示例3: Resource

ImageResource::ImageResource(const ResourceRequest& resourceRequest, blink::Image* image)
    : Resource(resourceRequest, Image)
    , m_image(image)
{
    WTF_LOG(Timers, "new ImageResource(ResourceRequest, Image) %p", this);
    setStatus(Cached);
    setLoading(false);
    setCustomAcceptHeader();
}
开发者ID:OctiumBrowser,项目名称:octium-main,代码行数:9,代码来源:ImageResource.cpp

示例4: Q_ASSERT_X

void LWJGLVersionList::loadList()
{
	Q_ASSERT_X(!m_loading, "loadList", "list is already loading (m_loading is true)");

	setLoading(true);
	auto worker = MMC->qnam();
	reply = worker->get(QNetworkRequest(QUrl(RSS_URL)));
	connect(reply, SIGNAL(finished()), SLOT(netRequestComplete()));
}
开发者ID:thezak48,项目名称:MultiMC5,代码行数:9,代码来源:LwjglVersionList.cpp

示例5: setEncodedSize

void CachedXSLStyleSheet::finishLoading(SharedBuffer* data)
{
    m_data = data;
    setEncodedSize(data ? data->size() : 0);
    if (data)
        m_sheet = m_decoder->decodeAndFlush(data->data(), encodedSize());
    setLoading(false);
    checkNotify();
}
开发者ID:Comcast,项目名称:WebKitForWayland,代码行数:9,代码来源:CachedXSLStyleSheet.cpp

示例6: setLoading

void CachedImage::load(CachedResourceLoader* cachedResourceLoader)
{
#ifdef ANDROID_BLOCK_NETWORK_IMAGE
    if (!cachedResourceLoader || (cachedResourceLoader->autoLoadImages() && !cachedResourceLoader->shouldBlockNetworkImage(m_url)))
#else
    if (!cachedResourceLoader || cachedResourceLoader->autoLoadImages())
#endif
        CachedResource::load(cachedResourceLoader, true, DoSecurityCheck, true);
    else
        setLoading(false);
}
开发者ID:4Fwolf,项目名称:mt6572_x201,代码行数:11,代码来源:CachedImage.cpp

示例7: checkShouldPaintBrokenImage

void CachedImage::error(CachedResource::Status status)
{
    checkShouldPaintBrokenImage();
    clear();
    setStatus(status);
    ASSERT(errorOccurred());
    m_data.clear();
    notifyObservers();
    setLoading(false);
    checkNotify();
}
开发者ID:4Fwolf,项目名称:mt6572_x201,代码行数:11,代码来源:CachedImage.cpp

示例8: ASSERT

void DocumentLoader::prepareForLoadStart()
{
    ASSERT(!m_isStopping);
    setPrimaryLoadComplete(false);
    ASSERT(frameLoader());
    clearErrors();
    
    setLoading(true);
    
    frameLoader()->prepareForLoadStart();
}
开发者ID:flwh,项目名称:Alcatel_OT_985_kernel,代码行数:11,代码来源:DocumentLoader.cpp

示例9: setLoading

    void Engine::SurfaceCreated() {

        setLoading(true);

        DEBUG_LOG_WRITE_V("Render", "Surface created");

        Assets::LoadAsset("textures/air_hockey_surface", Assets::TEXTURE);
        Assets::LoadAsset("textures/tilesheet", Assets::AssetType::TEXTURE);
        Assets::LoadAsset("shaders/draw", Assets::SHADER);
        Assets::LoadAsset("shaders/tile", Assets::SHADER);
    }
开发者ID:benbancroft,项目名称:2DEngine,代码行数:11,代码来源:engine.cpp

示例10: connect

void DeviceSettingsItem::setDevice(const Device *device)
{
    connect(device, &Device::nameChanged, m_titleLabel, &NormalLabel::setText);
    connect(device, &Device::stateChanged, this, &DeviceSettingsItem::onDeviceStateChanged);
    connect(device, &Device::pairedChanged, this, &DeviceSettingsItem::onDevicePairedChanged);
    connect(device, &Device::connectingChanged, this, &DeviceSettingsItem::setLoading);

    m_titleLabel->setText(device->name());
    setLoading(device->connecting());
    onDeviceStateChanged(device->state());
    onDevicePairedChanged(device->paired());
}
开发者ID:linuxdeepin,项目名称:dde-control-center,代码行数:12,代码来源:devicesettingsitem.cpp

示例11: Q_ASSERT_X

void LWJGLVersionList::loadList()
{
	Q_ASSERT_X(!m_loading, "loadList", "list is already loading (m_loading is true)");

	setLoading(true);
	auto worker = MMC->qnam();
	QNetworkRequest req(QUrl(RSS_URL));
	req.setRawHeader("Accept", "text/xml");
	req.setRawHeader("User-Agent", "MultiMC/5.0 (Uncached)");
	reply = worker->get(req);
	connect(reply, SIGNAL(finished()), SLOT(netRequestComplete()));
}
开发者ID:ACGaming,项目名称:MultiMC5,代码行数:12,代码来源:LwjglVersionList.cpp

示例12: setLoading

void CachedImage::load(CachedResourceLoader& loader)
{
    if (loader.shouldPerformImageLoad(url()))
        CachedResource::load(loader);
    else
        setLoading(false);

    if (m_loader) {
        m_allowSubsampling = m_loader->frameLoader()->frame().settings().imageSubsamplingEnabled();
        m_allowAsyncImageDecoding = m_loader->frameLoader()->frame().settings().asyncImageDecodingEnabled();
        m_showDebugBackground = m_loader->frameLoader()->frame().settings().showDebugBorders();
    }
}
开发者ID:ollie314,项目名称:webkit,代码行数:13,代码来源:CachedImage.cpp

示例13: setEncodedSize

void CachedCSSStyleSheet::finishLoading(ResourceBuffer* data)
{
    m_data = data;
    setEncodedSize(m_data.get() ? m_data->size() : 0);
    // Decode the data to find out the encoding and keep the sheet text around during checkNotify()
    if (m_data) {
        m_decodedSheetText = m_decoder->decode(m_data->data(), m_data->size());
        m_decodedSheetText.append(m_decoder->flush());
    }
    setLoading(false);
    checkNotify();
    // Clear the decoded text as it is unlikely to be needed immediately again and is cheap to regenerate.
    m_decodedSheetText = String();
}
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:14,代码来源:CachedCSSStyleSheet.cpp

示例14: setLoading

void RunModel::load(const QString& search)
{
    if (isLoading())
        return;

    mSearch = search;

    setLoading(true);
    QNetworkReply * reply =  TorrentServerManager::i()->getResultList(mOffset, search);
    connect(reply,SIGNAL(finished()),this,SLOT(loadded()));



}
开发者ID:dridk,项目名称:torrent-downloader,代码行数:14,代码来源:runmodel.cpp

示例15: setEncodedSize

void CachedXSLStyleSheet::data(PassRefPtr<SharedBuffer> data, bool allDataReceived)
{
    if (!allDataReceived)
        return;

    m_data = data;     
    setEncodedSize(m_data.get() ? m_data->size() : 0);
    if (m_data.get()) {
        m_sheet = String(m_decoder->decode(m_data->data(), encodedSize()));
        m_sheet += m_decoder->flush();
    }
    setLoading(false);
    checkNotify();
}
开发者ID:Xertz,项目名称:EAWebKit,代码行数:14,代码来源:CachedXSLStyleSheet.cpp


注:本文中的setLoading函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。