diff options
Diffstat (limited to 'src/kvirc/ui/kvi_ircview.cpp')
-rw-r--r-- | src/kvirc/ui/kvi_ircview.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/kvirc/ui/kvi_ircview.cpp b/src/kvirc/ui/kvi_ircview.cpp index af2da64..5df9132 100644 --- a/src/kvirc/ui/kvi_ircview.cpp +++ b/src/kvirc/ui/kvi_ircview.cpp @@ -338,7 +338,7 @@ KviIrcView::KviIrcView(TQWidget *parent,KviFrame *pFrm,KviWindow *pWnd) m_pToolTip = new KviIrcViewToolTip(this); // Create the scroll bar - m_pScrollBar = new TQScrollBar(0,0,1,10,0,Qt::Vertical,this,"irc_view_scrollbar"); + m_pScrollBar = new TQScrollBar(0,0,1,10,0,TQt::Vertical,this,"irc_view_scrollbar"); m_pScrollBar->setTracking(true); m_pScrollBar->show(); @@ -1887,7 +1887,7 @@ const kvi_wchar_t * KviIrcView::getTextLine(int iMsgType, { TQString szTimestamp; szTimestamp=TQDateTime::currentDateTime ( - KVI_OPTION_BOOL(KviOption_boolIrcViewTimestampUTC) ? Qt::UTC : Qt::LocalTime ).toString( + KVI_OPTION_BOOL(KviOption_boolIrcViewTimestampUTC) ? TQt::UTC : TQt::LocalTime ).toString( KVI_OPTION_STRING(KviOption_stringIrcViewTimestampFormat) ); szTimestamp.append(' '); int iTimeStampLength=szTimestamp.length(); @@ -4546,7 +4546,7 @@ void KviIrcView::mousePressEvent(TQMouseEvent *e) { if(m_pKviWindow->input()) m_pKviWindow->input()->setFocus(); - if(e->button() & Qt::LeftButton) + if(e->button() & TQt::LeftButton) { // This is the beginning of a selection... // We just set the mouse to be "down" and @@ -4568,7 +4568,7 @@ void KviIrcView::mousePressEvent(TQMouseEvent *e) calculateSelectionBounds(); } - if(e->button() & Qt::LeftButton) + if(e->button() & TQt::LeftButton) { if(m_iMouseTimer) { @@ -4601,7 +4601,7 @@ void KviIrcView::mouseRealPressEvent(TQMouseEvent *e) pParams->append(szCmd); - if(!(e->state() & TQt::ControlButton))//(e->button() & Qt::RightButton) && ( + if(!(e->state() & TQt::ControlButton))//(e->button() & TQt::RightButton) && ( { if(!linkCmd.isEmpty()) { @@ -4615,9 +4615,9 @@ void KviIrcView::mouseRealPressEvent(TQMouseEvent *e) case KVI_WINDOW_TYPE_CHANNEL: if(((KviChannel *)m_pKviWindow)->isOn(linkText)) { - if(e->button() & Qt::RightButton) + if(e->button() & TQt::RightButton) KVS_TRIGGER_EVENT(KviEvent_OnChannelNickPopupRequest,m_pKviWindow,pParams); - if(e->button() & Qt::LeftButton) { + if(e->button() & TQt::LeftButton) { KVS_TRIGGER_EVENT(KviEvent_OnChannelNickLinkClick,m_pKviWindow,pParams); if(m_pKviWindow) { @@ -4634,9 +4634,9 @@ void KviIrcView::mouseRealPressEvent(TQMouseEvent *e) case KVI_WINDOW_TYPE_QUERY: if(KviTQString::equalCI(((KviQuery *)m_pKviWindow)->windowName(),linkText)) { - if(e->button() & Qt::RightButton) + if(e->button() & TQt::RightButton) KVS_TRIGGER_EVENT(KviEvent_OnQueryNickPopupRequest,m_pKviWindow,pParams); - if(e->button() & Qt::LeftButton) + if(e->button() & TQt::LeftButton) KVS_TRIGGER_EVENT(KviEvent_OnQueryNickLinkClick,m_pKviWindow,pParams); } else bTrigger = true; break; @@ -4648,41 +4648,41 @@ void KviIrcView::mouseRealPressEvent(TQMouseEvent *e) { if(console()) { - if(e->button() & Qt::RightButton) + if(e->button() & TQt::RightButton) KVS_TRIGGER_EVENT(KviEvent_OnNickLinkPopupRequest,m_pKviWindow,pParams); - if(e->button() & Qt::LeftButton) + if(e->button() & TQt::LeftButton) KVS_TRIGGER_EVENT(KviEvent_OnConsoleNickLinkClick,m_pKviWindow,pParams); } else emit rightClicked(); } } break; case 'h': - if(e->button() & Qt::RightButton) + if(e->button() & TQt::RightButton) KVS_TRIGGER_EVENT(KviEvent_OnHostLinkPopupRequest,m_pKviWindow,pParams); - if(e->button() & Qt::LeftButton) + if(e->button() & TQt::LeftButton) KVS_TRIGGER_EVENT(KviEvent_OnHostLinkClick,m_pKviWindow,pParams); break; case 'u': - if(e->button() & Qt::RightButton) + if(e->button() & TQt::RightButton) KVS_TRIGGER_EVENT(KviEvent_OnUrlLinkPopupRequest,m_pKviWindow,pParams); - if(e->button() & Qt::LeftButton) + if(e->button() & TQt::LeftButton) KVS_TRIGGER_EVENT(KviEvent_OnUrlLinkClick,m_pKviWindow,pParams); break; case 'c': - if(e->button() & Qt::RightButton) + if(e->button() & TQt::RightButton) KVS_TRIGGER_EVENT(KviEvent_OnChannelLinkPopupRequest,m_pKviWindow,pParams); - if(e->button() & Qt::LeftButton) + if(e->button() & TQt::LeftButton) KVS_TRIGGER_EVENT(KviEvent_OnChannelLinkClick,m_pKviWindow,pParams); break; case 's': - if(e->button() & Qt::RightButton) + if(e->button() & TQt::RightButton) KVS_TRIGGER_EVENT(KviEvent_OnServerLinkPopupRequest,m_pKviWindow,pParams); - if(e->button() & Qt::LeftButton) + if(e->button() & TQt::LeftButton) KVS_TRIGGER_EVENT(KviEvent_OnServerLinkClick,m_pKviWindow,pParams); break; default: { - if(e->button() & Qt::RightButton) + if(e->button() & TQt::RightButton) { TQString tmp; getLinkEscapeCommand(tmp,linkCmd,"[!rbt]"); @@ -4694,9 +4694,9 @@ void KviIrcView::mouseRealPressEvent(TQMouseEvent *e) } break; } - } else if(e->button() & Qt::RightButton) emit rightClicked(); + } else if(e->button() & TQt::RightButton) emit rightClicked(); - } else if((e->button() & Qt::MidButton) || ((e->button() & Qt::RightButton) && (e->state() & TQt::ControlButton))) + } else if((e->button() & TQt::MidButton) || ((e->button() & TQt::RightButton) && (e->state() & TQt::ControlButton))) { TQString tmp; getLinkEscapeCommand(tmp,linkCmd,TQString("[!mbt]")); @@ -4747,7 +4747,7 @@ void KviIrcView::mouseReleaseEvent(TQMouseEvent *) void KviIrcView::mouseMoveEvent(TQMouseEvent *e) { // tqDebug("Pos : %d,%d",e->pos().x(),e->pos().y()); - if(m_bMouseIsDown && (e->state() & Qt::LeftButton)) // m_bMouseIsDown MUST BE true...(otherwise the mouse entered the window with the button pressed ?) + if(m_bMouseIsDown && (e->state() & TQt::LeftButton)) // m_bMouseIsDown MUST BE true...(otherwise the mouse entered the window with the button pressed ?) { if(m_iSelectTimer == 0)m_iSelectTimer = startTimer(KVI_IRCVIEW_SELECT_REPAINT_INTERVAL); |