akonadi
25 #include <kicontheme.h>
26 #include <ktextbrowser.h>
27 #include <klocalizedstring.h>
29 #include <QtGui/QAction>
30 #include <QtGui/QContextMenuEvent>
31 #include <QtGui/QMenu>
43 : KTextBrowser( parent )
48 #ifndef QT_NO_CONTEXTMENU
49 virtual void contextMenuEvent( QContextMenuEvent *event )
51 QMenu *popup = createStandardContextMenu( event->pos() );
53 QList<QAction*> actions = popup->actions();
56 KIconTheme::assignIconsToContextMenu( KIconTheme::ReadOnlyText, actions );
59 if ( anchorAt( event->pos() ).left( 7 ) != QLatin1String(
"mailto:" ) ) {
60 actions[ 1 ]->setVisible(
false );
63 actions[ 1 ]->setText( i18n(
"Copy e-mail address" ) );
65 popup->exec( event->globalPos() );
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:06:28 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.