diff options
Diffstat (limited to 'knode/headerview.cpp')
-rw-r--r-- | knode/headerview.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/knode/headerview.cpp b/knode/headerview.cpp index 06210b2a..cae8da28 100644 --- a/knode/headerview.cpp +++ b/knode/headerview.cpp @@ -65,9 +65,9 @@ KNHeaderView::KNHeaderView(TQWidget *parent, const char *name) : setColumnAlignment( mPaintInfo.scoreCol, TQt::AlignRight ); // due to our own column text squeezing we need to repaint on column resizing - disconnect( header(), TQT_SIGNAL(sizeChange(int, int, int)) ); - connect( header(), TQT_SIGNAL(sizeChange(int, int, int)), - TQT_SLOT(slotSizeChanged(int, int, int)) ); + disconnect( header(), TQ_SIGNAL(sizeChange(int, int, int)) ); + connect( header(), TQ_SIGNAL(sizeChange(int, int, int)), + TQ_SLOT(slotSizeChanged(int, int, int)) ); // column selection RMB menu mPopup = new TDEPopupMenu( this ); @@ -76,11 +76,11 @@ KNHeaderView::KNHeaderView(TQWidget *parent, const char *name) : mPopup->insertItem( i18n("Line Count"), KPaintInfo::COL_SIZE ); mPopup->insertItem( i18n("Score"), KPaintInfo::COL_SCORE ); - connect( mPopup, TQT_SIGNAL(activated(int)), this, TQT_SLOT(toggleColumn(int)) ); + connect( mPopup, TQ_SIGNAL(activated(int)), this, TQ_SLOT(toggleColumn(int)) ); // connect to the article manager - connect( knGlobals.articleManager(), TQT_SIGNAL(aboutToShowGroup()), TQT_SLOT(prepareForGroup()) ); - connect( knGlobals.articleManager(), TQT_SIGNAL(aboutToShowFolder()), TQT_SLOT(prepareForFolder()) ); + connect( knGlobals.articleManager(), TQ_SIGNAL(aboutToShowGroup()), TQ_SLOT(prepareForGroup()) ); + connect( knGlobals.articleManager(), TQ_SIGNAL(aboutToShowFolder()), TQ_SLOT(prepareForFolder()) ); new KNHeaderViewToolTip( this ); @@ -188,7 +188,7 @@ void KNHeaderView::ensureItemVisibleWithMargin( const TQListViewItem *i ) { ensureVisible( contentsX(), y + h/2, 0, h/2 ); mDelayedCenter = y + h/2; - TQTimer::singleShot( 300, this, TQT_SLOT(slotCenterDelayed()) ); + TQTimer::singleShot( 300, this, TQ_SLOT(slotCenterDelayed()) ); } else { ensureVisible( contentsX(), y + h/2, 0, h/2 ); } @@ -540,7 +540,7 @@ void KNHeaderView::slotSizeChanged( int section, int, int newSize ) bool KNHeaderView::eventFilter(TQObject *o, TQEvent *e) { - if ((e->type() == TQEvent::KeyPress) && (TQT_TQKEYEVENT(e)->key() == Key_Tab)) { + if ((e->type() == TQEvent::KeyPress) && (static_cast<TQKeyEvent*>(e)->key() == Key_Tab)) { emit(focusChangeRequest(this)); if (!hasFocus()) // focusChangeRequest was successful return true; @@ -548,10 +548,10 @@ bool KNHeaderView::eventFilter(TQObject *o, TQEvent *e) // right click on header if ( e->type() == TQEvent::MouseButtonPress && - TQT_TQMOUSEEVENT(e)->button() == Qt::RightButton && - o->isA(TQHEADER_OBJECT_NAME_STRING) ) + static_cast<TQMouseEvent*>(e)->button() == TQt::RightButton && + o->isA("TQHeader") ) { - mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() ); + mPopup->popup( static_cast<TQMouseEvent*>(e)->globalPos() ); return true; } @@ -576,7 +576,7 @@ void KNHeaderView::focusOutEvent(TQFocusEvent *e) void KNHeaderView::resetCurrentTime() { mDateFormatter.reset(); - TQTimer::singleShot( 1000, this, TQT_SLOT(resetCurrentTime()) ); + TQTimer::singleShot( 1000, this, TQ_SLOT(resetCurrentTime()) ); } |