diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/ktextbrowser.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/ktextbrowser.cpp')
-rw-r--r-- | kdeui/ktextbrowser.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kdeui/ktextbrowser.cpp b/kdeui/ktextbrowser.cpp index 4abc268d2..6b3685a81 100644 --- a/kdeui/ktextbrowser.cpp +++ b/kdeui/ktextbrowser.cpp @@ -18,7 +18,7 @@ */ -#include <qpopupmenu.h> +#include <tqpopupmenu.h> #include <kapplication.h> #include <kglobalsettings.h> #include <ktextbrowser.h> @@ -26,14 +26,14 @@ #include <kurl.h> #include <kiconloader.h> -KTextBrowser::KTextBrowser( QWidget *parent, const char *name, +KTextBrowser::KTextBrowser( TQWidget *parent, const char *name, bool notifyClick ) - : QTextBrowser( parent, name ), mNotifyClick(notifyClick) + : TQTextBrowser( parent, name ), mNotifyClick(notifyClick) { // //1999-10-04 Espen Sand: Not required anymore ? - //connect( this, SIGNAL(highlighted(const QString &)), - // this, SLOT(refChanged(const QString &))); + //connect( this, TQT_SIGNAL(highlighted(const TQString &)), + // this, TQT_SLOT(refChanged(const TQString &))); } KTextBrowser::~KTextBrowser( void ) @@ -53,7 +53,7 @@ bool KTextBrowser::isNotifyClick() const } -void KTextBrowser::setSource( const QString& name ) +void KTextBrowser::setSource( const TQString& name ) { if( name.isNull() ) { @@ -68,7 +68,7 @@ void KTextBrowser::setSource( const QString& name ) } else { - emit mailClick( QString::null, name ); + emit mailClick( TQString::null, name ); } } else @@ -85,7 +85,7 @@ void KTextBrowser::setSource( const QString& name ) } -void KTextBrowser::keyPressEvent(QKeyEvent *e) +void KTextBrowser::keyPressEvent(TQKeyEvent *e) { if( e->key() == Key_Escape ) { @@ -97,32 +97,32 @@ void KTextBrowser::keyPressEvent(QKeyEvent *e) } else { - QTextBrowser::keyPressEvent(e); + TQTextBrowser::keyPressEvent(e); } } -void KTextBrowser::viewportMouseMoveEvent( QMouseEvent* e) +void KTextBrowser::viewportMouseMoveEvent( TQMouseEvent* e) { // do this first so we get the right type of cursor - QTextBrowser::viewportMouseMoveEvent(e); + TQTextBrowser::viewportMouseMoveEvent(e); if ( viewport()->cursor().shape() == PointingHandCursor ) viewport()->setCursor( KCursor::handCursor() ); } -void KTextBrowser::contentsWheelEvent( QWheelEvent *e ) +void KTextBrowser::contentsWheelEvent( TQWheelEvent *e ) { if ( KGlobalSettings::wheelMouseZooms() ) - QTextBrowser::contentsWheelEvent( e ); + TQTextBrowser::contentsWheelEvent( e ); else // thanks, we don't want to zoom, so skip QTextEdit's impl. - QScrollView::contentsWheelEvent( e ); + TQScrollView::contentsWheelEvent( e ); } -QPopupMenu *KTextBrowser::createPopupMenu( const QPoint & pos ) +TQPopupMenu *KTextBrowser::createPopupMenu( const TQPoint & pos ) { enum { IdUndo, IdRedo, IdSep1, IdCut, IdCopy, IdPaste, IdClear, IdSep2, IdSelectAll }; - QPopupMenu *popup = QTextBrowser::createPopupMenu( pos ); + TQPopupMenu *popup = TQTextBrowser::createPopupMenu( pos ); if ( isReadOnly() ) popup->changeItem( popup->idAt(0), SmallIconSet("editcopy"), popup->text( popup->idAt(0) ) ); |