";
- tmp=__tr2qs("Common channels with %1: %2").tqarg(m_szName).tqarg(szChans);
+ tmp=__tr2qs("Common channels with %1: %2").arg(m_szName).arg(szChans);
tmp.replace('&',"&");
tmp.replace('<',"<");
@@ -237,19 +237,19 @@ TQString KviQuery::getInfoLabelText()
else
szMask+="*";
if(e->hasRealName())
- tmp=__tr2qs("Query with %1!%2 (%3)").tqarg(m_szName).tqarg(szMask).tqarg(KviMircCntrl::stripControlBytes(e->realName()));
+ tmp=__tr2qs("Query with %1!%2 (%3)").arg(m_szName).arg(szMask).arg(KviMircCntrl::stripControlBytes(e->realName()));
else
- tmp=__tr2qs("Query with %1!%2").tqarg(m_szName).tqarg(szMask);
+ tmp=__tr2qs("Query with %1!%2").arg(m_szName).arg(szMask);
if(e->hasServer())
- tmp+=__tr2qs(", using server %1").tqarg(e->server());
+ tmp+=__tr2qs(", using server %1").arg(e->server());
if(e->hasHops())
- tmp+=__tr2qs(" (%1 hops)").tqarg(e->hops());
+ tmp+=__tr2qs(" (%1 hops)").arg(e->hops());
if(e->isAway())
tmp+=__tr2qs(", probably away");
tmp+="\n";
TQString szChans;
connection()->getCommonChannels(m_szName,szChans,0);
- tmp+=__tr2qs("Common channels: %2").tqarg(szChans);
+ tmp+=__tr2qs("Common channels: %2").arg(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 retqlayout
+ // this applies options for IrcView and Input and forces the window to relayout
KviWindow::applyOptions();
}
@@ -559,15 +559,15 @@ TQPixmap * KviQuery::myIconPtr()
void KviQuery::resizeEvent(TQResizeEvent *e)
{
int hght = m_pInput->heightHint();
- int hght2 = m_pButtonBox->tqsizeHint().height();
+ int hght2 = m_pButtonBox->sizeHint().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::tqsizeHint() const
+TQSize KviQuery::sizeHint() const
{
- TQSize ret(m_pSplitter->tqsizeHint().width(),m_pIrcView->tqsizeHint().height() + m_pInput->heightHint());
+ TQSize ret(m_pSplitter->sizeHint().width(),m_pIrcView->sizeHint().height() + m_pInput->heightHint());
return ret;
}
diff --git a/src/kvirc/ui/kvi_query.h b/src/kvirc/ui/kvi_query.h
index 3b1a81b..d0a12e5 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 tqsizeHint() const;
+ virtual TQSize sizeHint() 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 c3e5473..9eca884 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,tqcolorGroup().background());
+ TQPalette pal(*pOption,colorGroup().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 d91be01..405d50b 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();
- tqrepaint();
+ repaint();
g_pApp->processEvents(); //damn...
}
diff --git a/src/kvirc/ui/kvi_statusbar.cpp b/src/kvirc/ui/kvi_statusbar.cpp
index 861facd..91c5fdb 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->tqsetAlignment(TQt::AlignVCenter | TQt::AlignLeft);
+ m_pMessageLabel->setAlignment(TQt::AlignVCenter | TQt::AlignLeft);
#else
- m_pMessageLabel->tqsetAlignment(SingleLine | TQt::AlignVCenter | TQt::AlignLeft);
+ m_pMessageLabel->setAlignment(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->tqsizeHint().width();
+ int w = a->sizeHint().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->tqsizeHint().height();
+ int h = m_pMessageLabel->sizeHint().height();
if(h > s)s = h;
for(KviStatusBarApplet * a = m_pAppletList->last();a;a = m_pAppletList->prev())
{
- h = a->tqsizeHint().height();
+ h = a->sizeHint().height();
if(h > s)s = h;
}
s += (VMARGIN * 2) + RICHTEXTLABELTRICK;
@@ -249,7 +249,7 @@ void KviStatusBar::recalcMinimumHeight()
{
m_iLastMinimumHeight = s;
setMinimumHeight(s);
- TQLayout * l = tqlayout();
+ TQLayout * l = layout();
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(),tqcolorGroup(),TQStyle::Style_Raised,TQStyleOption(1,1));
+// style().drawPrimitive(TQStyle::PE_Panel,&p,rect(),colorGroup(),TQStyle::Style_Raised,TQStyleOption(1,1));
//TQStatusBar::paintEvent(e);
- //qDrawWinPanel(&p,0,0,width(),height(),tqcolorGroup(),false,0);
+ //qDrawWinPanel(&p,0,0,width(),height(),colorGroup(),false,0);
}
void KviStatusBar::mousePressEvent(TQMouseEvent * e)
diff --git a/src/kvirc/ui/kvi_statusbarapplet.cpp b/src/kvirc/ui/kvi_statusbarapplet.cpp
index bc8fa02..0177623 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 629fae9..6f7e8e6 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->tqrepaint( false );
+ m_pControl->m_pWidget->repaint( false );
}
KviStyledControl::KviStyledControl(TQWidget* w)
@@ -118,7 +118,7 @@ void KviStyledControl::enterEvent ( TQEvent * )
}
m_bMouseEnter=1;
m_iStepNumber++;
- m_pWidget->tqrepaint( false );
+ m_pWidget->repaint( false );
}
}
@@ -137,7 +137,7 @@ void KviStyledControl::leaveEvent ( TQEvent * )
}
m_bMouseEnter=0;
m_iStepNumber--;
- m_pWidget->tqrepaint( false );
+ m_pWidget->repaint( false );
}
}
@@ -279,7 +279,7 @@ void KviStyledToolButton::paintEvent ( TQPaintEvent * event)
pDoubleBufferPixmap->fill(
bActive ? TQColor(206,215,223) :
- tqcolorGroup().background()
+ colorGroup().background()
);
diff --git a/src/kvirc/ui/kvi_taskbar.cpp b/src/kvirc/ui/kvi_taskbar.cpp
index ad47661..171e411 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 = tqcolorGroup().background();
+ TQColor base = colorGroup().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,tqcolorGroup().brush(TQColorGroup::Background));
+ pPainter->fillRect(2,iHeight,iWidth - 4,KVI_TASKBARBUTTON_CONTEXTINDICATORHEIGHT - 2,colorGroup().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 = tqcolorGroup().color(TQColorGroup::Background);
+ TQColor bg = colorGroup().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(); // tqrepaint(false) ?
+ update(); // repaint(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(); // tqrepaint(false) ?
+ update(); // repaint(false) ?
}
@@ -833,7 +833,7 @@ void KviTreeTaskBarItem::applyOptions()
void KviTreeTaskBarItem::captionChanged()
{
// FIXME: can we do better ?
- tqrepaint();
+ repaint();
}
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();
- tqrepaint();
+ repaint();
}
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;
- tqrepaint(); // tqrepaint(false) ?
+ repaint(); // repaint(false) ?
}
void KviTreeTaskBarItem::setProgress(int progress)
{
if(progress == m_iProgress)return;
m_iProgress = progress;
- tqrepaint(); // tqrepaint(false) ?
+ repaint(); // repaint(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 tqrepaint it
+ // was not selected: the listView will repaint 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 tqrepaint it
+ // was selected: the list view will repaint 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->tqworldMatrix().dx()),int(painter->tqworldMatrix().dy())));
+ TQPoint pnt = listView()->viewport()->mapToGlobal(TQPoint(int(painter->worldMatrix().dx()),int(painter->worldMatrix().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->tqworldMatrix().dx()),int(painter->tqworldMatrix().dy())));
+ TQPoint pnt = listView()->viewportToContents(TQPoint(int(painter->worldMatrix().dx()),int(painter->worldMatrix().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
}
- tqrepaint();
+ repaint();
}
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->tqworldMatrix().dx()),rct.y() + int(p->tqworldMatrix().dy())));
+ TQPoint pnt = viewport()->mapToGlobal(TQPoint(rct.x() + int(p->worldMatrix().dx()),rct.y() + int(p->worldMatrix().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->tqworldMatrix().dx()),rct.y() + int(p->tqworldMatrix().dy())));
+ TQPoint pnt = viewportToContents(TQPoint(rct.x() + int(p->worldMatrix().dx()),rct.y() + int(p->worldMatrix().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->tqminimumSize().width() + 4;
+ int iMin = m_pListView->minimumSize().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->tqitemRect(it),szText);
+ m_pToolTip->tip(m_pListView->itemRect(it),szText);
}
}
}
@@ -1405,7 +1405,7 @@ KviTaskBarItem * KviTreeTaskBar::nextItem()
{
m_pCurrentItem = (KviTreeTaskBarItem *)m_pCurrentItem->firstChild();
} else {
- // this item has no tqchildren: try the next sibling
+ // this item has no children: 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 9e9ebe2..6c5794c 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 tqalignment);
+ virtual void paintCell(TQPainter *p,const TQColorGroup &cg,int column,int width,int alignment);
#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 1f57db0..ef54460 100644
--- a/src/kvirc/ui/kvi_themedlabel.cpp
+++ b/src/kvirc/ui/kvi_themedlabel.cpp
@@ -44,9 +44,9 @@ KviThemedLabel::~KviThemedLabel()
{
}
-/*TQSize KviThemedLabel::tqsizeHint()
+/*TQSize KviThemedLabel::sizeHint()
{
- TQSize size=TQFrame::tqsizeHint();
+ TQSize size=TQFrame::sizeHint();
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 a307149..f704310 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 tqsizeHint();
+// TQSize sizeHint();
signals:
void doubleClicked();
};
diff --git a/src/kvirc/ui/kvi_toolwindows_container.cpp b/src/kvirc/ui/kvi_toolwindows_container.cpp
index 65c6dec..470957f 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);
-// tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Ignored));
+// setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Ignored));
}
KviWindowToolPageButton::~KviWindowToolPageButton()
@@ -106,9 +106,9 @@ KviWindowToolPageButton::~KviWindowToolPageButton()
{
TQPixmap pixmap( height(), width() );
if(isOn())
- pixmap.fill(tqcolorGroup().mid());
+ pixmap.fill(colorGroup().mid());
else
- pixmap.fill(tqcolorGroup().button());
+ pixmap.fill(colorGroup().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( tqcolorGroup().mid() );
+ //painter.setPen( colorGroup().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( tqcolorGroup().buttonText() );
+ painter.setPen( colorGroup().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 fe9011e..b9905ca 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()->tqcolorGroup(),height(listBox()));
+ KviTopicWidget::paintColoredText(p,text(),listBox()->colorGroup(),height(listBox()));
}
@@ -153,7 +153,7 @@ TQString convertToHtml(const TQString &text)
while(idx < text.length())
{
- unsigned short c = text[(int)idx].tqunicode();
+ unsigned short c = text[(int)idx].unicode();
unsigned int start = idx;
@@ -168,7 +168,7 @@ TQString convertToHtml(const TQString &text)
{
idx++;
if(idx >= text.length())break;
- else c = text[(int)idx].tqunicode();
+ else c = text[(int)idx].unicode();
}
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].tqunicode() > 32))idx++;
+ while((idx < text.length()) && (text[(int)idx].unicode() > 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].tqunicode();
+ unsigned short c = text[(int)idx].unicode();
unsigned int start = idx;
@@ -305,7 +305,7 @@ void KviTopicWidget::paintColoredText(TQPainter *p, TQString text,const TQColorG
)
{
idx++;
- c = text[(int)idx].tqunicode();
+ c = text[(int)idx].unicode();
}
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].tqunicode() > 32))idx++;
+ while((idx < text.length()) && (text[(int)idx].unicode() > 32))idx++;
KviStr lookupString = text.mid(icoStart,idx - icoStart);
@@ -438,11 +438,11 @@ void KviTopicWidget::drawContents(TQPainter *p)
#ifdef COMPILE_PSEUDO_TRANSPARENCY
}
#endif
- 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);
+ 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);
}
void KviTopicWidget::setTopic(const TQString & topic)
@@ -541,7 +541,7 @@ void KviTopicWidget::updateToolTip()
KviTalToolTip::add(this,txt);
}
-TQSize KviTopicWidget::tqsizeHint() const
+TQSize KviTopicWidget::sizeHint() const
{
TQFontMetrics fm(font());
int hght = fm.lineSpacing() + (frameWidth() << 1) + 4;
@@ -629,7 +629,7 @@ void KviTopicWidget::contextPopupAboutToShow()
void KviTopicWidget::copy()
{
- TQClipboard * c = TQApplication::tqclipboard();
+ TQClipboard * c = TQApplication::clipboard();
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 5a59ced..89e4901 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 tqsizeHint() const;
+ virtual TQSize sizeHint() 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 d504915..a66156c 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
- tqrepaint();
+ repaint();
}
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).tqunicode();
+ return (char)m_pKviWindow->connection()->serverInfo()->modePrefixChar(e->m_iFlags).unicode();
}
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->tqsizeHint().height();
+ hght = m_pUsersLabel->sizeHint().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").tqarg(dt.toString());
+ buffer += __tr2qs("Joined on %1").arg(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").tqarg(hors).tqarg(mins).tqarg(secs);
+ buffer += __tr2qs("Quiet for %1h %2m %3s").arg(hors).arg(mins).arg(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(tqcolorGroup().shadow());
+ p.setPen(colorGroup().shadow());
p.drawLine(0,bottom - 1,wdth,bottom - 1);
- p.setPen(tqcolorGroup().light());
+ p.setPen(colorGroup().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(tqcolorGroup().dark());
+ //p.setPen(colorGroup().dark());
//p.drawLine(0,0,wdth,0);
//p.drawLine(0,0,0,height());
- //p.setPen(tqcolorGroup().light());
+ //p.setPen(colorGroup().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->tqsizeHint().width();
+ int iScr = m_pScrollBar->sizeHint().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 6c959e7..435c915 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 = tqfocusWidget();
+ TQWidget * w = focusWidget();
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()->tqmetaObject()->indexOfProperty("KviProperty_ChildFocusOwner") == -1)
+ if(w->parent()->metaObject()->indexOfProperty("KviProperty_ChildFocusOwner") == -1)
#else
- if(w->parent()->tqmetaObject()->findProperty("KviProperty_ChildFocusOwner") == -1)
+ if(w->parent()->metaObject()->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::tqcurrentDate());
+ TQDate dt(TQDate::currentDate());
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 = tqchildren();
+ TQList list = children();
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 tqchildren's focusInEvent.
+ // triggers our filter for the children'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->tqchildren();
+ TQList |