KDEUI
ktextbrowser.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KTEXTBROWSER_H
00022 #define KTEXTBROWSER_H
00023
00024 #include <kdeui_export.h>
00025
00026 #include <QtGui/QTextBrowser>
00027
00028
00047 class KDEUI_EXPORT KTextBrowser : public QTextBrowser
00048 {
00049 Q_OBJECT
00050 Q_PROPERTY( bool notifyClick READ isNotifyClick WRITE setNotifyClick )
00051
00052 public:
00059 explicit KTextBrowser( QWidget *parent = 0, bool notifyClick = false );
00060
00064 ~KTextBrowser();
00065
00072 void setNotifyClick( bool notifyClick );
00073
00078 bool isNotifyClick() const;
00079
00080 protected:
00089 void setSource( const QUrl& name );
00090
00094 virtual void keyPressEvent( QKeyEvent *event );
00095
00099 virtual void wheelEvent( QWheelEvent *event );
00100
00107 virtual void contextMenuEvent( QContextMenuEvent *event );
00108
00109 Q_SIGNALS:
00117 void mailClick( const QString &name, const QString &address );
00118
00125 void urlClick( const QString &url );
00126
00127 private:
00128 class Private;
00129 Private* const d;
00130 };
00131
00132 #endif