• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEWebKit

  • kdewebkit
kgraphicswebview.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE project.
3 *
4 * Copyright (C) 2007 Trolltech ASA
5 * Copyright (C) 2008 Urs Wolfer <uwolfer @ kde.org>
6 * Copyright (C) 2008 Laurent Montel <montel@kde.org>
7 * Copyright (C) 2008 Michael Howell <mhowell123@gmail.com>
8 * Copyright (C) 2009 Dawit Alemayehu <adawit @ kde.org>
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
19 *
20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA.
24 *
25 */
26#ifndef KGRAPHICSWEBVIEW_H
27#define KGRAPHICSWEBVIEW_H
28
29#include <kdewebkit_export.h>
30
31#include <QtWebKit/QGraphicsWebView>
32
33class KUrl;
34template<class T> class KWebViewPrivate;
35
55class KDEWEBKIT_EXPORT KGraphicsWebView : public QGraphicsWebView
56{
57 Q_OBJECT
58
59public:
72 explicit KGraphicsWebView(QGraphicsItem *parent = 0, bool createCustomPage = true);
73
77 ~KGraphicsWebView();
78
87 bool isExternalContentAllowed() const;
88
99 void setAllowExternalContent(bool allow);
100
101Q_SIGNALS:
120#ifndef KDE_NO_DEPRECATED
121 KDE_DEPRECATED void selectionClipboardUrlPasted(const KUrl &url);
122#endif
123
146 void selectionClipboardUrlPasted(const KUrl &url, const QString& searchText);
147
157 void linkShiftClicked(const KUrl &url);
158
168 void linkMiddleOrCtrlClicked(const KUrl &url);
169
170protected:
179 void wheelEvent(QGraphicsSceneWheelEvent *event);
180
189 virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
190
199 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
200
201private:
202 friend class KWebViewPrivate<KGraphicsWebView>;
203 KWebViewPrivate<KGraphicsWebView> * const d;
204};
205
206#endif // KWEBVIEW_H
KGraphicsWebView
A re-implementation of QGraphicsWebView that provides KDE integration.
Definition: kgraphicswebview.h:56
KGraphicsWebView::selectionClipboardUrlPasted
void selectionClipboardUrlPasted(const KUrl &url)
Emitted when a URL from the selection clipboard is pasted on this view.
KGraphicsWebView::linkMiddleOrCtrlClicked
void linkMiddleOrCtrlClicked(const KUrl &url)
Emitted when a link is clicked with the middle mouse button or clicked with the left mouse button whi...
KGraphicsWebView::linkShiftClicked
void linkShiftClicked(const KUrl &url)
Emitted when a link is clicked with the left mouse button while SHIFT is held down.
KGraphicsWebView::selectionClipboardUrlPasted
void selectionClipboardUrlPasted(const KUrl &url, const QString &searchText)
Emitted when a URL from the selection clipboard is pasted on this view.
KUrl
KWebViewPrivate
Definition: kwebview_p.h:45
QGraphicsWebView
kdewebkit_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEWebKit

Skip menu "KDEWebKit"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal