diff options
Diffstat (limited to 'ksirc')
-rw-r--r-- | ksirc/KSPrefs/page_shortcuts.cpp | 2 | ||||
-rw-r--r-- | ksirc/KSTicker/kspainter.cpp | 12 | ||||
-rw-r--r-- | ksirc/KSTicker/ksticker.cpp | 10 | ||||
-rw-r--r-- | ksirc/KSTicker/speeddialog.dlg | 4 | ||||
-rw-r--r-- | ksirc/KSTicker/speeddialogData.cpp | 4 | ||||
-rw-r--r-- | ksirc/ahistlineedit.cpp | 2 | ||||
-rw-r--r-- | ksirc/dockservercontroller.cpp | 2 | ||||
-rw-r--r-- | ksirc/kstextview.cpp | 18 | ||||
-rw-r--r-- | ksirc/ksview.cpp | 6 | ||||
-rw-r--r-- | ksirc/mditoplevel.cpp | 2 | ||||
-rw-r--r-- | ksirc/toplevel.cpp | 4 |
11 files changed, 33 insertions, 33 deletions
diff --git a/ksirc/KSPrefs/page_shortcuts.cpp b/ksirc/KSPrefs/page_shortcuts.cpp index 4d2fda54..c1f3da12 100644 --- a/ksirc/KSPrefs/page_shortcuts.cpp +++ b/ksirc/KSPrefs/page_shortcuts.cpp @@ -18,7 +18,7 @@ PageShortcuts::PageShortcuts( TQWidget *parent, const char *name ) : PageShortcutsBase( parent, name) { - globalGB->setColumnLayout( 0, Qt::Horizontal ); + globalGB->setColumnLayout( 0, TQt::Horizontal ); m_key = new KKeyChooser(servercontroller::self()->getGlobalAccel(), globalGB); connect(m_key, TQT_SIGNAL(keyChange()), this, TQT_SLOT(changed())); diff --git a/ksirc/KSTicker/kspainter.cpp b/ksirc/KSTicker/kspainter.cpp index e9e63bce..2b8f83a8 100644 --- a/ksirc/KSTicker/kspainter.cpp +++ b/ksirc/KSTicker/kspainter.cpp @@ -109,7 +109,7 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty, } if(bcolour < maxcolour ){ p->setBackgroundColor(num2colour[bcolour]); - p->setBackgroundMode(Qt::OpaqueMode); + p->setBackgroundMode(TQt::OpaqueMode); } } @@ -118,7 +118,7 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty, else if(str[i] == 0x03){ i++; p->setPen(qpDefPen); - p->setBackgroundMode(Qt::TransparentMode); + p->setBackgroundMode(TQt::TransparentMode); } else if((str[i] == '~') && ((str[i+1] >= 0x61) || (str[i+1] <= 0x7a))){ TQFont fnt = p->font(); @@ -126,11 +126,11 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty, switch(str[i+1]){ case 'c': p->setPen(qpDefPen); - p->setBackgroundMode(Qt::TransparentMode); + p->setBackgroundMode(TQt::TransparentMode); break; case 'C': p->setPen(qpDefPen); - p->setBackgroundMode(Qt::TransparentMode); + p->setBackgroundMode(TQt::TransparentMode); fnt.setBold(FALSE); fnt.setItalic(FALSE); fnt.setUnderline(FALSE); @@ -139,11 +139,11 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty, case 'r': if(ReverseText == TRUE) { ReverseText = FALSE; - p->setBackgroundMode(Qt::TransparentMode); + p->setBackgroundMode(TQt::TransparentMode); } else { ReverseText = TRUE; - p->setBackgroundMode(Qt::OpaqueMode); + p->setBackgroundMode(TQt::OpaqueMode); } temppen = p->pen().color(); p->setPen( p->backgroundColor() ); diff --git a/ksirc/KSTicker/ksticker.cpp b/ksirc/KSTicker/ksticker.cpp index f6afc2a1..1183e414 100644 --- a/ksirc/KSTicker/ksticker.cpp +++ b/ksirc/KSTicker/ksticker.cpp @@ -231,7 +231,7 @@ void KSTicker::timerEvent(TQTimerEvent *) } bAtEnd = FALSE; - static Qt::BGMode bgmode = Qt::TransparentMode; + static TQt::BGMode bgmode = TQt::TransparentMode; bitBlt(pic, -tickStep, 0, pic); TQPainter p(pic); @@ -275,12 +275,12 @@ void KSTicker::timerEvent(TQTimerEvent *) int col = buf.toInt(); if((col >= 0) || (col <= KSPainter::maxcolour)){ bg = KSPainter::num2colour[col]; - bgmode = Qt::OpaqueMode; + bgmode = TQt::OpaqueMode; } } } else{ - bgmode = Qt::TransparentMode; + bgmode = TQt::TransparentMode; } } else { @@ -352,7 +352,7 @@ void KSTicker::timerEvent(TQTimerEvent *) p.setPen(fg); p.setBackgroundColor(bg); - p.setBackgroundMode(Qt::OpaqueMode); + p.setBackgroundMode(TQt::OpaqueMode); p.drawText(this->width() - cOffset + onechar, // remove -onechar. this->height() / 4 + p.fontMetrics().height() / 2, currentStr.mid(currentChar, 1), @@ -415,7 +415,7 @@ void KSTicker::mouseDoubleClickEvent( TQMouseEvent * ) void KSTicker::mousePressEvent( TQMouseEvent *e) { - if(e->button() == Qt::RightButton){ + if(e->button() == TQt::RightButton){ popup->popup(this->cursor().pos()); } else{ diff --git a/ksirc/KSTicker/speeddialog.dlg b/ksirc/KSTicker/speeddialog.dlg index 08526647..11f29b4a 100644 --- a/ksirc/KSTicker/speeddialog.dlg +++ b/ksirc/KSTicker/speeddialog.dlg @@ -18,7 +18,7 @@ MaxSize {32767 32767} Grid {10} Slider { - Qt::Orientation {Horizontal} + TQt::Orientation {Horizontal} MinValue {10} MaxValue {200} Initial {30} @@ -36,7 +36,7 @@ Slider { MaximumSize {32767 32767} } Slider { - Qt::Orientation {Horizontal} + TQt::Orientation {Horizontal} MinValue {1} MaxValue {10} Initial {3} diff --git a/ksirc/KSTicker/speeddialogData.cpp b/ksirc/KSTicker/speeddialogData.cpp index b5ea86c9..38d5b524 100644 --- a/ksirc/KSTicker/speeddialogData.cpp +++ b/ksirc/KSTicker/speeddialogData.cpp @@ -26,7 +26,7 @@ speeddialogData::speeddialogData ( TQWidget* parent, const char* name ) sliderTick = new TQSlider( this, "Slider_1" ); grid->addWidget( sliderTick, 0, 1 ); connect( sliderTick, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateTick(int)) ); - sliderTick->setOrientation( Qt::Horizontal ); + sliderTick->setOrientation( TQt::Horizontal ); sliderTick->setRange( 10, 200 ); sliderTick->setSteps( 10, 50 ); sliderTick->setValue( 30 ); @@ -38,7 +38,7 @@ speeddialogData::speeddialogData ( TQWidget* parent, const char* name ) grid->addWidget( sliderStep, 1, 1 ); connect( sliderStep, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateStep(int)) ); - sliderStep->setOrientation( Qt::Horizontal ); + sliderStep->setOrientation( TQt::Horizontal ); sliderStep->setRange( 1, 10 ); sliderStep->setSteps( 1, 2 ); sliderStep->setValue( 3 ); diff --git a/ksirc/ahistlineedit.cpp b/ksirc/ahistlineedit.cpp index 468b6dc1..0e0be1c6 100644 --- a/ksirc/ahistlineedit.cpp +++ b/ksirc/ahistlineedit.cpp @@ -398,7 +398,7 @@ void aHistLineEdit::paintEvent ( TQPaintEvent *p ) TQPainter paint(this); TQPen pen = paint.pen(); pen.setWidth(5); - pen.setStyle(Qt::SolidLine); + pen.setStyle(TQt::SolidLine); pen.setColor(palette().active().highlight()); paint.setPen(pen); TQRect r = frameRect(); diff --git a/ksirc/dockservercontroller.cpp b/ksirc/dockservercontroller.cpp index 6fef4f97..1766a824 100644 --- a/ksirc/dockservercontroller.cpp +++ b/ksirc/dockservercontroller.cpp @@ -261,7 +261,7 @@ void dockServerController::subItemActivated(int sub_id) void dockServerController::mousePressEvent( TQMouseEvent *e ) { - if(e->button() == Qt::LeftButton){ + if(e->button() == TQt::LeftButton){ showPopupMenu(mainPop); } else { diff --git a/ksirc/kstextview.cpp b/ksirc/kstextview.cpp index 625b8dda..12a6747e 100644 --- a/ksirc/kstextview.cpp +++ b/ksirc/kstextview.cpp @@ -1827,18 +1827,18 @@ void TextView::clearSelectionInternal() void TextView::contentsMousePressEvent( TQMouseEvent *ev ) { - if ( ev->button() & Qt::RightButton ) { + if ( ev->button() & TQt::RightButton ) { emitLinkClickedForMouseEvent( ev ); return; } - if ( !( ev->button() & Qt::LeftButton ) && !(ev->button() & Qt::MidButton ) ) + if ( !( ev->button() & TQt::LeftButton ) && !(ev->button() & TQt::MidButton ) ) return; clearSelection( true ); SelectionPoint p; Item *itemUnderMouse = itemAt( ev->pos(), &p, Item::SelectFuzzy ); - if ( p.item && ( ev->button() & Qt::LeftButton ) ) { + if ( p.item && ( ev->button() & TQt::LeftButton ) ) { m_selectionMaybeStart = p; p.item->setSelectionStatus( Item::NoSelection ); } @@ -1847,7 +1847,7 @@ void TextView::contentsMousePressEvent( TQMouseEvent *ev ) if ( !href.isNull() ) { m_dragStartPos = ev->pos(); m_dragURL = href.toTQString(); - if ( ev->button() & Qt::LeftButton ) + if ( ev->button() & TQt::LeftButton ) m_mousePressed = true; else m_mmbPressed = true; @@ -1857,7 +1857,7 @@ void TextView::contentsMousePressEvent( TQMouseEvent *ev ) void TextView::contentsMouseMoveEvent( TQMouseEvent *ev ) { - if ( m_mousePressed && ev->state() == Qt::NoButton ) + if ( m_mousePressed && ev->state() == TQt::NoButton ) { m_mousePressed = false; m_mmbPressed = false; @@ -1881,8 +1881,8 @@ void TextView::contentsMouseMoveEvent( TQMouseEvent *ev ) if ( !i && !p.item ) return; - if ( (ev->state() & Qt::LeftButton && m_selectionStart.item && p.item) || - (ev->state() & Qt::LeftButton && m_selectionMaybeStart.item && p.item)) + if ( (ev->state() & TQt::LeftButton && m_selectionStart.item && p.item) || + (ev->state() & TQt::LeftButton && m_selectionMaybeStart.item && p.item)) { if(m_selectionMaybeStart.item != 0){ @@ -1952,7 +1952,7 @@ void TextView::contentsMouseReleaseEvent( TQMouseEvent *ev ) m_selectionMaybeStart = SelectionPoint(); - if ( (ev->button() & Qt::LeftButton) && !m_selectedText.isEmpty() ) + if ( (ev->button() & TQt::LeftButton) && !m_selectedText.isEmpty() ) TQApplication::clipboard()->setText( m_selectedText, TQClipboard::Selection ); if ( clicked ) { @@ -1960,7 +1960,7 @@ void TextView::contentsMouseReleaseEvent( TQMouseEvent *ev ) return; } - if (ev->button() & Qt::MidButton) + if (ev->button() & TQt::MidButton) { emit pasteReq( TDEApplication::clipboard()->text( TQClipboard::Selection ) ); return; diff --git a/ksirc/ksview.cpp b/ksirc/ksview.cpp index 9dc2d3b0..5a34d95a 100644 --- a/ksirc/ksview.cpp +++ b/ksirc/ksview.cpp @@ -270,13 +270,13 @@ void KSircView::enableTimeStamps(bool enable) void KSircView::anchorClicked(const TQMouseEvent *ev, const TQString &url) { - if ( (ev->button() & Qt::LeftButton) && (ev->state() & ShiftButton ) ) + if ( (ev->button() & TQt::LeftButton) && (ev->state() & ShiftButton ) ) saveURL( url ); - else if ( (ev->button() & Qt::LeftButton) || (ev->button() & Qt::MidButton) ) + else if ( (ev->button() & TQt::LeftButton) || (ev->button() & TQt::MidButton) ) { openBrowser( url ); } - else if ( ev->button() & Qt::RightButton ) + else if ( ev->button() & TQt::RightButton ) { static const int openURLID = 0; static const int copyLinkLocationID = 1; diff --git a/ksirc/mditoplevel.cpp b/ksirc/mditoplevel.cpp index f04acd8e..326286de 100644 --- a/ksirc/mditoplevel.cpp +++ b/ksirc/mditoplevel.cpp @@ -19,7 +19,7 @@ void KSTabWidget::mousePressEvent(TQMouseEvent *e) { - if(e->button() == Qt::RightButton){ + if(e->button() == TQt::RightButton){ TQPoint p = tabBar()->mapFromParent(e->pos()); TQTab *tab = tabBar()->selectTab(p); if(tab){ diff --git a/ksirc/toplevel.cpp b/ksirc/toplevel.cpp index 5bf678d2..beb96799 100644 --- a/ksirc/toplevel.cpp +++ b/ksirc/toplevel.cpp @@ -236,7 +236,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf TQCString kstn = TQCString(TQT_TQOBJECT(this)->name()) + "_"; - pan = new TQSplitter(Qt::Horizontal, top, kstn + "splitter"); + pan = new TQSplitter(TQt::Horizontal, top, kstn + "splitter"); #if KDE_IS_VERSION(3,1,92) pan->setOpaqueResize( TDEGlobalSettings::opaqueResize() ); #else @@ -1505,7 +1505,7 @@ void KSircTopLevel::pasteToNickList(int button, TQListBoxItem *item, const TQPoint &) { - if(button == Qt::MidButton && item){ + if(button == TQt::MidButton && item){ KSircChannel ci(m_channelInfo.server(), item->text().lower()); emit open_toplevel(ci); |