";
- tmp=__tr2qs("Common channels with %1: %2").arg(m_szName).arg(szChans);
+ tmp=__tr2qs("Common channels with %1: %2").tqarg(m_szName).tqarg(szChans);
tmp.replace('&',"&");
tmp.replace('<',"<");
@@ -237,19 +237,19 @@ TQString KviQuery::getInfoLabelText()
else
szMask+="*";
if(e->hasRealName())
- tmp=__tr2qs("Query with %1!%2 (%3)").arg(m_szName).arg(szMask).arg(KviMircCntrl::stripControlBytes(e->realName()));
+ tmp=__tr2qs("Query with %1!%2 (%3)").tqarg(m_szName).tqarg(szMask).tqarg(KviMircCntrl::stripControlBytes(e->realName()));
else
- tmp=__tr2qs("Query with %1!%2").arg(m_szName).arg(szMask);
+ tmp=__tr2qs("Query with %1!%2").tqarg(m_szName).tqarg(szMask);
if(e->hasServer())
- tmp+=__tr2qs(", using server %1").arg(e->server());
+ tmp+=__tr2qs(", using server %1").tqarg(e->server());
if(e->hasHops())
- tmp+=__tr2qs(" (%1 hops)").arg(e->hops());
+ tmp+=__tr2qs(" (%1 hops)").tqarg(e->hops());
if(e->isAway())
tmp+=__tr2qs(", probably away");
tmp+="\n";
TQString szChans;
connection()->getCommonChannels(m_szName,szChans,0);
- tmp+=__tr2qs("Common channels: %2").arg(szChans);
+ tmp+=__tr2qs("Common channels: %2").tqarg(szChans);
} else {
tmp=__tr2qs("[Dead Query]");
}
@@ -547,7 +547,7 @@ void KviQuery::applyOptions()
{
m_pUserListView->applyOptions();
updateLabelText();
- // this applies options for IrcView and Input and forces the window to relayout
+ // this applies options for IrcView and Input and forces the window to retqlayout
KviWindow::applyOptions();
}
@@ -559,15 +559,15 @@ TQPixmap * KviQuery::myIconPtr()
void KviQuery::resizeEvent(TQResizeEvent *e)
{
int hght = m_pInput->heightHint();
- int hght2 = m_pButtonBox->sizeHint().height();
+ int hght2 = m_pButtonBox->tqsizeHint().height();
m_pButtonBox->setGeometry(0,0,width(),hght2);
m_pSplitter->setGeometry(0,hght2,width(),height() - (hght + hght2));
m_pInput->setGeometry(0,height() - hght,width(),hght);
}
-TQSize KviQuery::sizeHint() const
+TQSize KviQuery::tqsizeHint() const
{
- TQSize ret(m_pSplitter->sizeHint().width(),m_pIrcView->sizeHint().height() + m_pInput->heightHint());
+ TQSize ret(m_pSplitter->tqsizeHint().width(),m_pIrcView->tqsizeHint().height() + m_pInput->heightHint());
return ret;
}
diff --git a/src/kvirc/ui/kvi_query.h b/src/kvirc/ui/kvi_query.h
index d0a12e5..3b1a81b 100644
--- a/src/kvirc/ui/kvi_query.h
+++ b/src/kvirc/ui/kvi_query.h
@@ -66,7 +66,7 @@ public:
void setDeadQuery();
void setAliveQuery();
bool isDeadQuery(){ return m_iFlags & KVI_TQUERY_FLAG_DEAD; };
- virtual TQSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
virtual const TQString & target(){ return windowName(); };
virtual void applyOptions();
KviUserListEntry * setTarget(const TQString &nick,const TQString &user,const TQString &host);
diff --git a/src/kvirc/ui/kvi_selectors.cpp b/src/kvirc/ui/kvi_selectors.cpp
index 9eca884..c3e5473 100644
--- a/src/kvirc/ui/kvi_selectors.cpp
+++ b/src/kvirc/ui/kvi_selectors.cpp
@@ -35,9 +35,9 @@
#include
#include
-#include
+#include
#include
-#include
+#include
#include
#include "kvi_tal_popupmenu.h"
@@ -513,7 +513,7 @@ KviColorSelector::KviColorSelector(TQWidget * par,const TQString & txt,TQColor *
void KviColorSelector::setButtonPalette(TQColor * pOption)
{
- TQPalette pal(*pOption,colorGroup().background());
+ TQPalette pal(*pOption,tqcolorGroup().background());
m_memColor = *pOption;
m_pButton->setPalette(pal);
diff --git a/src/kvirc/ui/kvi_splash.cpp b/src/kvirc/ui/kvi_splash.cpp
index 405d50b..d91be01 100644
--- a/src/kvirc/ui/kvi_splash.cpp
+++ b/src/kvirc/ui/kvi_splash.cpp
@@ -37,7 +37,7 @@
#include
#include
-#include
+#include
#include
@@ -160,7 +160,7 @@ void KviSplashScreen::setProgress(int progress)
painter.end();
#endif
//raise();
- repaint();
+ tqrepaint();
g_pApp->processEvents(); //damn...
}
diff --git a/src/kvirc/ui/kvi_statusbar.cpp b/src/kvirc/ui/kvi_statusbar.cpp
index 91c5fdb..861facd 100644
--- a/src/kvirc/ui/kvi_statusbar.cpp
+++ b/src/kvirc/ui/kvi_statusbar.cpp
@@ -43,7 +43,7 @@
#include
#include
-#include
+#include
#include
#include
#include "kvi_tal_popupmenu.h"
@@ -106,9 +106,9 @@ KviStatusBar::KviStatusBar(KviFrame * pFrame)
m_pMessageLabel = new TQLabel("[x] x",this,"msgstatuslabel");
m_pMessageLabel->setMargin(1);
#ifdef COMPILE_USE_QT4
- m_pMessageLabel->setAlignment(TQt::AlignVCenter | TQt::AlignLeft);
+ m_pMessageLabel->tqsetAlignment(TQt::AlignVCenter | TQt::AlignLeft);
#else
- m_pMessageLabel->setAlignment(SingleLine | TQt::AlignVCenter | TQt::AlignLeft);
+ m_pMessageLabel->tqsetAlignment(SingleLine | TQt::AlignVCenter | TQt::AlignLeft);
#endif
m_pMessageLabel->setMinimumWidth(350);
@@ -210,7 +210,7 @@ void KviStatusBar::layoutChildren()
int h = height() - (VMARGIN * 2);
for(KviStatusBarApplet * a = m_pAppletList->last();a;a = m_pAppletList->prev())
{
- int w = a->sizeHint().width();
+ int w = a->tqsizeHint().width();
x -= w;
a->setGeometry(x,VMARGIN,w,h);
x -= SPACING;
@@ -237,11 +237,11 @@ bool KviStatusBar::event(TQEvent * e)
void KviStatusBar::recalcMinimumHeight()
{
int s = 18;
- int h = m_pMessageLabel->sizeHint().height();
+ int h = m_pMessageLabel->tqsizeHint().height();
if(h > s)s = h;
for(KviStatusBarApplet * a = m_pAppletList->last();a;a = m_pAppletList->prev())
{
- h = a->sizeHint().height();
+ h = a->tqsizeHint().height();
if(h > s)s = h;
}
s += (VMARGIN * 2) + RICHTEXTLABELTRICK;
@@ -249,7 +249,7 @@ void KviStatusBar::recalcMinimumHeight()
{
m_iLastMinimumHeight = s;
setMinimumHeight(s);
- TQLayout * l = layout();
+ TQLayout * l = tqlayout();
if(l)
if(l->inherits(TQBOXLAYOUT_OBJECT_NAME_STRING))
((TQBoxLayout *)l)->addStrut(s);
@@ -467,9 +467,9 @@ void KviStatusBar::paintEvent(TQPaintEvent * e)
{
// avoid the ugly rectangle around the widgets painted by TQStatusBar
// TQPainter p(this);
-// style().drawPrimitive(TQStyle::PE_Panel,&p,rect(),colorGroup(),TQStyle::Style_Raised,TQStyleOption(1,1));
+// style().drawPrimitive(TQStyle::PE_Panel,&p,rect(),tqcolorGroup(),TQStyle::Style_Raised,TQStyleOption(1,1));
//TQStatusBar::paintEvent(e);
- //qDrawWinPanel(&p,0,0,width(),height(),colorGroup(),false,0);
+ //qDrawWinPanel(&p,0,0,width(),height(),tqcolorGroup(),false,0);
}
void KviStatusBar::mousePressEvent(TQMouseEvent * e)
diff --git a/src/kvirc/ui/kvi_statusbarapplet.cpp b/src/kvirc/ui/kvi_statusbarapplet.cpp
index 0177623..bc8fa02 100644
--- a/src/kvirc/ui/kvi_statusbarapplet.cpp
+++ b/src/kvirc/ui/kvi_statusbarapplet.cpp
@@ -42,7 +42,7 @@
#include
#include
-#include
+#include
#include
#include
#include "kvi_tal_popupmenu.h"
diff --git a/src/kvirc/ui/kvi_styled_controls.cpp b/src/kvirc/ui/kvi_styled_controls.cpp
index 6f7e8e6..629fae9 100644
--- a/src/kvirc/ui/kvi_styled_controls.cpp
+++ b/src/kvirc/ui/kvi_styled_controls.cpp
@@ -84,7 +84,7 @@ void KviStyledControlInternal::paintTimerShot ()
m_pControl->m_pTimer->stop();
}
}
- m_pControl->m_pWidget->repaint( false );
+ m_pControl->m_pWidget->tqrepaint( false );
}
KviStyledControl::KviStyledControl(TQWidget* w)
@@ -118,7 +118,7 @@ void KviStyledControl::enterEvent ( TQEvent * )
}
m_bMouseEnter=1;
m_iStepNumber++;
- m_pWidget->repaint( false );
+ m_pWidget->tqrepaint( false );
}
}
@@ -137,7 +137,7 @@ void KviStyledControl::leaveEvent ( TQEvent * )
}
m_bMouseEnter=0;
m_iStepNumber--;
- m_pWidget->repaint( false );
+ m_pWidget->tqrepaint( false );
}
}
@@ -279,7 +279,7 @@ void KviStyledToolButton::paintEvent ( TQPaintEvent * event)
pDoubleBufferPixmap->fill(
bActive ? TQColor(206,215,223) :
- colorGroup().background()
+ tqcolorGroup().background()
);
diff --git a/src/kvirc/ui/kvi_taskbar.cpp b/src/kvirc/ui/kvi_taskbar.cpp
index 171e411..ad47661 100644
--- a/src/kvirc/ui/kvi_taskbar.cpp
+++ b/src/kvirc/ui/kvi_taskbar.cpp
@@ -290,7 +290,7 @@ void KviTaskBarButton::drawButtonLabel(TQPainter * painter)
if(KVI_OPTION_BOOL(KviOption_boolUseTaskBarIrcContextIndicator))
{
iHeight -= KVI_TASKBARBUTTON_CONTEXTINDICATORHEIGHT;
- TQColor base = colorGroup().background();
+ TQColor base = tqcolorGroup().background();
if(m_pWindow->console())
{
TQColor cntx = KVI_OPTION_ICCOLOR(m_pWindow->console()->ircContextId() % KVI_NUM_ICCOLOR_OPTIONS);
@@ -298,7 +298,7 @@ void KviTaskBarButton::drawButtonLabel(TQPainter * painter)
(base.blue() + cntx.blue()) >> 1);
pPainter->fillRect(2,iHeight,iWidth - 4,KVI_TASKBARBUTTON_CONTEXTINDICATORHEIGHT - 2,base);
} else {
- pPainter->fillRect(2,iHeight,iWidth - 4,KVI_TASKBARBUTTON_CONTEXTINDICATORHEIGHT - 2,colorGroup().brush(TQColorGroup::Background));
+ pPainter->fillRect(2,iHeight,iWidth - 4,KVI_TASKBARBUTTON_CONTEXTINDICATORHEIGHT - 2,tqcolorGroup().brush(TQColorGroup::Background));
}
}
@@ -394,7 +394,7 @@ void KviTaskBarButton::drawButtonLabel(TQPainter * painter)
{
pPainter->setClipRect(cRect.right(),cRect.y(),10,cRect.height());
TQColor base = pPainter->pen().color();
- TQColor bg = colorGroup().color(TQColorGroup::Background);
+ TQColor bg = tqcolorGroup().color(TQColorGroup::Background);
base.setRgb((base.red() + bg.red()) / 2,(base.green() + bg.green()) / 2,(base.blue() + bg.blue()) / 2);
pPainter->setPen(base);
cRect.setWidth(cRect.width() + 10);
@@ -421,7 +421,7 @@ void KviTaskBarButton::setProgress(int progress)
{
if(progress == m_iProgress)return;
m_iProgress = progress;
- update(); // repaint(false) ?
+ update(); // tqrepaint(false) ?
}
void KviTaskBarButton::unhighlight()
@@ -439,7 +439,7 @@ void KviTaskBarButton::highlight(int iLevel)
m_iHighlightLevel = iLevel;
if(g_pFrame->dockExtension())g_pFrame->dockExtension()->refresh();
if(m_bActive)return;
- update(); // repaint(false) ?
+ update(); // tqrepaint(false) ?
}
@@ -833,7 +833,7 @@ void KviTreeTaskBarItem::applyOptions()
void KviTreeTaskBarItem::captionChanged()
{
// FIXME: can we do better ?
- repaint();
+ tqrepaint();
}
void KviTreeTaskBarItem::unhighlight()
@@ -841,7 +841,7 @@ void KviTreeTaskBarItem::unhighlight()
if(m_iHighlightLevel < 1)return;
m_iHighlightLevel = 0;
if(g_pFrame->dockExtension())g_pFrame->dockExtension()->refresh();
- repaint();
+ tqrepaint();
}
void KviTreeTaskBarItem::highlight(int iLevel)
@@ -851,14 +851,14 @@ void KviTreeTaskBarItem::highlight(int iLevel)
m_iHighlightLevel = iLevel;
if(g_pFrame->dockExtension())g_pFrame->dockExtension()->refresh();
if(isSelected())return;
- repaint(); // repaint(false) ?
+ tqrepaint(); // tqrepaint(false) ?
}
void KviTreeTaskBarItem::setProgress(int progress)
{
if(progress == m_iProgress)return;
m_iProgress = progress;
- repaint(); // repaint(false) ?
+ tqrepaint(); // tqrepaint(false) ?
}
void KviTreeTaskBarItem::setActive(bool bActive)
@@ -868,7 +868,7 @@ void KviTreeTaskBarItem::setActive(bool bActive)
// m_bHighlighted = false;
// m_bAltColor = false;
m_iHighlightLevel = 0;
- // was not selected: the listView will repaint it
+ // was not selected: the listView will tqrepaint it
} else {
if(isSelected())
{
@@ -876,7 +876,7 @@ void KviTreeTaskBarItem::setActive(bool bActive)
// m_bHighlighted = false;
// m_bAltColor = false;
m_iHighlightLevel = 0;
- // was selected: the list view will repaint it
+ // was selected: the list view will tqrepaint it
}
}
}
@@ -907,7 +907,7 @@ void KviTreeTaskBarItem::paintCell(TQPainter *painter,const TQColorGroup &cg,int
#ifdef COMPILE_PSEUDO_TRANSPARENCY
if(g_pShadedChildGlobalDesktopBackground)
{
- TQPoint pnt = listView()->viewport()->mapToGlobal(TQPoint(int(painter->worldMatrix().dx()),int(painter->worldMatrix().dy())));
+ TQPoint pnt = listView()->viewport()->mapToGlobal(TQPoint(int(painter->tqworldMatrix().dx()),int(painter->tqworldMatrix().dy())));
p.drawTiledPixmap(0,0,width,height(),*g_pShadedChildGlobalDesktopBackground,pnt.x(),pnt.y());
} else {
#endif
@@ -918,7 +918,7 @@ void KviTreeTaskBarItem::paintCell(TQPainter *painter,const TQColorGroup &cg,int
TQPixmap * pix = KVI_OPTION_PIXMAP(KviOption_pixmapTreeTaskBarBackground).pixmap();
if(pix)
{
- TQPoint pnt = listView()->viewportToContents(TQPoint(int(painter->worldMatrix().dx()),int(painter->worldMatrix().dy())));
+ TQPoint pnt = listView()->viewportToContents(TQPoint(int(painter->tqworldMatrix().dx()),int(painter->tqworldMatrix().dy())));
//p.drawTiledPixmap(0,0,width,height(),*pix,pnt.x(),pnt.y());
// debug("%i %i",pnt.x(),pnt.y());
p.translate(-pnt.x(),-pnt.y());
@@ -1081,7 +1081,7 @@ void KviTreeTaskBarItem::timerShot()
m_pAnimTimer->stop();
m_iStepNumber=0; //make shure, that we cannot get out of range
}
- repaint();
+ tqrepaint();
}
void KviTreeTaskBarItem::mouseEnter()
@@ -1192,7 +1192,7 @@ void KviTreeTaskBarListView::paintEmptyArea(TQPainter * p,const TQRect &rct)
#ifdef COMPILE_PSEUDO_TRANSPARENCY
if(g_pShadedChildGlobalDesktopBackground)
{
- TQPoint pnt = viewport()->mapToGlobal(TQPoint(rct.x() + int(p->worldMatrix().dx()),rct.y() + int(p->worldMatrix().dy())));
+ TQPoint pnt = viewport()->mapToGlobal(TQPoint(rct.x() + int(p->tqworldMatrix().dx()),rct.y() + int(p->tqworldMatrix().dy())));
p->drawTiledPixmap(rct.x(),rct.y(),rct.width(),rct.height(),*g_pShadedChildGlobalDesktopBackground,pnt.x(),pnt.y());
} else {
#endif
@@ -1204,7 +1204,7 @@ void KviTreeTaskBarListView::paintEmptyArea(TQPainter * p,const TQRect &rct)
TQPixmap * pix = KVI_OPTION_PIXMAP(KviOption_pixmapTreeTaskBarBackground).pixmap();
if(pix)
{
- TQPoint pnt = viewportToContents(TQPoint(rct.x() + int(p->worldMatrix().dx()),rct.y() + int(p->worldMatrix().dy())));
+ TQPoint pnt = viewportToContents(TQPoint(rct.x() + int(p->tqworldMatrix().dx()),rct.y() + int(p->tqworldMatrix().dy())));
//p->drawTiledPixmap(rct.x(),rct.y(),rct.width(),rct.height(),*pix,pnt.x(),pnt.y());
KviPixmapUtils::drawPixmapWithPainter(p,pix,KVI_OPTION_UINT(KviOption_uintTreeTaskBarPixmapAlign),rct,viewport()->width(),viewport()->height(),pnt.x(),pnt.y());
}
@@ -1235,7 +1235,7 @@ KviTreeTaskBar::KviTreeTaskBar()
// FIXME: this code is useless ?
if(KVI_OPTION_UINT(KviOption_uintTreeTaskBarMinimumWidth) < 48)
KVI_OPTION_UINT(KviOption_uintTreeTaskBarMinimumWidth) = 48;
- int iMin = m_pListView->minimumSize().width() + 4;
+ int iMin = m_pListView->tqminimumSize().width() + 4;
if(((unsigned int)iMin) < KVI_OPTION_UINT(KviOption_uintTreeTaskBarMinimumWidth))
iMin = KVI_OPTION_UINT(KviOption_uintTreeTaskBarMinimumWidth);
setMinimumWidth(iMin);
@@ -1305,7 +1305,7 @@ void KviTreeTaskBar::tipRequest(KviDynamicToolTip *,const TQPoint &pnt)
{
TQString szText;
((KviTreeTaskBarItem *)it)->m_pWindow->getTaskBarTipText(szText);
- m_pToolTip->tip(m_pListView->itemRect(it),szText);
+ m_pToolTip->tip(m_pListView->tqitemRect(it),szText);
}
}
}
@@ -1405,7 +1405,7 @@ KviTaskBarItem * KviTreeTaskBar::nextItem()
{
m_pCurrentItem = (KviTreeTaskBarItem *)m_pCurrentItem->firstChild();
} else {
- // this item has no children: try the next sibling
+ // this item has no tqchildren: try the next sibling
if(m_pCurrentItem->nextSibling())
{
m_pCurrentItem = (KviTreeTaskBarItem *)m_pCurrentItem->nextSibling();
diff --git a/src/kvirc/ui/kvi_taskbar.h b/src/kvirc/ui/kvi_taskbar.h
index 6c5794c..9e9ebe2 100644
--- a/src/kvirc/ui/kvi_taskbar.h
+++ b/src/kvirc/ui/kvi_taskbar.h
@@ -226,7 +226,7 @@ protected:
int m_iBlueDiff;
public:
virtual TQString key(int column,bool) const;
- virtual void paintCell(TQPainter *p,const TQColorGroup &cg,int column,int width,int alignment);
+ virtual void paintCell(TQPainter *p,const TQColorGroup &cg,int column,int width,int tqalignment);
#ifdef COMPILE_USE_QT4
virtual void paintBranches(TQPainter *p,const TQColorGroup &cg,int w,int y,int h);
#else
diff --git a/src/kvirc/ui/kvi_themedlabel.cpp b/src/kvirc/ui/kvi_themedlabel.cpp
index ef54460..1f57db0 100644
--- a/src/kvirc/ui/kvi_themedlabel.cpp
+++ b/src/kvirc/ui/kvi_themedlabel.cpp
@@ -44,9 +44,9 @@ KviThemedLabel::~KviThemedLabel()
{
}
-/*TQSize KviThemedLabel::sizeHint()
+/*TQSize KviThemedLabel::tqsizeHint()
{
- TQSize size=TQFrame::sizeHint();
+ TQSize size=TQFrame::tqsizeHint();
int iHeight=fontMetrics().height()*TQStringList::split('\n',m_szText).count()+4;
size.setHeight(iHeight);
return size;
diff --git a/src/kvirc/ui/kvi_themedlabel.h b/src/kvirc/ui/kvi_themedlabel.h
index f704310..a307149 100644
--- a/src/kvirc/ui/kvi_themedlabel.h
+++ b/src/kvirc/ui/kvi_themedlabel.h
@@ -55,7 +55,7 @@ public:
void setAutoHeight(bool value) { m_bAutoHeight=value; };
void applyOptions();
-// TQSize sizeHint();
+// TQSize tqsizeHint();
signals:
void doubleClicked();
};
diff --git a/src/kvirc/ui/kvi_toolwindows_container.cpp b/src/kvirc/ui/kvi_toolwindows_container.cpp
index 470957f..65c6dec 100644
--- a/src/kvirc/ui/kvi_toolwindows_container.cpp
+++ b/src/kvirc/ui/kvi_toolwindows_container.cpp
@@ -1,7 +1,7 @@
#define __KVIRC__
-#include
+#include
#include
#include
#include
@@ -94,7 +94,7 @@ KviWindowToolPageButton::KviWindowToolPageButton ( int pixon,int pixoff, const T
setToggleButton(true);
setOn(bOn);
-// setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Ignored));
+// tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Ignored));
}
KviWindowToolPageButton::~KviWindowToolPageButton()
@@ -106,9 +106,9 @@ KviWindowToolPageButton::~KviWindowToolPageButton()
{
TQPixmap pixmap( height(), width() );
if(isOn())
- pixmap.fill(colorGroup().mid());
+ pixmap.fill(tqcolorGroup().mid());
else
- pixmap.fill(colorGroup().button());
+ pixmap.fill(tqcolorGroup().button());
TQPainter painter( &pixmap );
TQPixmap icon;
@@ -118,7 +118,7 @@ KviWindowToolPageButton::~KviWindowToolPageButton()
icon=iconSet()->pixmap(TQIconSet::Small,TQIconSet::Normal,TQIconSet::Off);
// Draw the frame
- //painter.setPen( colorGroup().mid() );
+ //painter.setPen( tqcolorGroup().mid() );
//if ( m_id != NUM_TABS - 1 ) painter.drawLine( 0, 0, 0, pixmap.height() - 1 );
//painter.drawLine( 0, pixmap.height() - 1, pixmap.width() - 1, pixmap.height() - 1 );
@@ -127,7 +127,7 @@ KviWindowToolPageButton::~KviWindowToolPageButton()
TQString str = text();
str.remove("&");
const int textX = pixmap.width() / 2 - TQFontMetrics( font ).width( str ) / 2;
- painter.setPen( colorGroup().buttonText() );
+ painter.setPen( tqcolorGroup().buttonText() );
const TQRect rect( textX + icon.width() / 2 + 2, 0, pixmap.width(), pixmap.height() );
painter.drawText( rect, TQt::AlignLeft | TQt::AlignVCenter, str );
diff --git a/src/kvirc/ui/kvi_topicw.cpp b/src/kvirc/ui/kvi_topicw.cpp
index b9905ca..fe9011e 100644
--- a/src/kvirc/ui/kvi_topicw.cpp
+++ b/src/kvirc/ui/kvi_topicw.cpp
@@ -52,7 +52,7 @@ static int g_iInputFontCharWidth[256];
#include
#include "kvi_tal_listbox.h"
#include
-#include
+#include
#include "kvi_tal_popupmenu.h"
#include
@@ -74,7 +74,7 @@ int KviListBoxTopicItem::width ( const KviTalListBox * lb ) const
void KviListBoxTopicItem::paint ( TQPainter * p )
{
- KviTopicWidget::paintColoredText(p,text(),listBox()->colorGroup(),height(listBox()));
+ KviTopicWidget::paintColoredText(p,text(),listBox()->tqcolorGroup(),height(listBox()));
}
@@ -153,7 +153,7 @@ TQString convertToHtml(const TQString &text)
while(idx < text.length())
{
- unsigned short c = text[(int)idx].unicode();
+ unsigned short c = text[(int)idx].tqunicode();
unsigned int start = idx;
@@ -168,7 +168,7 @@ TQString convertToHtml(const TQString &text)
{
idx++;
if(idx >= text.length())break;
- else c = text[(int)idx].unicode();
+ else c = text[(int)idx].tqunicode();
}
int len = idx - start;
@@ -251,7 +251,7 @@ TQString convertToHtml(const TQString &text)
++idx;
unsigned int icoStart = idx;
- while((idx < text.length()) && (text[(int)idx].unicode() > 32))idx++;
+ while((idx < text.length()) && (text[(int)idx].tqunicode() > 32))idx++;
KviStr lookupString = text.mid(icoStart,idx - icoStart);
@@ -291,7 +291,7 @@ void KviTopicWidget::paintColoredText(TQPainter *p, TQString text,const TQColorG
while((idx < text.length()) && (curX < width))
{
- unsigned short c = text[(int)idx].unicode();
+ unsigned short c = text[(int)idx].tqunicode();
unsigned int start = idx;
@@ -305,7 +305,7 @@ void KviTopicWidget::paintColoredText(TQPainter *p, TQString text,const TQColorG
)
{
idx++;
- c = text[(int)idx].unicode();
+ c = text[(int)idx].tqunicode();
}
int len = idx - start;
@@ -392,7 +392,7 @@ void KviTopicWidget::paintColoredText(TQPainter *p, TQString text,const TQColorG
++idx;
unsigned int icoStart = idx;
- while((idx < text.length()) && (text[(int)idx].unicode() > 32))idx++;
+ while((idx < text.length()) && (text[(int)idx].tqunicode() > 32))idx++;
KviStr lookupString = text.mid(icoStart,idx - icoStart);
@@ -438,11 +438,11 @@ void KviTopicWidget::drawContents(TQPainter *p)
#ifdef COMPILE_PSEUDO_TRANSPARENCY
}
#endif
- TQColorGroup colorGroup;
- //colorGroup()
- colorGroup.setColor(TQColorGroup::Text,KVI_OPTION_COLOR(KviOption_colorLabelForeground));
- colorGroup.setColor(TQColorGroup::Background,KVI_OPTION_COLOR(KviOption_colorLabelBackground));
- paintColoredText(p,m_szTopic,colorGroup);
+ TQColorGroup tqcolorGroup;
+ //tqcolorGroup()
+ tqcolorGroup.setColor(TQColorGroup::Text,KVI_OPTION_COLOR(KviOption_colorLabelForeground));
+ tqcolorGroup.setColor(TQColorGroup::Background,KVI_OPTION_COLOR(KviOption_colorLabelBackground));
+ paintColoredText(p,m_szTopic,tqcolorGroup);
}
void KviTopicWidget::setTopic(const TQString & topic)
@@ -541,7 +541,7 @@ void KviTopicWidget::updateToolTip()
KviTalToolTip::add(this,txt);
}
-TQSize KviTopicWidget::sizeHint() const
+TQSize KviTopicWidget::tqsizeHint() const
{
TQFontMetrics fm(font());
int hght = fm.lineSpacing() + (frameWidth() << 1) + 4;
@@ -629,7 +629,7 @@ void KviTopicWidget::contextPopupAboutToShow()
void KviTopicWidget::copy()
{
- TQClipboard * c = TQApplication::clipboard();
+ TQClipboard * c = TQApplication::tqclipboard();
if(!c)return;
if(c->supportsSelection())c->setText(m_szTopic,TQClipboard::Selection);
c->setText(m_szTopic,TQClipboard::Clipboard);
diff --git a/src/kvirc/ui/kvi_topicw.h b/src/kvirc/ui/kvi_topicw.h
index 89e4901..5a59ced 100644
--- a/src/kvirc/ui/kvi_topicw.h
+++ b/src/kvirc/ui/kvi_topicw.h
@@ -102,7 +102,7 @@ public:
const TQString & topic(){ return m_szTopic; };
const TQString & topicSetBy(){ return m_szSetBy; };
const TQString & topicSetAt(){ return m_szSetAt; };
- virtual TQSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
void applyOptions();
static void paintColoredText(TQPainter *p, TQString text,const TQColorGroup& cg, int h=-1, int w=-1);
diff --git a/src/kvirc/ui/kvi_userlistview.cpp b/src/kvirc/ui/kvi_userlistview.cpp
index a66156c..d504915 100644
--- a/src/kvirc/ui/kvi_userlistview.cpp
+++ b/src/kvirc/ui/kvi_userlistview.cpp
@@ -305,7 +305,7 @@ void KviUserListView::applyOptions()
m_pUsersLabel->setFont(KVI_OPTION_FONT(KviOption_fontUserListView));
setMinimumWidth(100);
resizeEvent(0); // this will call update() too
- repaint();
+ tqrepaint();
}
void KviUserListView::updateArea()
{
@@ -838,7 +838,7 @@ int KviUserListView::getUserModeLevel(const TQString &szNick)
char KviUserListView::getUserFlag(KviUserListEntry * e)
{
if(!e)return 0;
- return (char)m_pKviWindow->connection()->serverInfo()->modePrefixChar(e->m_iFlags).unicode();
+ return (char)m_pKviWindow->connection()->serverInfo()->modePrefixChar(e->m_iFlags).tqunicode();
}
void KviUserListView::prependUserFlag(const TQString &nick,TQString &buffer)
@@ -1141,7 +1141,7 @@ void KviUserListView::resizeEvent(TQResizeEvent *)
int hght;
if(!KVI_OPTION_BOOL(KviOption_boolDisableUserListLabel))//G&N 2005
{
- hght = m_pUsersLabel->sizeHint().height();
+ hght = m_pUsersLabel->tqsizeHint().height();
if(hght < 16)hght = 16; // at least
m_pUsersLabel->setGeometry(0,0,width(),hght);
}
@@ -1281,7 +1281,7 @@ void KviUserListView::maybeTip(KviUserListToolTip * tip,const TQPoint &pnt)
TQDateTime dt;
dt.setTime_t(it->m_joinTime);
buffer += "";
- buffer += __tr2qs("Joined on %1").arg(dt.toString());
+ buffer += __tr2qs("Joined on %1").tqarg(dt.toString());
buffer += " | ";
}
@@ -1293,7 +1293,7 @@ void KviUserListView::maybeTip(KviUserListToolTip * tip,const TQPoint &pnt)
int hors = mins / 60;
mins = mins % 60;
buffer += "";
- buffer += __tr2qs("Quiet for %1h %2m %3s").arg(hors).arg(mins).arg(secs);
+ buffer += __tr2qs("Quiet for %1h %2m %3s").tqarg(hors).tqarg(mins).tqarg(secs);
buffer += " | ";
}
buffer += "";
@@ -1531,9 +1531,9 @@ void KviUserListViewArea::paintEvent(TQPaintEvent *ev)
p.setPen(TQPen(KVI_OPTION_COLOR(KviOption_colorUserListViewGrid),0 /*,TQPen::DotLine*/));
if((bShowState || bShowIcons) && (KVI_OPTION_UINT(KviOption_uintUserListViewGridType) == KVI_USERLISTVIEW_GRIDTYPE_3DGRID))
p.drawLine(iAvatarAndTextX,bottom - 1,iAvatarAndTextX,theY);
- p.setPen(colorGroup().shadow());
+ p.setPen(tqcolorGroup().shadow());
p.drawLine(0,bottom - 1,wdth,bottom - 1);
- p.setPen(colorGroup().light());
+ p.setPen(tqcolorGroup().light());
p.drawLine(0,theY,wdth,theY);
theY--;
}
@@ -1725,10 +1725,10 @@ void KviUserListViewArea::paintEvent(TQPaintEvent *ev)
//we really do not need any self-draw borders.
//if we will need it, we will draw a better one with system style
- //p.setPen(colorGroup().dark());
+ //p.setPen(tqcolorGroup().dark());
//p.drawLine(0,0,wdth,0);
//p.drawLine(0,0,0,height());
- //p.setPen(colorGroup().light());
+ //p.setPen(tqcolorGroup().light());
//p.drawLine(1,height()-1,wdth,height()-1);
//p.drawLine(wdth - 1,1,wdth - 1,height());
@@ -1742,7 +1742,7 @@ void KviUserListViewArea::paintEvent(TQPaintEvent *ev)
void KviUserListViewArea::resizeEvent(TQResizeEvent *)
{
- int iScr = m_pScrollBar->sizeHint().width();
+ int iScr = m_pScrollBar->tqsizeHint().width();
m_pScrollBar->setGeometry(width() - iScr,0,iScr,height());
m_pScrollBar->setPageStep(height());
m_pScrollBar->setLineStep(m_pListView->m_iFontHeight - 1);
diff --git a/src/kvirc/ui/kvi_window.cpp b/src/kvirc/ui/kvi_window.cpp
index 435c915..6c959e7 100644
--- a/src/kvirc/ui/kvi_window.cpp
+++ b/src/kvirc/ui/kvi_window.cpp
@@ -60,7 +60,7 @@
#include
#include
#include
-#include
+#include
#include
// it looks they can't decide :D
@@ -285,7 +285,7 @@ void KviWindow::demandAttention()
bool KviWindow::focusNextPrevChild(bool next)
{
- TQWidget * w = focusWidget();
+ TQWidget * w = tqfocusWidget();
if(w)
{
#ifdef COMPILE_USE_QT4
@@ -299,9 +299,9 @@ bool KviWindow::focusNextPrevChild(bool next)
if(w->parent())
{
#ifdef COMPILE_USE_QT4
- if(w->parent()->metaObject()->indexOfProperty("KviProperty_ChildFocusOwner") == -1)
+ if(w->parent()->tqmetaObject()->indexOfProperty("KviProperty_ChildFocusOwner") == -1)
#else
- if(w->parent()->metaObject()->findProperty("KviProperty_ChildFocusOwner") == -1)
+ if(w->parent()->tqmetaObject()->findProperty("KviProperty_ChildFocusOwner") == -1)
#endif
return false; // Do NOT change the focus widget!
}
@@ -586,7 +586,7 @@ void KviWindow::getDefaultLogFileName(TQString &buffer)
{
// FIXME: #warning "Make it configurable ?"
TQString date;
- TQDate dt(TQDate::currentDate());
+ TQDate dt(TQDate::tqcurrentDate());
date=dt.toString("yyyy.MM.dd");
TQString base;
getBaseLogFileName(base);
@@ -1006,7 +1006,7 @@ void KviWindow::focusInEvent(TQFocusEvent *)
if(m_pIrcView)m_pFocusHandler = m_pIrcView;
else {
#ifdef COMPILE_USE_QT4
- TQList list = children();
+ TQList list = tqchildren();
for(TQList::Iterator it = list.begin();it != list.end();++it)
{
TQObject * c = *it;
@@ -1042,7 +1042,7 @@ void KviWindow::focusInEvent(TQFocusEvent *)
}
// Setting the focus to the focus handler usually
- // triggers our filter for the children's focusInEvent.
+ // triggers our filter for the tqchildren's focusInEvent.
// This should call activateSelf() and thus
// we should be already the active window at this point.
// If we're not, then run activateSelf() to fix this.
@@ -1124,7 +1124,7 @@ void KviWindow::childInserted(TQWidget * o)
}
#ifdef COMPILE_USE_QT4
- TQList list = o->children();
+ TQList |