KDEUI
Go to the documentation of this file.
23 #include <QtGui/QAction>
24 #include <QtGui/QMenu>
25 #include <QtGui/QKeyEvent>
26 #include <QtGui/QTextBrowser>
27 #include <QtGui/QWhatsThis>
36 class KTextBrowser::Private
71 return d->notifyClick;
77 QString strName = name.toString();
78 if ( strName.isNull() )
81 QRegExp whatsthis(
"whatsthis:/*([^/].*)" );
82 if ( !d->notifyClick && whatsthis.exactMatch( strName ) ) {
83 QWhatsThis::showText( QCursor::pos(), whatsthis.cap( 1 ) );
84 }
else if ( strName.indexOf(
'@' ) > -1 ) {
85 if ( !d->notifyClick ) {
91 if ( !d->notifyClick ) {
102 if ( event->key() == Qt::Key_Escape )
104 else if ( event->key() == Qt::Key_F1 )
107 QTextBrowser::keyPressEvent( event );
113 QTextBrowser::wheelEvent( event );
115 QAbstractScrollArea::wheelEvent( event );
120 QMenu *popup = createStandardContextMenu(event->pos());
126 popup->exec( event->globalPos() );
131 #include "ktextbrowser.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Jun 5 2013 18:37:34 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.