• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ setLoading函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: requestConnectDevice

void DeviceSettingsItem::mouseReleaseEvent(QMouseEvent *event)
{
    if (m_device->state() != Device::StateConnected) {
        event->accept();

        Q_EMIT requestConnectDevice(m_device);
    }

    if (m_device->state() == Device::StateConnected) {
        setLoading(true);
        QTimer::singleShot(1000, this, &DeviceSettingsItem::onStopLoadingAnimation);
    }

    SettingsItem::mouseReleaseEvent(event);
}
开发者ID:linuxdeepin,项目名称:dde-control-center,代码行数:15,代码来源:devicesettingsitem.cpp


示例17: setEncodedSize

void CachedTextTrack::data(PassRefPtr<ResourceBuffer> data, bool allDataReceived)
{
    m_data = data;
    setEncodedSize(m_data.get() ? m_data->size() : 0);

    CachedResourceClientWalker<CachedResourceClient> walker(m_clients);
    while (CachedResourceClient *client = walker.next())
        client->deprecatedDidReceiveCachedResource(this);

    if (!allDataReceived)
        return;
    
    setLoading(false);
    checkNotify();
}
开发者ID:Anthony-Biget,项目名称:openjfx,代码行数:15,代码来源:CachedTextTrack.cpp


示例18: CachedResource

CachedImage::CachedImage(Image* image)
    : CachedResource(String(), ImageResource)
    , m_image(image)
    , m_decodedDataDeletionTimer(this, &CachedImage::decodedDataDeletionTimerFired)
    , m_shouldPaintBrokenImage(true)
    , m_autoLoadWasPreventedBySettings(false)
{
    setStatus(Cached);
    setLoading(false);

#if ENABLE(IMPROVE_ANIMATED_GIF_PERFORMANCE)
    /// M: improve gif animation performance
    m_visibleScreenRect = IntRect(0 , 0, 0, 0);
#endif
}
开发者ID:4Fwolf,项目名称:mt6572_x201,代码行数:15,代码来源:CachedImage.cpp


示例19: qt_static_metacall

int WallpaperImage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    typedef bb::cascades::ImageView QMocSuperClass;
    _id = QMocSuperClass::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QUrl*>(_v) = url(); break;
        case 1: *reinterpret_cast< QString*>(_v) = imageID(); break;
        case 2: *reinterpret_cast< float*>(_v) = loading(); break;
        case 3: *reinterpret_cast< QUrl*>(_v) = defaultImage(); break;
        case 4: *reinterpret_cast< bool*>(_v) = ready(); break;
        }
        _id -= 5;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setUrl(*reinterpret_cast< QUrl*>(_v)); break;
        case 1: setImageID(*reinterpret_cast< QString*>(_v)); break;
        case 2: setLoading(*reinterpret_cast< float*>(_v)); break;
        case 3: setDefaultImage(*reinterpret_cast< QUrl*>(_v)); break;
        case 4: setReady(*reinterpret_cast< bool*>(_v)); break;
        }
        _id -= 5;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 5;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
开发者ID:NemOry,项目名称:FacebookMessengerClientUI,代码行数:48,代码来源:moc_WallpaperImage.cpp


示例20: ResourceRequest

void Resource::error(Resource::Status status)
{
    if (!m_revalidatingRequest.isNull())
        m_revalidatingRequest = ResourceRequest();

    if (!m_error.isNull() && (m_error.isCancellation() || !isPreloaded()))
        memoryCache()->remove(this);

    setStatus(status);
    ASSERT(errorOccurred());
    m_data.clear();

    setLoading(false);
    checkNotify();
    markClientsFinished();
}
开发者ID:golden628,项目名称:ChromiumGStreamerBackend,代码行数:16,代码来源:Resource.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ setLocation函数代码示例发布时间:2022-05-30
下一篇:
C++ setListLabel函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap