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


C++ page函数代码示例

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


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

示例1: page

	void KinotifyWidget::showEvent (QShowEvent*)
	{
		DefaultSize_ = page ()->mainFrame ()->contentsSize ();
		resize (DefaultSize_);
		SetWidgetPlace ();
	}
开发者ID:dreamsxin,项目名称:leechcraft,代码行数:6,代码来源:kinotifywidget.cpp

示例2: setPageEnabled

/*!
    Returns \c true if the page at \a index is enabled; otherwise \c false.

    \sa setPageEnabled()
*/
bool QxtConfigWidget::isPageEnabled(int index) const
{
    const QWidget* widget = page(index);
    return widget && widget->isEnabled();
}
开发者ID:npsm,项目名称:libqxt,代码行数:10,代码来源:qxtconfigwidget.cpp

示例3: String

void Console::groupEnd()
{
    InspectorInstrumentation::addMessageToConsole(page(), JSMessageSource, EndGroupMessageType, LogMessageLevel, String(), 0, String());
}
开发者ID:13W,项目名称:phantomjs,代码行数:4,代码来源:Console.cpp

示例4: page

bool CurrentUrl::wasRedirectedAndNotModifiedByJavascript() {
  return !wasRegularLoad() && page()->currentFrame()->url() == page()->history()->currentItem().url();
}
开发者ID:IdeaMarshal,项目名称:capybara-webkit,代码行数:3,代码来源:CurrentUrl.cpp

示例5: markTimeline

void Console::markTimeline(PassRefPtr<ScriptArguments> arguments, PassRefPtr<ScriptCallStack>)
{
    InspectorInstrumentation::consoleMarkTimeline(page(), arguments);
}
开发者ID:13W,项目名称:phantomjs,代码行数:4,代码来源:Console.cpp

示例6: timeEnd

void Console::timeEnd(const String& title, PassRefPtr<ScriptArguments>, PassRefPtr<ScriptCallStack> callStack)
{
    InspectorInstrumentation::stopConsoleTiming(page(), title, callStack);
}
开发者ID:13W,项目名称:phantomjs,代码行数:4,代码来源:Console.cpp

示例7: menu

void CustomWebView::contextMenuEvent (QGraphicsSceneContextMenuEvent *e)
{
    QPointer<QMenu> menu (new QMenu ());
    QWebHitTestResult r = page ()->
                          mainFrame ()->hitTestContent (e->pos ().toPoint ());

    IHookProxy_ptr proxy (new Util::DefaultHookProxy ());

    emit hookWebViewContextMenu (proxy, this, e, r,
                                 menu, WVSStart);

    if (!r.linkUrl ().isEmpty ())
    {
        QUrl url = r.linkUrl ();
        QString text = r.linkText ();

        if (XmlSettingsManager::Instance ()->
                property ("TryToDetectRSSLinks").toBool ())
        {
            bool hasAtom = text.contains ("Atom");
            bool hasRSS = text.contains ("RSS");

            if (hasAtom || hasRSS)
            {
                LeechCraft::Entity e;
                if (hasAtom)
                {
                    e.Additional_ ["UserVisibleName"] = "Atom";
                    e.Mime_ = "application/atom+xml";
                }
                else
                {
                    e.Additional_ ["UserVisibleName"] = "RSS";
                    e.Mime_ = "application/rss+xml";
                }

                e.Entity_ = url;
                e.Parameters_ = LeechCraft::FromUserInitiated |
                                LeechCraft::OnlyHandle;

                bool ch = false;
                emit couldHandle (e, &ch);
                if (ch)
                {
                    QList<QVariant> datalist;
                    datalist << url
                             << e.Mime_;
                    menu->addAction (tr ("Subscribe"),
                                     this,
                                     SLOT (subscribeToLink ()))->setData (datalist);
                    menu->addSeparator ();
                }
            }
        }

        menu->addAction (tr ("Open &here"),
                         this, SLOT (openLinkHere ()))->setData (url);
        menu->addAction (tr ("Open in new &tab"),
                         this, SLOT (openLinkInNewTab ()))->setData (url);
        menu->addSeparator ();
        menu->addAction (tr ("&Save link..."),
                         this, SLOT (saveLink ()));

        QList<QVariant> datalist;
        datalist << url
                 << text;
        menu->addAction (tr ("&Bookmark link..."),
                         this, SLOT (bookmarkLink ()))->setData (datalist);

        menu->addSeparator ();
        if (!page ()->selectedText ().isEmpty ())
            menu->addAction (pageAction (QWebPage::Copy));
        menu->addAction (tr ("&Copy link"),
                         this, SLOT (copyLink ()));
        if (page ()->settings ()->testAttribute (QWebSettings::DeveloperExtrasEnabled))
            menu->addAction (pageAction (QWebPage::InspectElement));
    }
    else if (page ()->selectedText ().contains (UrlInText))
    {
        menu->addAction (tr ("Open as link"),
                         this, SLOT (openLinkInNewTab ()))->
        setData (page ()->selectedText ());
    }

    emit hookWebViewContextMenu (proxy, this, e, r,
                                 menu, WVSAfterLink);

    if (!r.imageUrl ().isEmpty ())
    {
        if (!menu->isEmpty ())
            menu->addSeparator ();
        menu->addAction (tr ("Open image here"),
                         this, SLOT (openImageHere ()))->setData (r.imageUrl ());
        menu->addAction (tr ("Open image in new tab"),
                         this, SLOT (openImageInNewTab ()));
        menu->addSeparator ();
        menu->addAction (tr ("Save image..."),
                         this, SLOT (saveImage ()));

        QAction *spx = menu->addAction (tr ("Save pixmap..."),
//.........这里部分代码省略.........
开发者ID:panter-dsd,项目名称:leechcraft,代码行数:101,代码来源:customwebview.cpp

示例8: page

void FrameFocus::findFrames() {
  frames = page()->currentFrame()->childFrames();
}
开发者ID:arieliten,项目名称:capybara-webkit,代码行数:3,代码来源:FrameFocus.cpp

示例9: Entity_constructPage

void Entity_constructPage( PreferenceGroup& group ){
	PreferencesPage page( group.createPage( "Entities", "Entity Display Preferences" ) );
	Entity_constructPreferences( page );
}
开发者ID:xonotic,项目名称:netradient,代码行数:4,代码来源:entity.cpp

示例10: page

//! [MainWindow - addJSObject]
void MainWin::addJSObject() {
    // Add pAnalyzer to JavaScript Frame as member "imageAnalyzer".
    page()->mainFrame()->addToJavaScriptWindowObject(QString("imageAnalyzer"), m_analyzer);
}
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:5,代码来源:mainwindow.cpp

示例11: page

void WebView::setLinkDelegationPolicy ( QWebPage::LinkDelegationPolicy p )
{
  page()->setLinkDelegationPolicy( p );
}
开发者ID:DSastre,项目名称:supercollider,代码行数:4,代码来源:QcWebView.cpp

示例12: page

void AWebView::addJavaScriptObject()
{
    //JS object name download access through an object m downLoad
	page()->mainFrame()->addToJavaScriptWindowObject("download", m_downLoad);
}
开发者ID:hechaoyuyu,项目名称:SetWallPaper,代码行数:5,代码来源:webview.cpp

示例13: count

void Console::count(PassRefPtr<ScriptArguments> arguments, PassRefPtr<ScriptCallStack> callStack)
{
    InspectorInstrumentation::consoleCount(page(), arguments, callStack);
}
开发者ID:13W,项目名称:phantomjs,代码行数:4,代码来源:Console.cpp

示例14: delegateReload

bool WebView::delegateReload() const
{
  WebPage *p = qobject_cast<QtCollider::WebPage*>(page());
  Q_ASSERT(p);
  return p->delegateReload();
}
开发者ID:DSastre,项目名称:supercollider,代码行数:6,代码来源:QcWebView.cpp

示例15: time

void Console::time(const String& title)
{
    InspectorInstrumentation::startConsoleTiming(page(), title);
}
开发者ID:13W,项目名称:phantomjs,代码行数:4,代码来源:Console.cpp


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