Fix akonadimodel.cpp:1: warning: unterminated character constant
[kdepim.git] / messageviewer / mailwebview.h
bloba37c918165394f82efdb7e30f53c60348affa89d
1 /* Copyright 2010 Thomas McGuire <mcguire@kde.org>
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU General Public License as
5 published by the Free Software Foundation; either version 2 of
6 the License or (at your option) version 3 or any later version
7 accepted by the membership of KDE e.V. (or its successor approved
8 by the membership of KDE e.V.), which shall act as a proxy
9 defined in Section 14 of version 3 of the license.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include <KWebView>
21 class QContextMenuEventF;
23 namespace MessageViewer {
25 /// MailWebView extends KWebView so that it can emit the popupMenu() signal
26 class MailWebView : public KWebView
28 Q_OBJECT
29 public:
31 MailWebView( QWidget *parent );
33 signals:
35 /// Emitted when the user right-clicks somewhere
36 /// @param url if an URL was under the cursor, this parameter contains it. Otherwise empty
37 /// @param point position where the click happened, in local coordinates
38 void popupMenu( const QString &url, const QPoint &point );
40 protected:
41 #ifdef KDEPIM_MOBILE_UI
42 friend class MessageViewItem;
43 #endif
44 /// Reimplemented to catch context menu events and emit popupMenu()
45 virtual bool event( QEvent *event );