本文整理汇总了C++中page函数的典型用法代码示例。如果您正苦于以下问题:C++ page函数的具体用法?C++ page怎么用?C++ page使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了page函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: page
void KinotifyWidget::showEvent (QShowEvent*)
{
DefaultSize_ = page ()->mainFrame ()->contentsSize ();
resize (DefaultSize_);
SetWidgetPlace ();
}
示例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();
}
示例3: String
void Console::groupEnd()
{
InspectorInstrumentation::addMessageToConsole(page(), JSMessageSource, EndGroupMessageType, LogMessageLevel, String(), 0, String());
}
示例4: page
bool CurrentUrl::wasRedirectedAndNotModifiedByJavascript() {
return !wasRegularLoad() && page()->currentFrame()->url() == page()->history()->currentItem().url();
}
示例5: markTimeline
void Console::markTimeline(PassRefPtr<ScriptArguments> arguments, PassRefPtr<ScriptCallStack>)
{
InspectorInstrumentation::consoleMarkTimeline(page(), arguments);
}
示例6: timeEnd
void Console::timeEnd(const String& title, PassRefPtr<ScriptArguments>, PassRefPtr<ScriptCallStack> callStack)
{
InspectorInstrumentation::stopConsoleTiming(page(), title, callStack);
}
示例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..."),
//.........这里部分代码省略.........
示例8: page
void FrameFocus::findFrames() {
frames = page()->currentFrame()->childFrames();
}
示例9: Entity_constructPage
void Entity_constructPage( PreferenceGroup& group ){
PreferencesPage page( group.createPage( "Entities", "Entity Display Preferences" ) );
Entity_constructPreferences( page );
}
示例10: page
//! [MainWindow - addJSObject]
void MainWin::addJSObject() {
// Add pAnalyzer to JavaScript Frame as member "imageAnalyzer".
page()->mainFrame()->addToJavaScriptWindowObject(QString("imageAnalyzer"), m_analyzer);
}
示例11: page
void WebView::setLinkDelegationPolicy ( QWebPage::LinkDelegationPolicy p )
{
page()->setLinkDelegationPolicy( p );
}
示例12: page
void AWebView::addJavaScriptObject()
{
//JS object name download access through an object m downLoad
page()->mainFrame()->addToJavaScriptWindowObject("download", m_downLoad);
}
示例13: count
void Console::count(PassRefPtr<ScriptArguments> arguments, PassRefPtr<ScriptCallStack> callStack)
{
InspectorInstrumentation::consoleCount(page(), arguments, callStack);
}
示例14: delegateReload
bool WebView::delegateReload() const
{
WebPage *p = qobject_cast<QtCollider::WebPage*>(page());
Q_ASSERT(p);
return p->delegateReload();
}
示例15: time
void Console::time(const String& title)
{
InspectorInstrumentation::startConsoleTiming(page(), title);
}