Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9577f4de07)
r14.1.x
Michele Calgaro 1 year ago
parent 776d38202f
commit 945085d2d2
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -91,9 +91,9 @@
// 006 ACK Acknowledge (Not so good, but can be used as last resource)
// 007 BEL Bell ( Recognized as bell by terminals and IRCII ) (Used also by some IRC servers)
// 008 BS Backspace (Should not be assigned: terminal control)
// 009 HT Qt::Horizontal tabulation (Should not be assigned: terminal control)
// 009 HT Horizontal tabulation (Should not be assigned: terminal control)
// 010 LF Line feed (Should not be assigned: terminal control)
// 011 VT Qt::Vertical tabulation (Should not be assigned: terminal control)
// 011 VT Vertical tabulation (Should not be assigned: terminal control)
// 012 FF Form feed (Should not be assigned: terminal control)
// 013 CR Carriage return (Should not be assigned: terminal control)
// 014 SO Shift out (Should not be assigned: terminal control)

@ -32,7 +32,7 @@ class KVILIB_API KviTalGrid : public TQGrid
TQ_OBJECT
public:
KviTalGrid(int n,Qt::Orientation orient,TQWidget * pParent = 0)
KviTalGrid(int n,TQt::Orientation orient,TQWidget * pParent = 0)
: TQGrid(n,orient,pParent) {};
~KviTalGrid() {};
};

@ -36,9 +36,9 @@ public:
: TQGroupBox(parent) {};
KviTalGroupBox(const TQString & title,TQWidget * parent = 0)
: TQGroupBox(title,parent) {};
KviTalGroupBox(int strips,Qt::Orientation orientation,TQWidget * parent = 0)
KviTalGroupBox(int strips,TQt::Orientation orientation,TQWidget * parent = 0)
: TQGroupBox(strips,orientation,parent) {};
KviTalGroupBox(int strips,Qt::Orientation orientation,const TQString & title,TQWidget * parent = 0)
KviTalGroupBox(int strips,TQt::Orientation orientation,const TQString & title,TQWidget * parent = 0)
: TQGroupBox(strips,orientation,title,parent) {};
~KviTalGroupBox() {};
};

@ -116,7 +116,7 @@ KviChannel::KviChannel(KviFrame * lpFrm,KviConsole * lpConsole,const char * name
// Button box
m_pButtonBox = new KviTalHBox(this);
m_pTopSplitter = new TQSplitter(Qt::Horizontal,m_pButtonBox);
m_pTopSplitter = new TQSplitter(TQt::Horizontal,m_pButtonBox);
m_pButtonBox->setStretchFactor(m_pTopSplitter,1);
@ -134,11 +134,11 @@ KviChannel::KviChannel(KviFrame * lpFrm,KviConsole * lpConsole,const char * name
createTextEncodingButton(m_pButtonContainer);
// Central splitter
m_pSplitter = new TQSplitter(Qt::Horizontal,this);
m_pSplitter = new TQSplitter(TQt::Horizontal,this);
m_pSplitter->setName(name);
m_pSplitter->setOpaqueResize(false);
// Spitted vertially on the left
m_pVertSplitter = new TQSplitter(Qt::Vertical,m_pSplitter);
m_pVertSplitter = new TQSplitter(TQt::Vertical,m_pSplitter);
m_pVertSplitter->setOpaqueResize(false);
// With the IRC view over
m_pIrcView = new KviIrcView(m_pVertSplitter,lpFrm,this);

@ -95,8 +95,8 @@ void KviColorWindow::mousePressEvent(TQMouseEvent *e)
int ascii=key+48;
str.setNum(key);
if (e->x()>36 && e->y()>18)
if(m_pOwner) g_pApp->sendEvent(m_pOwner,new TQKeyEvent(TQEvent::KeyPress,TQt::Key_1,49,Qt::NoButton,"1"));
if(m_pOwner) g_pApp->sendEvent(m_pOwner,new TQKeyEvent(TQEvent::KeyPress,key,ascii,Qt::NoButton,str));
if(m_pOwner) g_pApp->sendEvent(m_pOwner,new TQKeyEvent(TQEvent::KeyPress,TQt::Key_1,49,TQt::NoButton,"1"));
if(m_pOwner) g_pApp->sendEvent(m_pOwner,new TQKeyEvent(TQEvent::KeyPress,key,ascii,TQt::NoButton,str));
if(m_iTimerId != -1)
killTimer(m_iTimerId);
hide();

@ -137,7 +137,7 @@ KviConsole::KviConsole(KviFrame * lpFrm,int iFlags)
connect(g_pApp,TQT_SIGNAL(recentUrlsChanged()),this,TQT_SLOT(recentUrlsChanged()));
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"splitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"splitter");
m_pIrcView = new KviIrcView(m_pSplitter,lpFrm,this);
connect(m_pIrcView,TQT_SIGNAL(rightClicked()),this,TQT_SLOT(textViewRightClicked()));

@ -57,7 +57,7 @@ KviCustomToolBarSeparator::KviCustomToolBarSeparator(KviCustomToolBar *pParent,c
TQSize KviCustomToolBarSeparator::sizeHint() const
{
int extent = style().pixelMetric(TQStyle::PM_DockWindowSeparatorExtent,this);
if(m_pToolBar->orientation() == Qt::Horizontal)return TQSize(extent,0);
if(m_pToolBar->orientation() == TQt::Horizontal)return TQSize(extent,0);
else return TQSize(0,extent);
}
@ -65,7 +65,7 @@ void KviCustomToolBarSeparator::paintEvent(TQPaintEvent *)
{
TQPainter p(this);
TQStyle::SFlags flags = TQStyle::Style_Default;
if(m_pToolBar->orientation() == Qt::Horizontal)flags |= TQStyle::Style_Horizontal;
if(m_pToolBar->orientation() == TQt::Horizontal)flags |= TQStyle::Style_Horizontal;
style().tqdrawPrimitive(TQStyle::PE_DockWindowSeparator,&p,rect(),colorGroup(),flags);
}
@ -337,7 +337,7 @@ int KviCustomToolBar::dropIndexAt(const TQPoint &pnt,TQWidget * exclude,int * ex
if(!pMinDistW)
{
// ops.. not found at all (empty toolbar or really far from any button)
if(orientation() == Qt::Horizontal)
if(orientation() == TQt::Horizontal)
{
if(pnt.x() < (width() / 2))iMinDistIdx = 0; // insert at position 0
else iMinDistIdx = idx;
@ -353,7 +353,7 @@ int KviCustomToolBar::dropIndexAt(const TQPoint &pnt,TQWidget * exclude,int * ex
{
// would not put it over exclude idx
// check if we have to stay on right or left of the widget found
if(orientation() == Qt::Horizontal)
if(orientation() == TQt::Horizontal)
{
if(pnt.x() > (pMinDistW->x() + (pMinDistW->width() / 2)))
iMinDistIdx++; // need to put it on the right
@ -369,7 +369,7 @@ int KviCustomToolBar::dropIndexAt(const TQPoint &pnt,TQWidget * exclude,int * ex
// got the exclude idx by the way and wouldn't put exactly over it
// check if exclude idx is "before" the current possible insert position
// if it is , then lower down the index by one
if(orientation() == Qt::Horizontal)
if(orientation() == TQt::Horizontal)
{
if(pnt.x() > pntExclude.x())
iMinDistIdx--; // removing exclude will move everything one step back
@ -427,7 +427,7 @@ bool KviCustomToolBar::eventFilter(TQObject *o,TQEvent *e)
{
KviActionManager::instance()->setCurrentToolBar(this);
TQMouseEvent * ev = (TQMouseEvent *)e;
if(ev->button() & Qt::LeftButton)
if(ev->button() & TQt::LeftButton)
{
if(o->isWidgetType())
{

@ -47,7 +47,7 @@ KviDebugWindow::KviDebugWindow()
: KviWindow(KVI_WINDOW_TYPE_DEBUG,g_pFrame,__tr2qs("Debug Messages"),0)
{
m_pInstance = this;
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"main_splitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"main_splitter");
m_pIrcView = new KviIrcView(m_pSplitter,g_pFrame,this);
m_pInput = new KviInput(this,0);
updateCaption();

@ -107,7 +107,7 @@ KviFrame::KviFrame()
m_pDockExtension = 0;
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"main_splitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"main_splitter");
// m_pSplitter->setFrameShape(TQFrame::NoFrame);
setCentralWidget(m_pSplitter);

@ -719,7 +719,7 @@ void KviInputEditor::runUpToTheFirstVisibleChar()
void KviInputEditor::mousePressEvent(TQMouseEvent *e)
{
if(e->button() & Qt::LeftButton)
if(e->button() & TQt::LeftButton)
{
m_iCursorPosition = charIndexFromXPosition(e->pos().x());
//move the cursor to
@ -732,7 +732,7 @@ void KviInputEditor::mousePressEvent(TQMouseEvent *e)
killDragTimer();
m_iDragTimer = startTimer(KVI_INPUT_DRAG_TIMEOUT);
} else if(e->button() & Qt::RightButton)
} else if(e->button() & TQt::RightButton)
{
int type = g_pActiveWindow->type();

@ -113,7 +113,7 @@ toolbar.define(default)
void KviToolBarGraphicalApplet::mouseMoveEvent(TQMouseEvent * e)
{
if(e->state() & Qt::LeftButton)
if(e->state() & TQt::LeftButton)
{
if(m_bResizeMode)
{
@ -134,7 +134,7 @@ void KviToolBarGraphicalApplet::mouseMoveEvent(TQMouseEvent * e)
void KviToolBarGraphicalApplet::mousePressEvent(TQMouseEvent * e)
{
if(e->button() & Qt::LeftButton)
if(e->button() & TQt::LeftButton)
{
m_bResizeMode = (e->pos().x() > (width() - 4));
}

@ -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);

@ -332,7 +332,7 @@ TQCursor KviMdiChild::getResizeCursor(int resizeCorner)
void KviMdiChild::mouseMoveEvent(TQMouseEvent *e)
{
if(e->state() & Qt::LeftButton)
if(e->state() & TQt::LeftButton)
{
if(m_iResizeCorner && (m_state != Maximized))resizeWindowOpaque(m_iResizeCorner);
} else {

@ -288,7 +288,7 @@ TQPoint KviMdiManager::getCascadePoint(int indexOfWindow)
void KviMdiManager::mousePressEvent(TQMouseEvent *e)
{
//Popup the window menu
if(e->button() & Qt::RightButton)m_pWindowPopup->popup(mapToGlobal(e->pos()));
if(e->button() & TQt::RightButton)m_pWindowPopup->popup(mapToGlobal(e->pos()));
}
void KviMdiManager::childMoved(KviMdiChild *)

@ -79,13 +79,13 @@ KviQuery::KviQuery(KviFrame * lpFrm,KviConsole * lpConsole,const TQString &nick)
// The button box on the right
//KviTalHBox * box = new KviTalHBox(m_pTopSplitter,"button_box");
if(KVI_OPTION_BOOL(KviOption_boolShowExtendedInfoInQueryLabel))
m_pButtonGrid= (TQFrame*) new KviTalGrid(2,Qt::Horizontal,m_pButtonBox);
m_pButtonGrid= (TQFrame*) new KviTalGrid(2,TQt::Horizontal,m_pButtonBox);
else
m_pButtonGrid= (TQFrame*) new KviTalGrid(4,Qt::Horizontal,m_pButtonBox);
m_pButtonGrid= (TQFrame*) new KviTalGrid(4,TQt::Horizontal,m_pButtonBox);
createTextEncodingButton(m_pButtonGrid);
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"main_splitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"main_splitter");
m_pIrcView = new KviIrcView(m_pSplitter,lpFrm,this);
connect(m_pIrcView,TQT_SIGNAL(rightClicked()),this,TQT_SLOT(textViewRightClicked()));
//m_pEditorsContainer= new KviToolWindowsContainer(m_pSplitter);

@ -465,12 +465,12 @@ void KviStatusBar::paintEvent(TQPaintEvent * e)
void KviStatusBar::mousePressEvent(TQMouseEvent * e)
{
m_pClickedApplet = 0;
if(e->button() & Qt::RightButton)
if(e->button() & TQt::RightButton)
{
contextPopup()->popup(TQCursor::pos());
return;
}
if((e->button() & Qt::LeftButton) && (e->state() & (TQt::ShiftButton | TQt::ControlButton)))
if((e->button() & TQt::LeftButton) && (e->state() & (TQt::ShiftButton | TQt::ControlButton)))
{
// move!
m_pClickedApplet = appletAt(mapToGlobal(e->pos()));
@ -516,7 +516,7 @@ void KviStatusBar::mouseMoveEvent(TQMouseEvent * e)
void KviStatusBar::mouseReleaseEvent(TQMouseEvent * e)
{
if(e->button() & Qt::LeftButton)
if(e->button() & TQt::LeftButton)
{
if(m_pClickedApplet && appletExists(m_pClickedApplet))
{

@ -222,7 +222,7 @@ void KviStatusBarAwayIndicator::selfRegister(KviStatusBar * pBar)
// FIXME: Away on all context should know where user is not away/back before toggling status
void KviStatusBarAwayIndicator::mouseDoubleClickEvent(TQMouseEvent * e)
{
if(!(e->button() & Qt::LeftButton))return;
if(!(e->button() & TQt::LeftButton))return;
KviIrcConnection * c = statusBar()->frame()->activeConnection();
if(!c)return;
if(c->state() != KviIrcConnection::Connected)return;
@ -286,7 +286,7 @@ KviStatusBarLagIndicator::~KviStatusBarLagIndicator()
void KviStatusBarLagIndicator::mouseDoubleClickEvent(TQMouseEvent *e)
{
if(!(e->button() & Qt::LeftButton))return;
if(!(e->button() & TQt::LeftButton))return;
KviIrcConnection * c = statusBar()->frame()->activeConnection();
if(!c)return;

@ -207,7 +207,7 @@ void KviTaskBarButton::tipRequest(KviDynamicToolTip *,const TQPoint &pnt)
void KviTaskBarButton::mousePressEvent(TQMouseEvent *e)
{
if(e->button() & Qt::LeftButton)
if(e->button() & TQt::LeftButton)
{
if(e->state() & TQt::ShiftButton)
{
@ -457,7 +457,7 @@ KviClassicTaskBar::KviClassicTaskBar()
setMinimumHeight(m_iButtonHeight+5);
setResizeEnabled( true );
connect(this,TQT_SIGNAL(orientationChanged(Qt::Orientation)),this,TQT_SLOT(orientationChangedSlot(Qt::Orientation)));
connect(this,TQT_SIGNAL(orientationChanged(TQt::Orientation)),this,TQT_SLOT(orientationChangedSlot(TQt::Orientation)));
}
KviClassicTaskBar::~KviClassicTaskBar()
@ -466,9 +466,9 @@ KviClassicTaskBar::~KviClassicTaskBar()
m_pButtonList = 0;
}
void KviClassicTaskBar::orientationChangedSlot(Qt::Orientation o)
void KviClassicTaskBar::orientationChangedSlot(TQt::Orientation o)
{
if (orientation() == Qt::Horizontal) m_pBase->setMinimumHeight(m_iButtonHeight);
if (orientation() == TQt::Horizontal) m_pBase->setMinimumHeight(m_iButtonHeight);
doLayout();
}
@ -612,7 +612,7 @@ void KviClassicTaskBar::doLayout()
}
if ((orientation() == Qt::Horizontal) &&
if ((orientation() == TQt::Horizontal) &&
(((unsigned int)rows) > m_pBase->height() / m_iButtonHeight ))
{
rows = m_pBase->height() / m_iButtonHeight;
@ -643,7 +643,7 @@ void KviClassicTaskBar::doLayout()
}
if( KVI_OPTION_BOOL(KviOption_boolClassicTaskBarSetMaximumButtonWidth) && (theWidth > KVI_OPTION_UINT(KviOption_uintClassicTaskBarMaximumButtonWidth)) &&
(orientation() == Qt::Horizontal)
(orientation() == TQt::Horizontal)
)
theWidth = KVI_OPTION_UINT(KviOption_uintClassicTaskBarMaximumButtonWidth);
@ -1068,10 +1068,10 @@ void KviTreeTaskBarListView::contentsMousePressEvent(TQMouseEvent *e)
KviTalListViewItem * it = (KviTalListViewItem *)itemAt(contentsToViewport(e->pos()));
if(it)
{
if(e->button() & Qt::LeftButton)emit leftMousePress(it);
else if(e->button() & Qt::RightButton)emit rightMousePress(it);
if(e->button() & TQt::LeftButton)emit leftMousePress(it);
else if(e->button() & TQt::RightButton)emit rightMousePress(it);
} else {
if(e->button() & Qt::RightButton)
if(e->button() & TQt::RightButton)
{
KviTalPopupMenu* pPopup=new KviTalPopupMenu();
pPopup->insertItem(__tr2qs("Sort"),this,TQT_SLOT(sort()));
@ -1222,7 +1222,7 @@ bool KviTreeTaskBar::eventFilter(TQObject * o,TQEvent *e)
KviWindow * wnd = it->kviWindow();
if(wnd)
{
if(ev->button() & Qt::LeftButton)
if(ev->button() & TQt::LeftButton)
{
if(ev->state() & TQt::ShiftButton)
{

@ -170,7 +170,7 @@ public:
virtual void updateActivityMeter();
virtual void applyOptions();
protected slots:
void orientationChangedSlot(Qt::Orientation o);
void orientationChangedSlot(TQt::Orientation o);
};
class KviTreeTaskBar;

@ -59,7 +59,7 @@ KviToolBar::~KviToolBar()
void KviToolBar::mousePressEvent(TQMouseEvent *e)
{
if(!(e->button() & Qt::RightButton))
if(!(e->button() & TQt::RightButton))
{
KviTalToolBar::mousePressEvent(e);
return;

@ -595,7 +595,7 @@ void KviTopicWidget::mouseDoubleClickEvent(TQMouseEvent *)
void KviTopicWidget::mousePressEvent(TQMouseEvent * e)
{
if(!(e->button() & Qt::RightButton))return;
if(!(e->button() & TQt::RightButton))return;
if(!m_pContextPopup)
{
m_pContextPopup = new KviTalPopupMenu(this);

@ -1310,7 +1310,7 @@ KviUserListViewArea::KviUserListViewArea(KviUserListView * par)
{
m_pListView = par;
setBackgroundMode(TQWidget::NoBackground);
m_pScrollBar = new TQScrollBar(Qt::Vertical,this,"scrollbar");
m_pScrollBar = new TQScrollBar(TQt::Vertical,this,"scrollbar");
m_pScrollBar->setRange(0,0);
m_pScrollBar->setValue(0);
connect(m_pScrollBar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(scrollBarMoved(int)));
@ -1715,7 +1715,7 @@ void KviUserListViewArea::resizeEvent(TQResizeEvent *)
void KviUserListViewArea::mousePressEvent(TQMouseEvent *e)
{
setFocus();
if(e->button() & Qt::LeftButton)
if(e->button() & TQt::LeftButton)
{
KviUserListEntry * entry = m_pListView->itemAt(e->pos());
if(entry)
@ -1756,7 +1756,7 @@ void KviUserListViewArea::mousePressEvent(TQMouseEvent *e)
}
}
m_pLastEntryUnderMouse = entry;
} else if(e->button() & Qt::RightButton)
} else if(e->button() & TQt::RightButton)
{
KviUserListEntry * entry = m_pListView->itemAt(e->pos());
if(entry)
@ -1830,7 +1830,7 @@ void KviUserListViewArea::mouseDoubleClickEvent(TQMouseEvent *e)
void KviUserListViewArea::mouseMoveEvent(TQMouseEvent *e)
{
if(e->state() & Qt::LeftButton)
if(e->state() & TQt::LeftButton)
{
KviUserListEntry * entry = m_pListView->itemAt(e->pos());
if(entry && (entry != m_pLastEntryUnderMouse))

@ -650,7 +650,7 @@ KviActionEditor::KviActionEditor(TQWidget * par)
TQGridLayout * l = new TQGridLayout(this,1,1,2,2);
m_pSplitter = new TQSplitter(Qt::Horizontal,this);
m_pSplitter = new TQSplitter(TQt::Horizontal,this);
l->addWidget(m_pSplitter,0,0);

@ -210,7 +210,7 @@ KviAliasEditor::KviAliasEditor(TQWidget * par)
TQGridLayout * l = new TQGridLayout(this,1,1,2,2);
m_pSplitter = new TQSplitter(Qt::Horizontal,this);
m_pSplitter = new TQSplitter(TQt::Horizontal,this);
l->addWidget(m_pSplitter,0,0);

@ -70,7 +70,7 @@ KviChannelsJoinWindow::KviChannelsJoinWindow(TQWidget * par, const char * name)
connect(m_pListView,TQT_SIGNAL(doubleClicked(KviTalListViewItem *)),this,TQT_SLOT(itemDoubleClicked(KviTalListViewItem *)));
m_pGroupBox = new KviTalGroupBox(2,Qt::Horizontal,__tr2qs("Channel" ),this);
m_pGroupBox = new KviTalGroupBox(2,TQt::Horizontal,__tr2qs("Channel" ),this);
TQString szMsg = __tr2qs("Name");
szMsg.append(":");
TQLabel * l = new TQLabel(szMsg,m_pGroupBox);

@ -58,7 +58,7 @@ extern KviDccBroker * g_pDccBroker;
KviDccCanvas::KviDccCanvas(KviFrame *pFrm,KviDccDescriptor * dcc,const char * name)
: KviDccWindow(KVI_WINDOW_TYPE_DCCCANVAS,pFrm,name,dcc)
{
m_pSplitter = new TQSplitter(Qt::Vertical,this,"splitter");
m_pSplitter = new TQSplitter(TQt::Vertical,this,"splitter");
m_pCanvas = new KviCanvasWidget(m_pSplitter);

@ -1058,7 +1058,7 @@ void KviCanvasView::contentsMouseMoveEvent(TQMouseEvent *e)
{
// TQPoint p = inverseWorldMatrix().map(e->pos());
TQPoint p = e->pos();
if(e->state() & Qt::LeftButton)
if(e->state() & TQt::LeftButton)
{
if((m_dragMode != None) && (m_pSelectedItem))
{
@ -1128,7 +1128,7 @@ void KviCanvasView::contentsMouseReleaseEvent(TQMouseEvent *e)
void KviCanvasView::contentsMousePressEvent(TQMouseEvent *e)
{
if(e->button() & Qt::LeftButton)
if(e->button() & TQt::LeftButton)
{
// TQPoint p = inverseWorldMatrix().map(e->pos());
TQPoint p = e->pos();
@ -1497,7 +1497,7 @@ KviCanvasWidget::KviCanvasWidget(TQWidget * par)
//#warning "Make this size as parameter of Dcc ?"
m_pCanvas->resize(648,480);
m_pMenuBar = new TQMenuBar(this);
m_pSplitter = new TQSplitter(Qt::Horizontal,this);
m_pSplitter = new TQSplitter(TQt::Horizontal,this);
m_pCanvasView = new KviCanvasView(m_pCanvas,this,m_pSplitter);
m_pStatusLabel = new TQLabel(this);
m_pPropertiesWidget = new KviCanvasItemPropertiesWidget(m_pSplitter);

@ -89,7 +89,7 @@ extern KviDccBroker * g_pDccBroker;
KviDccChat::KviDccChat(KviFrame *pFrm,KviDccDescriptor * dcc,const char * name)
: KviDccWindow(KVI_WINDOW_TYPE_DCCCHAT,pFrm,name,dcc)
{
m_pTopSplitter = new TQSplitter(Qt::Horizontal,this,"top_splitter");
m_pTopSplitter = new TQSplitter(TQt::Horizontal,this,"top_splitter");
KviThemedLabel * dummy;
dummy = new KviThemedLabel(m_pTopSplitter,"dummy_label");
KviTalVBox * box = new KviTalVBox(m_pTopSplitter);
@ -98,7 +98,7 @@ KviDccChat::KviDccChat(KviFrame *pFrm,KviDccDescriptor * dcc,const char * name)
createCryptControllerButton(box);
#endif
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"splitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"splitter");
m_pIrcView = new KviIrcView(m_pSplitter,pFrm,this);
connect(m_pIrcView,TQT_SIGNAL(rightClicked()),this,TQT_SLOT(textViewRightClicked()));
m_pInput = new KviInput(this);

@ -652,7 +652,7 @@ KviDccVoice::KviDccVoice(KviFrame *pFrm,KviDccDescriptor * dcc,const char * name
m_pDescriptor = dcc;
m_pSlaveThread = 0;
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"splitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"splitter");
m_pIrcView = new KviIrcView(m_pSplitter,pFrm,this);
m_pHBox = new KviTalHBox(this);
@ -680,7 +680,7 @@ KviDccVoice::KviDccVoice(KviFrame *pFrm,KviDccDescriptor * dcc,const char * name
vbox2->setSpacing(1);
//#warning "The volume slider should be enabled only when receiving data"
m_pVolumeSlider = new TQSlider(-100, 0, 10, 0, Qt::Vertical, m_pHBox, "dcc_voice_volume_slider");
m_pVolumeSlider = new TQSlider(-100, 0, 10, 0, TQt::Vertical, m_pHBox, "dcc_voice_volume_slider");
m_pVolumeSlider->setValue(getMixerVolume());
/* Update the tooltip */
setMixerVolume(m_pVolumeSlider->value());

@ -371,8 +371,8 @@ void KviDockWidget::tipRequest(KviDynamicToolTip *tip,const TQPoint &pnt)
void KviDockWidget::mousePressEvent(TQMouseEvent *e)
{
if(e->button() & Qt::LeftButton)toggleParentFrame();
else if(e->button() & Qt::RightButton)
if(e->button() & TQt::LeftButton)toggleParentFrame();
else if(e->button() & TQt::RightButton)
m_pContextPopup->popup(mapToGlobal(e->pos()));
}

@ -167,7 +167,7 @@ KviScriptEditorWidgetColorOptions::KviScriptEditorWidgetColorOptions(TQWidget *
KviFontSelector * f = new KviFontSelector(this,__tr2qs_ctx("Font:","editor"),&g_fntNormal,true);
g->addMultiCellWidget(f,0,0,0,2);
m_pSelectorInterfaceList->append(f);
KviTalGroupBox * gbox = new KviTalGroupBox(1,Qt::Horizontal,__tr2qs("Colors" ),this);
KviTalGroupBox * gbox = new KviTalGroupBox(1,TQt::Horizontal,__tr2qs("Colors" ),this);
g->addMultiCellWidget(gbox,1,1,0,2);
KviColorSelector * s = addColorSelector(gbox,__tr2qs_ctx("Background:","editor"),&g_clrBackground,true);
s = addColorSelector(gbox,__tr2qs_ctx("Normal text:","editor"),&g_clrNormalText,true);
@ -380,7 +380,7 @@ void KviScriptEditorWidget::keyPressEvent(TQKeyEvent * e)
void KviScriptEditorWidget::contentsMousePressEvent(TQMouseEvent *e)
{
completelistbox->hide();
if (e->button() == Qt::RightButton)
if (e->button() == TQt::RightButton)
{
// bool bIsFirstWordInLine;
TQString buffer;

@ -70,7 +70,7 @@ KviEventEditor::KviEventEditor(TQWidget * par)
{
TQGridLayout * l = new TQGridLayout(this,1,1,2,2);
TQSplitter * spl = new TQSplitter(Qt::Horizontal,this);
TQSplitter * spl = new TQSplitter(TQt::Horizontal,this);
spl->setOpaqueResize(false);
l->addWidget(spl,0,0);

@ -151,8 +151,8 @@ KviFileTransferWindow::KviFileTransferWindow(KviModuleExtensionDescriptor * d,Kv
m_pInput = new KviInput(this,0);
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"splitter");
m_pVertSplitter = new TQSplitter(Qt::Vertical,m_pSplitter,"vsplitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"splitter");
m_pVertSplitter = new TQSplitter(TQt::Vertical,m_pSplitter,"vsplitter");
m_pListView = new KviTalListView(m_pVertSplitter);
//m_pListView->header()->hide();

@ -72,7 +72,7 @@ KviHelpWindow::KviHelpWindow(KviFrame * lpFrm,const char * name)
}
g_pHelpWindowList->append(this);
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"main_splitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"main_splitter");
m_pHelpWidget = new KviHelpWidget(m_pSplitter,lpFrm);
m_pToolBar=new KviTalVBox(m_pSplitter);

@ -45,7 +45,7 @@ KviLinksWindow::KviLinksWindow(KviFrame * lpFrm,KviConsole * lpConsole)
{
g_pLinksWindowList->append(this);
m_pTopSplitter = new TQSplitter(Qt::Horizontal,this,"top_splitter");
m_pTopSplitter = new TQSplitter(TQt::Horizontal,this,"top_splitter");
// The button box on the left
KviTalHBox * box = new KviTalHBox(m_pTopSplitter);
@ -63,8 +63,8 @@ KviLinksWindow::KviLinksWindow(KviFrame * lpFrm,KviConsole * lpConsole)
connect(lpConsole->context(),TQT_SIGNAL(stateChanged()),
this,TQT_SLOT(connectionStateChange()));
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"splitter");
m_pVertSplitter = new TQSplitter(Qt::Vertical,m_pSplitter,"vsplitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"splitter");
m_pVertSplitter = new TQSplitter(TQt::Vertical,m_pSplitter,"vsplitter");
m_pListView = new KviTalListView(m_pVertSplitter);
m_pListView->addColumn(__tr2qs("Link"));

@ -172,9 +172,9 @@ KviListWindow::KviListWindow(KviFrame * lpFrm,KviConsole * lpConsole)
m_pItemList = new KviPointerList<KviChannelListViewItemData>;
m_pItemList->setAutoDelete(false);
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"splitter");
m_pTopSplitter = new TQSplitter(Qt::Horizontal,this,"top_splitter");
m_pVertSplitter = new TQSplitter(Qt::Vertical,m_pSplitter,"vsplitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"splitter");
m_pTopSplitter = new TQSplitter(TQt::Horizontal,this,"top_splitter");
m_pVertSplitter = new TQSplitter(TQt::Vertical,m_pSplitter,"vsplitter");
KviTalHBox * box = new KviTalHBox(m_pTopSplitter);
m_pOpenButton = new KviStyledToolButton(box);

@ -64,7 +64,7 @@ KviLogViewMDIWindow::KviLogViewMDIWindow(KviModuleExtensionDescriptor * d,KviFra
{
g_pLogViewWindow = this;
// m_pLogViewWidget = new KviLogViewWidget(this);
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"main_splitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"main_splitter");
m_pTabWidget = new TQTabWidget(m_pSplitter);
m_pIndexTab = new KviTalVBox(m_pTabWidget);

@ -768,11 +768,11 @@ void KviNotifierWindow::mousePressEvent(TQMouseEvent * e)
m_pntClick = e->pos();
if(e->button() == Qt::RightButton)
if(e->button() == TQt::RightButton)
{
contextPopup(mapToGlobal(e->pos()));
return;
} else if(e->button() == Qt::LeftButton) {
} else if(e->button() == TQt::LeftButton) {
m_bLeftButtonIsPressed = true;
}
@ -1104,7 +1104,7 @@ void KviNotifierWindow::redrawWindow()
inline void KviNotifierWindow::setCursor(int cur) {
if (m_cursor.shape() != cur) {
if(TQApplication::overrideCursor()) TQApplication::restoreOverrideCursor();
m_cursor.setShape((Qt::CursorShape)cur);
m_cursor.setShape((TQt::CursorShape)cur);
TQApplication::setOverrideCursor(m_cursor);
} else if (cur==-1)
if(TQApplication::overrideCursor()) TQApplication::restoreOverrideCursor();

@ -143,7 +143,7 @@ bool KviKvsObject_dockwindow::function_addWidget(KviKvsObjectFunctionCall *c)
bool KviKvsObject_dockwindow::function_orientation(KviKvsObjectFunctionCall * c)
{
if(!widget())return true; // hum ? dead ?
c->returnValue()->setString(_pDockWindow->orientation() == Qt::Horizontal ? TQString("horizontal") : TQString("vertical"));
c->returnValue()->setString(_pDockWindow->orientation() == TQt::Horizontal ? TQString("horizontal") : TQString("vertical"));
return true;
}
@ -155,7 +155,7 @@ bool KviKvsObject_dockwindow::function_setOrientation(KviKvsObjectFunctionCall *
KVSO_PARAMETERS_END(c)
if(!widget())return true; // hum ? dead ?
_pDockWindow->setOrientation(KviTQString::equalCI(szOrientation,"vertical") ? Qt::Vertical : Qt::Horizontal);
_pDockWindow->setOrientation(KviTQString::equalCI(szOrientation,"vertical") ? TQt::Vertical : TQt::Horizontal);
return true;
}

@ -94,10 +94,10 @@ const int align_cod[] = {
!fn: $setAlignment(<alignment:string>)
Set the alignment of the groupbox; Valid values are Left,Right,HCenter.
!fn: $setOrientation<orientation:string>
Sets the group box's orientation. Valid values are:Qt::Horizontal,Qt::Vertical.
Sets the group box's orientation. Valid values are Horizontal,Vertical.
!fn: $setColumnLayout(<columns:integer>,<orientation:string>)
Enables the automatic layout management. The children are arranged in n columns with the specified orientation.[br]
Valid values for <orientation> are:Qt::Horizontal,Qt::Vertical.
Valid values for <orientation> are Horizontal,Vertical.
@examples:
[example]
|-Start:[br]
@ -342,10 +342,10 @@ bool KviKvsObject_groupbox::functionSetOrientation(KviKvsObjectFunctionCall *c)
KVSO_PARAMETERS_END(c)
if(!widget())return true;
if(KviTQString::equalCI(szMode, "Horizontal"))
((KviTalGroupBox *)widget())->setOrientation(Qt::Horizontal);
((KviTalGroupBox *)widget())->setOrientation(TQt::Horizontal);
else
if(KviTQString::equalCI(szMode, "Vertical"))
((KviTalGroupBox *)widget())->setOrientation(Qt::Vertical);
((KviTalGroupBox *)widget())->setOrientation(TQt::Vertical);
else c->warning( __tr2qs("Unknown orientation: "));
return true;
}
@ -360,10 +360,10 @@ bool KviKvsObject_groupbox::functionSetColumnLayout(KviKvsObjectFunctionCall *c)
KVSO_PARAMETERS_END(c)
if(!widget())return true;
if(szMode=="Horizontal")
((KviTalGroupBox *)widget())->setColumnLayout(uCol,Qt::Horizontal);
((KviTalGroupBox *)widget())->setColumnLayout(uCol,TQt::Horizontal);
else
if(szMode=="Vertical")
((KviTalGroupBox *)widget())->setColumnLayout(uCol,Qt::Vertical);
((KviTalGroupBox *)widget())->setColumnLayout(uCol,TQt::Vertical);
else c->warning( __tr2qs("Unknown orientation: "));
return true;
}

@ -528,8 +528,8 @@ bool KviKvsObject_painter::functionsetBackGroundMode(KviKvsObjectFunctionCall *c
KVSO_PARAMETER("background mode",KVS_PT_STRING,0,szMode)
KVSO_PARAMETERS_END(c)
if(!m_pPainter)return true;
if(KviTQString::equalCI(szMode,"Transparent")) m_pPainter->setBackgroundMode(Qt::TransparentMode);
else if(KviTQString::equalCI(szMode,"Opaque")) m_pPainter->setBackgroundMode(Qt::OpaqueMode);
if(KviTQString::equalCI(szMode,"Transparent")) m_pPainter->setBackgroundMode(TQt::TransparentMode);
else if(KviTQString::equalCI(szMode,"Opaque")) m_pPainter->setBackgroundMode(TQt::OpaqueMode);
else c->warning( __tr2qs("Unknown orientation"));
return true;

@ -49,7 +49,7 @@
@functions:
!fn: $setOrientation(<orientation:string>)
Sets the slider's orientation.[br]
Qt::Orientation value can be "Horizontal" or "Vertical".
Orientation value can be "Horizontal" or "Vertical".
!fn: $setTracking(<bTracking:boolean>)
Sets whether slider tracking is enabled to enable.[br]
Value can be 1 or 0.
@ -265,9 +265,9 @@ bool KviKvsObject_slider::functionsetOrientation(KviKvsObjectFunctionCall *c)
KVSO_PARAMETERS_END(c)
if(!widget())return true;
if(KviTQString::equalCI(szOrientation,"Horizontal"))
((TQSlider *)widget())->setOrientation(Qt::Horizontal);
((TQSlider *)widget())->setOrientation(TQt::Horizontal);
else if(KviTQString::equalCI(szOrientation,"Vertical"))
((TQSlider *)widget())->setOrientation(Qt::Vertical);
((TQSlider *)widget())->setOrientation(TQt::Vertical);
else c->warning( __tr2qs("Unknown orientation '%Q'"),&szOrientation);
return true;
}

@ -31,7 +31,7 @@
#include "kvi_window.h"
#include "kvi_kvs_script.h"
#define TQT_LEFT_BUTTON Qt::LeftButton
#define TQT_LEFT_BUTTON TQt::LeftButton
//#warning "Functions to change colors for different states"
//#warning "$setUnderline(), $underline()"

@ -725,27 +725,27 @@ bool KviKvsObject_widget::eventFilter(TQObject *o,TQEvent *e)
}
break;
case TQEvent::MouseButtonPress:
if(((TQMouseEvent *)e)->button() & Qt::LeftButton)aparam = 0;
if(((TQMouseEvent *)e)->button() & TQt::LeftButton)aparam = 0;
else {
if(((TQMouseEvent *)e)->button() & Qt::RightButton)aparam = 1;
if(((TQMouseEvent *)e)->button() & TQt::RightButton)aparam = 1;
else aparam = 2;
}
if(!callFunction(this,"mousePressEvent",retv,new KviKvsVariantList(new KviKvsVariant((kvs_int_t)aparam),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().x()),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().y())
))) brokenhandler = true; // ignore results of a broken event handler
break;
case TQEvent::MouseButtonRelease:
if(((TQMouseEvent *)e)->button() & Qt::LeftButton)aparam = 0;
if(((TQMouseEvent *)e)->button() & TQt::LeftButton)aparam = 0;
else {
if(((TQMouseEvent *)e)->button() & Qt::RightButton)aparam = 1;
if(((TQMouseEvent *)e)->button() & TQt::RightButton)aparam = 1;
else aparam = 2;
}
if(!callFunction(this,"mouseReleaseEvent",retv,new KviKvsVariantList(new KviKvsVariant((kvs_int_t)aparam),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().x()),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().y())
))) brokenhandler = true; // ignore results of a broken event handler
break;
case TQEvent::MouseButtonDblClick:
if(( (TQMouseEvent *)e)->button() & Qt::LeftButton)aparam = 0;
if(( (TQMouseEvent *)e)->button() & TQt::LeftButton)aparam = 0;
else {
if(((TQMouseEvent *)e)->button() & Qt::RightButton)aparam = 1;
if(((TQMouseEvent *)e)->button() & TQt::RightButton)aparam = 1;
else aparam = 2;
}
if(!callFunction(this,"mouseDoubleClickEvent",retv,new KviKvsVariantList(new KviKvsVariant((kvs_int_t)aparam),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().x()),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().y())
@ -753,13 +753,13 @@ bool KviKvsObject_widget::eventFilter(TQObject *o,TQEvent *e)
break;
case TQEvent::MouseMove:
if( (((TQMouseEvent *)e)->state()) & Qt::LeftButton) aparam = 0;
if( (((TQMouseEvent *)e)->state()) & TQt::LeftButton) aparam = 0;
else
{
if(((TQMouseEvent *)e)->state() & Qt::RightButton)aparam = 1;
if(((TQMouseEvent *)e)->state() & TQt::RightButton)aparam = 1;
else
{
if(((TQMouseEvent *)e)->state() & Qt::MidButton)aparam = 2;
if(((TQMouseEvent *)e)->state() & TQt::MidButton)aparam = 2;
else aparam = -1;
}
}

@ -178,7 +178,7 @@ KviOptionsDialog::KviOptionsDialog(TQWidget * par,const TQString &szGroup)
setCaption(szCaption);
TQGridLayout * g1 = new TQGridLayout(this,2,5,8,8);
TQSplitter * spl = new TQSplitter(Qt::Horizontal,this);
TQSplitter * spl = new TQSplitter(TQt::Horizontal,this);
g1->addMultiCellWidget(spl,0,0,0,4);

@ -36,7 +36,7 @@ KviAntispamOptionsWidget::KviAntispamOptionsWidget(TQWidget * parent)
{
createLayout(3,1);
KviTalGroupBox *g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Enable Anti-spam For","options"));
KviTalGroupBox *g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Enable Anti-spam For","options"));
m_b1 = addBoolSelector(g,__tr2qs_ctx("Private messages","options"),KviOption_boolUseAntiSpamOnPrivmsg);
connect(m_b1,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(reenableStuff(bool)));
m_b2 = addBoolSelector(g,__tr2qs_ctx("Private notices","options"),KviOption_boolUseAntiSpamOnNotice);

@ -37,7 +37,7 @@ KviAvatarAdvancedOptionsWidget::KviAvatarAdvancedOptionsWidget(TQWidget * parent
// AVATAR
// 1st Box
KviTalGroupBox *g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Scaling in userlist","options"));
KviTalGroupBox *g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Scaling in userlist","options"));
KviBoolSelector *b = addBoolSelector(g,__tr2qs_ctx("Scale avatar images in userlist (recommended)","options"),KviOption_boolScaleAvatars);
#ifdef COMPILE_INFO_TIPS
KviTalToolTip::add(b,__tr2qs_ctx("<center>This option will force KVIrc to scale avatars" \
@ -53,7 +53,7 @@ KviAvatarAdvancedOptionsWidget::KviAvatarAdvancedOptionsWidget(TQWidget * parent
connect(b,TQT_SIGNAL(toggled(bool)),u,TQT_SLOT(setEnabled(bool)));
//2nd
g = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Scaling on load (and in user tooltips)","options"));
g = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Scaling on load (and in user tooltips)","options"));
b = addBoolSelector(g,__tr2qs_ctx("Scale avatar images on image load","options"),KviOption_boolScaleAvatarsOnLoad);
u = addUIntSelector(g,__tr2qs_ctx("Image width:","options"),KviOption_uintScaleAvatarsOnLoadWidth,0,1280,80,KVI_OPTION_BOOL(KviOption_boolScaleAvatarsOnLoad));
@ -62,7 +62,7 @@ KviAvatarAdvancedOptionsWidget::KviAvatarAdvancedOptionsWidget(TQWidget * parent
connect(b,TQT_SIGNAL(toggled(bool)),u,TQT_SLOT(setEnabled(bool)));
// 2st Box
KviTalGroupBox *gs = addGroupBox(0,2,0,2,1,Qt::Horizontal,__tr2qs_ctx("Request CTCP","options"));
KviTalGroupBox *gs = addGroupBox(0,2,0,2,1,TQt::Horizontal,__tr2qs_ctx("Request CTCP","options"));
KviBoolSelector * bs = addBoolSelector(g,__tr2qs_ctx("Request missing avatars","options"),KviOption_boolRequestMissingAvatars);
KviUIntSelector * us = addUIntSelector(g,__tr2qs_ctx("Maximum requested file size:","options"),KviOption_uintMaximumRequestedAvatarSize,0,1048576,102400,KVI_OPTION_BOOL(KviOption_boolRequestMissingAvatars));

@ -40,7 +40,7 @@ KviAwayOptionsWidget::KviAwayOptionsWidget(TQWidget * parent)
addBoolSelector(0,1,0,1, __tr2qs_ctx("User input exits away mode","options"), KviOption_boolExitAwayOnInput);
KviTalGroupBox *g = addGroupBox(0,2,0,2,1,Qt::Horizontal,__tr2qs_ctx("Away Nickname","options"));
KviTalGroupBox *g = addGroupBox(0,2,0,2,1,TQt::Horizontal,__tr2qs_ctx("Away Nickname","options"));
m_pEnableAwayNick = addBoolSelector(g,__tr2qs_ctx("Change nickname on away","options"),KviOption_boolChangeNickAway);
connect(m_pEnableAwayNick,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(enableCustomAwayText(bool)));

@ -36,7 +36,7 @@ KviConnectionOptionsWidget::KviConnectionOptionsWidget(TQWidget * parent)
{
createLayout(2,1);
KviTalGroupBox *gbox = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("On Disconnect","options"));
KviTalGroupBox *gbox = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("On Disconnect","options"));
KviBoolSelector *b1 = addBoolSelector(gbox,__tr2qs_ctx("Keep channels open","options"),KviOption_boolKeepChannelsOpenOnDisconnect,true);
@ -49,7 +49,7 @@ KviConnectionOptionsWidget::KviConnectionOptionsWidget(TQWidget * parent)
mergeTip(b1,__tr2qs_ctx("<center>This option will cause KVIrc to keep queries open after disconnect.</center>","options"));
#endif
gbox = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("On Unexpected Disconnect","options"));
gbox = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("On Unexpected Disconnect","options"));
b1 = addBoolSelector(gbox,__tr2qs_ctx("Keep channels open","options"),KviOption_boolKeepChannelsOpenOnUnexpectedDisconnect,true);
@ -71,7 +71,7 @@ KviConnectionOptionsWidget::KviConnectionOptionsWidget(TQWidget * parent)
mergeTip(b1,__tr2qs_ctx("<center>This option will cause KVIrc to reopen query windows after a successful reconnect attempt.</center>","options"));
#endif
// gbox = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("On Unexpected Disconnect","options"));
// gbox = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("On Unexpected Disconnect","options"));
KviBoolSelector * b = addBoolSelector(gbox,__tr2qs_ctx("Automatically reconnect","options"),KviOption_boolAutoReconnectOnUnexpectedDisconnect);
#ifdef COMPILE_INFO_TIPS
mergeTip(b,__tr2qs_ctx("<center>This option will enable auto-reconnecting after an unexpected disconnect. " \
@ -120,7 +120,7 @@ KviSSLOptionsWidget::KviSSLOptionsWidget(TQWidget * parent)
#ifdef COMPILE_SSL_SUPPORT
createLayout(3,1);
KviTalGroupBox * gbox = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Certificate","options"));
KviTalGroupBox * gbox = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Certificate","options"));
KviBoolSelector * b = addBoolSelector(gbox,__tr2qs_ctx("Use SSL certificate (PEM format only)","options"),
&(KVI_OPTION_BOOL(KviOption_boolUseSSLCertificate)),true);
@ -131,7 +131,7 @@ KviSSLOptionsWidget::KviSSLOptionsWidget(TQWidget * parent)
&(KVI_OPTION_STRING(KviOption_stringSSLCertificatePass)),KVI_OPTION_BOOL(KviOption_boolUseSSLCertificate));
connect(b,TQT_SIGNAL(toggled(bool)),p,TQT_SLOT(setEnabled(bool)));
gbox = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Private Key","options"));
gbox = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Private Key","options"));
b = addBoolSelector(gbox,__tr2qs_ctx("Use SSL private key","options"),
&(KVI_OPTION_BOOL(KviOption_boolUseSSLPrivateKey)),true);
f = addFileSelector(gbox,__tr2qs_ctx("Private key location:","options"),
@ -162,7 +162,7 @@ KviTransportOptionsWidget::KviTransportOptionsWidget(TQWidget * parent)
createLayout(5,1);
KviUIntSelector * u;
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Timeout Values","options"),this);
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Timeout Values","options"),this);
u = addUIntSelector(g,__tr2qs_ctx("Connect timeout:","options"),KviOption_uintIrcSocketTimeout,5,6000,60);
u->setSuffix(__tr2qs_ctx(" sec","options"));
u = addUIntSelector(g,__tr2qs_ctx("Outgoing data queue flush timeout:","options"),KviOption_uintSocketQueueFlushTimeout,100,2000,500);
@ -176,7 +176,7 @@ KviTransportOptionsWidget::KviTransportOptionsWidget(TQWidget * parent)
#endif
connect(b,TQT_SIGNAL(toggled(bool)),u,TQT_SLOT(setEnabled(bool)));
g = addGroupBox(0,3,0,3,2,Qt::Horizontal,__tr2qs_ctx("Network Interfaces","options"));
g = addGroupBox(0,3,0,3,2,TQt::Horizontal,__tr2qs_ctx("Network Interfaces","options"));
b = addBoolSelector(g,__tr2qs_ctx("Bind IPv4 connections to:","options"),KviOption_boolBindIrcIpV4ConnectionsToSpecifiedAddress);
KviStringSelector * s = addStringSelector(g,"",KviOption_stringIpV4ConnectionBindAddress,KVI_OPTION_BOOL(KviOption_boolBindIrcIpV4ConnectionsToSpecifiedAddress));
@ -210,7 +210,7 @@ KviIdentOptionsWidget::KviIdentOptionsWidget(TQWidget * parent)
m_pEnableIdent = addBoolSelector(0,0,0,0,__tr2qs_ctx("Enable ident service (bad practice on UNIX!)","options"),KviOption_boolUseIdentService);
connect(m_pEnableIdent,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(enableIpv4InIpv6(bool)));
KviTalGroupBox * gbox = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Output verbosity","options"),KVI_OPTION_BOOL(KviOption_boolUseIdentService));
KviTalGroupBox * gbox = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Output verbosity","options"),KVI_OPTION_BOOL(KviOption_boolUseIdentService));
connect(m_pEnableIdent,TQT_SIGNAL(toggled(bool)),gbox,TQT_SLOT(setEnabled(bool)));
addLabel(gbox,__tr2qs_ctx("Output identd messages to:","options"));
@ -232,7 +232,7 @@ KviIdentOptionsWidget::KviIdentOptionsWidget(TQWidget * parent)
break;
}
gbox = addGroupBox(0,2,0,2,1,Qt::Horizontal,__tr2qs_ctx("Configuration","options"),KVI_OPTION_BOOL(KviOption_boolUseIdentService));
gbox = addGroupBox(0,2,0,2,1,TQt::Horizontal,__tr2qs_ctx("Configuration","options"),KVI_OPTION_BOOL(KviOption_boolUseIdentService));
KviBoolSelector *b = addBoolSelector(gbox,__tr2qs_ctx("Enable ident service only while connecting to server","options"),KviOption_boolUseIdentServiceOnlyOnConnect);
connect(m_pEnableIdent,TQT_SIGNAL(toggled(bool)),b,TQT_SLOT(setEnabled(bool)));
@ -245,7 +245,7 @@ KviIdentOptionsWidget::KviIdentOptionsWidget(TQWidget * parent)
connect(m_pEnableIdent,TQT_SIGNAL(toggled(bool)),u,TQT_SLOT(setEnabled(bool)));
connect(m_pEnableIdent,TQT_SIGNAL(toggled(bool)),gbox,TQT_SLOT(setEnabled(bool)));
gbox = addGroupBox(0,3,0,3,1,Qt::Horizontal,__tr2qs_ctx("IPv6 Settings","options"),KVI_OPTION_BOOL(KviOption_boolUseIdentService));
gbox = addGroupBox(0,3,0,3,1,TQt::Horizontal,__tr2qs_ctx("IPv6 Settings","options"),KVI_OPTION_BOOL(KviOption_boolUseIdentService));
m_pEnableIpv6 = addBoolSelector(gbox,__tr2qs_ctx("Enable service for IPv6","options"),
KviOption_boolIdentdEnableIpV6,
KVI_OPTION_BOOL(KviOption_boolUseIdentService));

@ -44,7 +44,7 @@ KviCtcpOptionsWidget::KviCtcpOptionsWidget(TQWidget * parent)
"<br><br></p>","options"));
KviTalGroupBox *gs = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("CTCP Replies","options"));
KviTalGroupBox *gs = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("CTCP Replies","options"));
KviStringSelector * s = addStringSelector(gs, __tr2qs_ctx("Append to VERSION reply:","options"),KviOption_stringCtcpVersionPostfix);
#ifdef COMPILE_INFO_TIPS

@ -93,7 +93,7 @@ KviCtcpFloodProtectionOptionsWidget::KviCtcpFloodProtectionOptionsWidget(TQWidge
#endif
connect(b,TQT_SIGNAL(toggled(bool)),u,TQT_SLOT(setEnabled(bool)));
KviTalGroupBox * g = addGroupBox(0,2,1,2,2,Qt::Horizontal,__tr2qs_ctx("Ignored Requests","options"));
KviTalGroupBox * g = addGroupBox(0,2,1,2,2,TQt::Horizontal,__tr2qs_ctx("Ignored Requests","options"));
addBoolSelector(g,__tr2qs_ctx("PING","options"),KviOption_boolIgnoreCtcpPing);
addBoolSelector(g,__tr2qs_ctx("FINGER","options"),KviOption_boolIgnoreCtcpFinger);
addBoolSelector(g,__tr2qs_ctx("CLIENTINFO","options"),KviOption_boolIgnoreCtcpClientinfo);

@ -70,7 +70,7 @@ KviDccAdvancedOptionsWidget::KviDccAdvancedOptionsWidget(TQWidget * parent)
{
createLayout(5,1);
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Network Properties","options"));
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Network Properties","options"));
KviBoolSelector * b = addBoolSelector(g,__tr2qs_ctx("Use user-defined address or network interface","options"),KviOption_boolDccListenOnSpecifiedInterfaceByDefault);
@ -195,18 +195,18 @@ KviDccSendGeneralOptionsWidget::KviDccSendGeneralOptionsWidget(TQWidget * parent
KviBoolSelector * b;
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("On Incoming File","options"));
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("On Incoming File","options"));
KviBoolSelector * b2 = addBoolSelector(g,__tr2qs_ctx("Automatically accept","options"),KviOption_boolAutoAcceptDccSend);
KviBoolSelector * b3 = addBoolSelector(g,__tr2qs_ctx("Open transfer window as minimized when auto-accepted","options"),KviOption_boolCreateMinimizedDccSendWhenAutoAccepted,!KVI_OPTION_BOOL(KviOption_boolCreateMinimizedDccSend));
KviBoolSelector * b4 = addBoolSelector(g,__tr2qs_ctx("Automatically resume when auto-accepted","options"),KviOption_boolAutoResumeDccSendWhenAutoAccepted,KVI_OPTION_BOOL(KviOption_boolAutoAcceptDccSend));
g = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Save Location","options"));
g = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Save Location","options"));
addDirectorySelector(g,__tr2qs_ctx("Download folder:","options"),KviOption_stringIncomingPath);
addBoolSelector(g,__tr2qs_ctx("Sort saved files by nicknames (create subfolders)","options"),KviOption_boolSortReceivedByDccFilesByNicks);
addBoolSelector(g,__tr2qs_ctx("Guess save path from media type","options"),KviOption_boolUseIncomingDccMediaTypeSavePath);
g = addGroupBox(0,2,0,2,1,Qt::Horizontal,__tr2qs_ctx("On Download Completion","options"));
g = addGroupBox(0,2,0,2,1,TQt::Horizontal,__tr2qs_ctx("On Download Completion","options"));
addBoolSelector(g,__tr2qs_ctx("Notify completion in console","options"),KviOption_boolNotifyDccSendSuccessInConsole);
addBoolSelector(g,__tr2qs_ctx("Notify completion in notifier","options"),KviOption_boolNotifyDccSendSuccessInNotifier);
b = addBoolSelector(g,__tr2qs_ctx("Automatically clear transfer","options"),KviOption_boolAutoCloseDccSendOnSuccess);
@ -235,7 +235,7 @@ KviDccSendAdvancedOptionsWidget::KviDccSendAdvancedOptionsWidget(TQWidget * pare
{
createLayout(4,1);
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Bug Compatibility","options"));
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Bug Compatibility","options"));
KviBoolSelector * b = addBoolSelector(g,__tr2qs_ctx("Send ACK for byte 0","options"),KviOption_boolSendZeroAckInDccRecv);
#ifdef COMPILE_INFO_TIPS
mergeTip(b,
@ -259,7 +259,7 @@ KviDccSendAdvancedOptionsWidget::KviDccSendAdvancedOptionsWidget(TQWidget * pare
#endif //COMPILE_INFO_TIPS
g = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Limits","options"));
g = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Limits","options"));
KviTalHBox * hb = new KviTalHBox(g);
b = addBoolSelector(hb,__tr2qs_ctx("Limit upload bandwidth to","options"),KviOption_boolLimitDccSendSpeed);
@ -280,7 +280,7 @@ KviDccSendAdvancedOptionsWidget::KviDccSendAdvancedOptionsWidget(TQWidget * pare
"KVIrc will refuse the requests when this limit is reached.</center>","options"));
#endif
g = addGroupBox(0,2,0,2,1,Qt::Horizontal,__tr2qs_ctx("Tweaks","options"));
g = addGroupBox(0,2,0,2,1,TQt::Horizontal,__tr2qs_ctx("Tweaks","options"));
b = addBoolSelector(g,__tr2qs_ctx("Use fast send (send ahead)","options"),KviOption_boolUseFastDccSend);
#ifdef COMPILE_INFO_TIPS
@ -346,7 +346,7 @@ KviDccChatOptionsWidget::KviDccChatOptionsWidget(TQWidget * parent)
{
createLayout(3,1);
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("On Chat Request","options"));
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("On Chat Request","options"));
KviBoolSelector * b = addBoolSelector(g,__tr2qs_ctx("Automatically accept","options"),KviOption_boolAutoAcceptDccChat);
b = addBoolSelector(g,__tr2qs_ctx("Open minimized when auto-accepted","options"),KviOption_boolCreateMinimizedDccChatWhenAutoAccepted,!KVI_OPTION_BOOL(KviOption_boolCreateMinimizedDccChat));
@ -367,7 +367,7 @@ KviDccVoiceOptionsWidget::KviDccVoiceOptionsWidget(TQWidget *p):KviOptionsWidget
createLayout(8, 1);
KviBoolSelector * b1 = addBoolSelector(0,0,0,0,__tr2qs_ctx("Open all minimized","options"),KviOption_boolCreateMinimizedDccVoice);
KviTalGroupBox * g = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("On Voice Request","options"));
KviTalGroupBox * g = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("On Voice Request","options"));
KviBoolSelector * b = addBoolSelector(g,__tr2qs_ctx("Automatically accept","options"),KviOption_boolAutoAcceptDccVoice);
b = addBoolSelector(g,__tr2qs_ctx("Open minimized when auto-accepted","options"),KviOption_boolCreateMinimizedDccVoiceWhenAutoAccepted,!KVI_OPTION_BOOL(KviOption_boolCreateMinimizedDccVoice));

@ -88,7 +88,7 @@ KviAlertOptionsWidget::KviAlertOptionsWidget(TQWidget * parent)
KviBoolSelector * b;
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Alert Restrictions","options"));
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Alert Restrictions","options"));
KviBoolSelector * b3 = addBoolSelector(g,__tr2qs_ctx("Restrict alert","options"),KviOption_boolHighlightOnlyNormalMsg);
#ifdef COMPILE_INFO_TIPS
mergeTip(b3, __tr2qs_ctx("<center>If this option is enabled, KVIrc will alert in the taskbar only if a normal message is received in a channel.<br>Actions like joins, parts and mode changes will be ignored.<br> This is useful if you are in channels with a high rate of traffic and only want to be alerted for messages that are interesting to you.</center>","options"));

@ -313,7 +313,7 @@ KviIdentityGeneralOptionsWidget::KviIdentityGeneralOptionsWidget(TQWidget * pare
createLayout(3,1);
layout()->setMargin(10);
KviTalGroupBox * gbox = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Basic Properties","options"));
KviTalGroupBox * gbox = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Basic Properties","options"));
KviTalHBox * hb = new KviTalHBox(gbox);
hb->setSpacing(3);
@ -353,7 +353,7 @@ KviIdentityGeneralOptionsWidget::KviIdentityGeneralOptionsWidget(TQWidget * pare
TQString szCenterEnd("</center>");
TQString szTrailing = "<br><br>" + szOptionalCtcpUserInfo + szCenterEnd;
gbox = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Profile","options"));
gbox = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Profile","options"));
hb = new KviTalHBox(gbox);
hb->setSpacing(4);
@ -680,12 +680,12 @@ KviIdentityAdvancedOptionsWidget::KviIdentityAdvancedOptionsWidget(TQWidget * pa
createLayout(2,1);
layout()->setMargin(10);
KviTalGroupBox * gbox = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("User Mode","options"));
KviTalGroupBox * gbox = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("User Mode","options"));
m_pISelector = addBoolSelector(gbox,__tr2qs_ctx("Invisible (+i)","options"),&m_bI);
m_pSSelector = addBoolSelector(gbox,__tr2qs_ctx("Server notices (+s)","options"),&m_bS);
m_pWSelector = addBoolSelector(gbox,__tr2qs_ctx("Wallops (+w)","options"),&m_bW);
gbox = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Default Messages","options"));
gbox = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Default Messages","options"));
KviStringSelector * sel = addStringSelector(gbox, __tr2qs_ctx("Part message:","options"),KviOption_stringPartMessage);

@ -35,7 +35,7 @@ KviIgnoreOptionsWidget::KviIgnoreOptionsWidget(TQWidget * parent)
{
createLayout(3,1);
KviTalGroupBox *g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Enable Ignore For","options"));
KviTalGroupBox *g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Enable Ignore For","options"));
m_pIgnorePrivmsg = addBoolSelector(g,__tr2qs_ctx("Private/channel messages","options"),KviOption_boolEnableIgnoreOnPrivMsg);
m_pIgnoreNotice = addBoolSelector(g,__tr2qs_ctx("Private/channel notices","options"),KviOption_boolEnableIgnoreOnNotice);

@ -141,7 +141,7 @@ KviInputFeaturesOptionsWidget::KviInputFeaturesOptionsWidget(TQWidget * parent)
addBoolSelector(0,0,0,0,__tr2qs_ctx("Warp cursor at the end of line when browsing history","options"),KviOption_boolInputHistoryCursorAtEnd);
addBoolSelector(0,1,0,1,__tr2qs_ctx("Disable the input history window and it's log memory.","options"),KviOption_boolDisableInputHistory); //G&N 2005
addBoolSelector(0,2,0,2,__tr2qs_ctx("Hide input toolbuttons by default","options"),KviOption_boolHideInputToolButtons);
KviTalGroupBox * g = addGroupBox(0,3,0,3,1,Qt::Horizontal,__tr2qs_ctx("Nick completion","options"));
KviTalGroupBox * g = addGroupBox(0,3,0,3,1,TQt::Horizontal,__tr2qs_ctx("Nick completion","options"));
addBoolSelector(g,__tr2qs_ctx("Use bash-like nick completion","options"),KviOption_boolBashLikeNickCompletion);
addStringSelector(g,__tr2qs_ctx("Nick completion postfix string","options"),KviOption_stringNickCompletionPostfix);
addBoolSelector(g,__tr2qs_ctx("Use the completion postfix string for the first word only","options"),KviOption_boolUseNickCompletionPostfixForFirstWordOnly);

@ -54,7 +54,7 @@ KviInterfaceFeaturesOptionsWidget::KviInterfaceFeaturesOptionsWidget(TQWidget *
addBoolSelector(0,4,0,4,__tr2qs_ctx("Enable visual effects","options"),KviOption_boolEnableVisualEffects);
addBoolSelector(0,5,0,5,__tr2qs_ctx("Hide Channel window tool buttons by default","options"),KviOption_boolHideWindowToolButtons);
KviTalGroupBox * g = addGroupBox(0,6,0,6,1,Qt::Horizontal,__tr2qs_ctx("Open Dialog Window For","options"));
KviTalGroupBox * g = addGroupBox(0,6,0,6,1,TQt::Horizontal,__tr2qs_ctx("Open Dialog Window For","options"));
addBoolSelector(g,__tr2qs_ctx("Preferences","options"),KviOption_boolShowGeneralOptionsDialogAsToplevel);
addBoolSelector(g,__tr2qs_ctx("Registered Users","options"),KviOption_boolShowRegisteredUsersDialogAsToplevel);
addBoolSelector(g,__tr2qs_ctx("Identity","options"),KviOption_boolShowIdentityDialogAsToplevel);

@ -107,7 +107,7 @@ KviChannelGeneralOptionsWidget::KviChannelGeneralOptionsWidget(TQWidget * pParen
{
createLayout(5,1);
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("On Channel Kick","options"));
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("On Channel Kick","options"));
KviBoolSelector *b = addBoolSelector(g,__tr2qs_ctx("Rejoin channel","options"),KviOption_boolRejoinChannelOnKick);
#ifdef COMPILE_INFO_TIPS
@ -124,7 +124,7 @@ KviChannelGeneralOptionsWidget::KviChannelGeneralOptionsWidget(TQWidget * pParen
"\"Rejoin channel\" option.</center>","options"));
#endif
g = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("On Channel Part","options"));
g = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("On Channel Part","options"));
b = addBoolSelector(g,__tr2qs_ctx("Keep channel open","options"),KviOption_boolKeepChannelOpenOnPart);
#ifdef COMPILE_INFO_TIPS
@ -185,7 +185,7 @@ KviChannelAdvancedOptionsWidget::KviChannelAdvancedOptionsWidget(TQWidget * pPar
}
m_pBanTypeCombo->setCurrentItem(KVI_OPTION_UINT(KviOption_uintDefaultBanType));
KviTalGroupBox * g = addGroupBox(0,2,4,2,1,Qt::Horizontal,__tr2qs_ctx("On Channel Join","options"));
KviTalGroupBox * g = addGroupBox(0,2,4,2,1,TQt::Horizontal,__tr2qs_ctx("On Channel Join","options"));
addBoolSelector(g,__tr2qs_ctx("Do not send /WHO request","options"),KviOption_boolDisableWhoRequestOnJoin);
addBoolSelector(g,__tr2qs_ctx("Do not request ban list","options"),KviOption_boolDisableBanListRequestOnJoin);
addBoolSelector(g,__tr2qs_ctx("Do not request ban exception list","options"),KviOption_boolDisableBanExceptionListRequestOnJoin);
@ -199,7 +199,7 @@ KviChannelAdvancedOptionsWidget::KviChannelAdvancedOptionsWidget(TQWidget * pPar
"your IRC bandwidth.</center>","options"));
#endif
g = addGroupBox(0,4,4,4,1,Qt::Horizontal,__tr2qs_ctx("On Channel Join","options"));
g = addGroupBox(0,4,4,4,1,TQt::Horizontal,__tr2qs_ctx("On Channel Join","options"));
addBoolSelector(g,__tr2qs_ctx("Echo channel topic","options"),KviOption_boolEchoNumericTopic);
addBoolSelector(g,__tr2qs_ctx("Show channel sync time","options"),KviOption_boolShowChannelSyncTime);

@ -56,7 +56,7 @@ KviIrcOutputOptionsWidget::KviIrcOutputOptionsWidget(TQWidget * parent)
KVI_OPTION_UINT(KviOption_uintOutputVerbosityLevel) = KVI_VERBOSITY_LEVEL_NORMAL;
m_pVerbosityCombo->setCurrentItem(KVI_OPTION_UINT(KviOption_uintOutputVerbosityLevel));
KviTalGroupBox * g = addGroupBox(0,1,1,1,1,Qt::Horizontal,__tr2qs_ctx("Show in active window","options"));
KviTalGroupBox * g = addGroupBox(0,1,1,1,1,TQt::Horizontal,__tr2qs_ctx("Show in active window","options"));
addBoolSelector(g,__tr2qs_ctx("External messages","options"),KviOption_boolExternalMessagesToActiveWindow);
addBoolSelector(g,__tr2qs_ctx("External CTCP replies","options"),KviOption_boolCtcpRepliesToActiveWindow);
addBoolSelector(g,__tr2qs_ctx("Whois replies","options"),KviOption_boolWhoisRepliesToActiveWindow);

@ -41,7 +41,7 @@ KviLagOptionsWidget::KviLagOptionsWidget(TQWidget * parent)
#ifdef COMPILE_INFO_TIPS
mergeTip(pUse,__tr2qs_ctx("<center>This enables the lag meter engine, which checks at regular intervals how much lag (latency) the server has.</center>","options"));
#endif
KviTalGroupBox *g = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Configuration","options"),KVI_OPTION_BOOL(KviOption_boolUseLagMeterEngine));
KviTalGroupBox *g = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Configuration","options"),KVI_OPTION_BOOL(KviOption_boolUseLagMeterEngine));
KviUIntSelector * pInterval = addUIntSelector(g, __tr2qs_ctx("Lag meter heartbeat:","options"),KviOption_uintLagMeterHeartbeat,2000,10000,5000,KVI_OPTION_BOOL(KviOption_boolUseLagMeterEngine));
pInterval->setSuffix(__tr2qs_ctx(" msec","options"));
#ifdef COMPILE_INFO_TIPS

@ -36,7 +36,7 @@ KviLoggingOptionsWidget::KviLoggingOptionsWidget(TQWidget * parent)
{
createLayout(4,1);
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Automatically Log","options"));
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Automatically Log","options"));
addBoolSelector(g,__tr2qs_ctx("Query windows","options"),KviOption_boolAutoLogQueries);
addBoolSelector(g,__tr2qs_ctx("Channel windows","options"),KviOption_boolAutoLogChannels);
addBoolSelector(g,__tr2qs_ctx("DCC Chat windows","options"),KviOption_boolAutoLogDccChat);

@ -76,7 +76,7 @@ KviPrivmsgOptionsWidget::KviPrivmsgOptionsWidget(TQWidget * parent)
KviBoolSelector * b1;
KviBoolSelector * b2;
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("General","options"));
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("General","options"));
addBoolSelector(g,__tr2qs_ctx("Show message icons","options"),KviOption_boolIrcViewShowImages);
addBoolSelector(g,__tr2qs_ctx("Draw some emoticons (smileys) as pictures","options"),KviOption_boolDrawEmoticons);
@ -85,7 +85,7 @@ KviPrivmsgOptionsWidget::KviPrivmsgOptionsWidget(TQWidget * parent)
g = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Nicknames","options"));
g = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Nicknames","options"));
b1 = addBoolSelector(g,__tr2qs_ctx("\"Smart\" nickname colors","options"),KviOption_boolColorNicks);
b2 = addBoolSelector(g,__tr2qs_ctx("Use same colors as in the userlist","options"),KviOption_boolUseUserListColorsAsNickColors,!KVI_OPTION_BOOL(KviOption_boolColorNicks));

@ -37,7 +37,7 @@ KviNotifyOptionsWidget::KviNotifyOptionsWidget(TQWidget * parent)
createLayout(5,1);
KviBoolSelector * b = addBoolSelector(0,0,0,0,__tr2qs_ctx("Use online notify list","options"),KviOption_boolUseNotifyList);
KviTalGroupBox *g = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Configuration","options"));
KviTalGroupBox *g = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Configuration","options"));
connect(b,TQT_SIGNAL(toggled(bool)),g,TQT_SLOT(setEnabled(bool)));
connect(b,
@ -56,7 +56,7 @@ KviNotifyOptionsWidget::KviNotifyOptionsWidget(TQWidget * parent)
KviOption_boolPopupNotifierOnNotifyOnLine,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)),
TQT_SLOT(setEnabled(bool)));
g = addGroupBox(0,2,0,2,1,Qt::Horizontal,__tr2qs_ctx("Advanced configuration","options"));
g = addGroupBox(0,2,0,2,1,TQt::Horizontal,__tr2qs_ctx("Advanced configuration","options"));
connect(b,TQT_SIGNAL(toggled(bool)),g,TQT_SLOT(setEnabled(bool)));
connect(b,

@ -103,7 +103,7 @@ KviProxyOptionsWidget::KviProxyOptionsWidget(TQWidget * parent)
vbox->setStretchFactor(lll,100);
KviTalGroupBox * gbox = addGroupBox(0,2,1,2,2,Qt::Horizontal,__tr2qs_ctx("Configuration","options"),this);
KviTalGroupBox * gbox = addGroupBox(0,2,1,2,2,TQt::Horizontal,__tr2qs_ctx("Configuration","options"),this);
//TQGridLayout * gl = new TQGridLayout(gbox->layout());
//gl->setMargin(2);
//gl->setSpacing(4);

@ -39,7 +39,7 @@ KviQueryOptionsWidget::KviQueryOptionsWidget(TQWidget * parent)
{
createLayout(8,1);
KviTalGroupBox *g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Open Query For","options"));
KviTalGroupBox *g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Open Query For","options"));
KviBoolSelector *b = addBoolSelector(g, __tr2qs_ctx("Private messages","options"),KviOption_boolCreateQueryOnPrivmsg);
#ifdef COMPILE_INFO_TIPS
mergeTip(b,

@ -124,7 +124,7 @@ KviNetworkDetailsWidget::KviNetworkDetailsWidget(TQWidget * par,KviIrcNetwork *
TQWidget * tab = new TQWidget(tw);
TQGridLayout * gl = new TQGridLayout(tab,4,2,10,4);
KviTalGroupBox *gbox = new KviTalGroupBox(2,Qt::Horizontal,__tr2qs_ctx("Properties","options"),tab);
KviTalGroupBox *gbox = new KviTalGroupBox(2,TQt::Horizontal,__tr2qs_ctx("Properties","options"),tab);
gl->addMultiCellWidget(gbox,0,0,0,1);
l = new TQLabel(__tr2qs_ctx("Username:","options"),gbox);
@ -474,7 +474,7 @@ KviServerDetailsWidget::KviServerDetailsWidget(TQWidget * par,KviIrcServer * s)
TQWidget * tab = new TQWidget(tw);
TQGridLayout * gl = new TQGridLayout(tab,3,1,10,4);
KviTalGroupBox *gbox = new KviTalGroupBox(2,Qt::Horizontal,__tr2qs_ctx("Properties","options"),tab);
KviTalGroupBox *gbox = new KviTalGroupBox(2,TQt::Horizontal,__tr2qs_ctx("Properties","options"),tab);
gl->addWidget(gbox,0,0);
l = new TQLabel(__tr2qs_ctx("Username:","options"),gbox);
@ -514,7 +514,7 @@ KviServerDetailsWidget::KviServerDetailsWidget(TQWidget * par,KviIrcServer * s)
"If you leave this field empty (most common case), KVIrc will first look if a real name is specified " \
"for the network that this server belongs to, and if that is empty the default \"real name\" (specified in the \"Identity\" settings) will be used.</center>","options"));
#endif
gbox = new KviTalGroupBox(1,Qt::Horizontal,__tr2qs_ctx("User Mode","options"),tab);
gbox = new KviTalGroupBox(1,TQt::Horizontal,__tr2qs_ctx("User Mode","options"),tab);
gl->addWidget(gbox,1,0);
m_pUseDefaultInitUMode = new KviStyledCheckBox(__tr2qs_ctx("Use default user mode","options"),gbox);
@ -1122,7 +1122,7 @@ KviServerOptionsWidget::KviServerOptionsWidget(TQWidget * parent)
TQFrame * lll = new TQFrame(vbox);
vbox->setStretchFactor(lll,100);
KviTalGroupBox *gbox = addGroupBox(0,1,1,1,3,Qt::Horizontal,__tr2qs_ctx("Active Configuration","options"));
KviTalGroupBox *gbox = addGroupBox(0,1,1,1,3,TQt::Horizontal,__tr2qs_ctx("Active Configuration","options"));
m_pSrvNetLabel = new TQLabel(__tr2qs_ctx("Server:","options"),gbox);
m_pSrvNetEdit = new TQLineEdit(gbox);

@ -61,7 +61,7 @@ KviSoundGeneralOptionsWidget::KviSoundGeneralOptionsWidget(TQWidget * parent)
#else
createLayout(3,1);
#endif
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Sound System","options"),true);
KviTalGroupBox * g = addGroupBox(0,0,0,0,1,TQt::Horizontal,__tr2qs_ctx("Sound System","options"),true);
KviTalToolTip::add(g,__tr2qs_ctx("This allows you to select the sound system to be used with KVIrc.","options"));
@ -76,7 +76,7 @@ KviSoundGeneralOptionsWidget::KviSoundGeneralOptionsWidget(TQWidget * parent)
connect(m_pSoundTestButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(soundTest()));
g = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Media Player","options"),true);
g = addGroupBox(0,1,0,1,1,TQt::Horizontal,__tr2qs_ctx("Media Player","options"),true);
KviTalToolTip::add(g,__tr2qs_ctx("This allows you to select the preferred media player to be used with " \
"the mediaplayer.* module commands and functions.","options"));
@ -99,7 +99,7 @@ KviSoundGeneralOptionsWidget::KviSoundGeneralOptionsWidget(TQWidget * parent)
m_pSoundTestButton->setEnabled(false);
m_pMediaTestButton->setEnabled(false);
g = addGroupBox(0,2,0,2,1,Qt::Horizontal,__tr2qs_ctx("ID3 tags' encoding","options"),true);
g = addGroupBox(0,2,0,2,1,TQt::Horizontal,__tr2qs_ctx("ID3 tags' encoding","options"),true);
KviTalToolTip::add(g,__tr2qs_ctx("This allows you to select encoding of mp3 tags.","options"));
@ -122,7 +122,7 @@ KviSoundGeneralOptionsWidget::KviSoundGeneralOptionsWidget(TQWidget * parent)
m_pTagsEncodingCombo->setCurrentItem(iMatch);
#ifdef COMPILE_ON_WINDOWS
g = addGroupBox(0,3,0,3,1,Qt::Horizontal,__tr2qs_ctx("Winamp messages ecoding","options"),true);
g = addGroupBox(0,3,0,3,1,TQt::Horizontal,__tr2qs_ctx("Winamp messages ecoding","options"),true);
KviTalToolTip::add(g,__tr2qs_ctx("This allows you to select encoding of winamp messages.","options"));

@ -77,7 +77,7 @@ KviTreeTaskBarForegroundOptionsWidget::KviTreeTaskBarForegroundOptionsWidget(TQW
{
createLayout(3,1);
KviTalGroupBox *g = addGroupBox(0,0,0,0,2,Qt::Horizontal,__tr2qs_ctx("Text/Alert Colors","options"));
KviTalGroupBox *g = addGroupBox(0,0,0,0,2,TQt::Horizontal,__tr2qs_ctx("Text/Alert Colors","options"));
addColorSelector(g,__tr2qs_ctx("Normal:","options"),KviOption_colorTreeTaskBarForeground);
addColorSelector(g,__tr2qs_ctx("Selected:","options"),KviOption_colorTreeTaskBarActiveForeground);
@ -107,7 +107,7 @@ KviTreeTaskBarBackgroundOptionsWidget::KviTreeTaskBarBackgroundOptionsWidget(TQW
{
createLayout(4,2);
KviTalGroupBox * g = addGroupBox(0,0,1,0,2,Qt::Horizontal,__tr2qs_ctx("Background Colors","options"));
KviTalGroupBox * g = addGroupBox(0,0,1,0,2,TQt::Horizontal,__tr2qs_ctx("Background Colors","options"));
addColorSelector(g,__tr2qs_ctx("Normal:","options"),KviOption_colorTreeTaskBarBackground);
addColorSelector(g,__tr2qs_ctx("Selected:","options"),KviOption_colorTreeTaskBarActiveBackground);
@ -230,7 +230,7 @@ KviClassicTaskBarOptionsWidget::KviClassicTaskBarOptionsWidget(TQWidget * parent
{
createLayout(8,1);
addFontSelector(0,0,0,0,__tr2qs_ctx("Font:","options"),KviOption_fontTaskbar);
KviTalGroupBox *g = addGroupBox(0,1,0,1,2,Qt::Horizontal,__tr2qs_ctx("Text/Alert Colors","options"));
KviTalGroupBox *g = addGroupBox(0,1,0,1,2,TQt::Horizontal,__tr2qs_ctx("Text/Alert Colors","options"));
addColorSelector(g,__tr2qs_ctx("Normal:","options"),KviOption_colorTaskBarNormalText);
addColorSelector(g,__tr2qs_ctx("Minimized:","options"), KviOption_colorTaskBarMinimizedText);
addColorSelector(g,__tr2qs_ctx("Alert Level 1:","options"),KviOption_colorTaskBarHighlight1Text);

@ -44,7 +44,7 @@ KviTrayOptionsWidget::KviTrayOptionsWidget(TQWidget * parent)
m_pEnableFlashing = addBoolSelector(0,3,0,3,__tr2qs_ctx("Enable tray icon flashing","options"),KviOption_boolEnableTrayIconFlashing);
m_pLevelBasedNotify = addBoolSelector(0,4,0,4,__tr2qs_ctx("Enable level-based message notification (not a message-type based)","options"),KviOption_boolUseLevelBasedTrayNotification);
m_pLevelsGroup = addGroupBox(0,5,0,5,1,Qt::Horizontal,__tr2qs_ctx("Select message levels to notify","options"));
m_pLevelsGroup = addGroupBox(0,5,0,5,1,TQt::Horizontal,__tr2qs_ctx("Select message levels to notify","options"));
addUIntSelector(m_pLevelsGroup,__tr2qs_ctx("Minimum level for low-priority messages","options"),
KviOption_uintMinTrayLowLevelMessage,

@ -50,7 +50,7 @@ KviUserListLookForegroundOptionsWidget::KviUserListLookForegroundOptionsWidget(T
addFontSelector(0,0,1,0,__tr2qs_ctx("Font:","options"),KviOption_fontUserListView);
KviTalGroupBox * g = addGroupBox(0,1,1,1,1,Qt::Horizontal,__tr2qs_ctx("Nickname Colors","options"));
KviTalGroupBox * g = addGroupBox(0,1,1,1,1,TQt::Horizontal,__tr2qs_ctx("Nickname Colors","options"));
addColorSelector(g,__tr2qs_ctx("Normal:","options"),KviOption_colorUserListViewNormalForeground);
addColorSelector(g,__tr2qs_ctx("Selected:","options"),KviOption_colorUserListViewSelectionForeground);
addColorSelector(g,__tr2qs_ctx("Channel owner:","options"),KviOption_colorUserListViewChanOwnerForeground);
@ -121,7 +121,7 @@ KviUserListLookBackgroundOptionsWidget::KviUserListLookBackgroundOptionsWidget(T
{
createLayout(3,2);
KviTalGroupBox * g = addGroupBox(0,0,1,0,1,Qt::Horizontal,__tr2qs_ctx("Background Colors","options"));
KviTalGroupBox * g = addGroupBox(0,0,1,0,1,TQt::Horizontal,__tr2qs_ctx("Background Colors","options"));
addColorSelector(g,__tr2qs_ctx("Normal:","options"),KviOption_colorUserListViewBackground);
addColorSelector(g,__tr2qs_ctx("Selected:","options"),KviOption_colorUserListViewSelectionBackground);

@ -202,7 +202,7 @@ KviSinglePopupEditor::KviSinglePopupEditor(TQWidget * par)
m_pMenuButton = new TQPushButton(__tr2qs("Test"),this);
g->addWidget(m_pMenuButton,0,2);
connect(m_pMenuButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(testPopup()));
TQSplitter * spl = new TQSplitter(Qt::Vertical,this);
TQSplitter * spl = new TQSplitter(TQt::Vertical,this);
m_pListView = new KviTalListView(spl);
m_pListView->addColumn(__tr2qs("Item"));
@ -1023,7 +1023,7 @@ KviPopupEditor::KviPopupEditor(TQWidget * par)
: TQWidget(par)
{
TQGridLayout * l = new TQGridLayout(this,1,1,0,2);
TQSplitter * spl = new TQSplitter(Qt::Horizontal,this);
TQSplitter * spl = new TQSplitter(TQt::Horizontal,this);
l->addWidget(spl,0,0);
KviTalVBox * box = new KviTalVBox(spl);

@ -74,7 +74,7 @@ KviRawEditor::KviRawEditor(TQWidget * par)
: TQWidget(par,"raw_event_editor")
{
TQGridLayout * l = new TQGridLayout(this,1,1,2,2);
TQSplitter * spl = new TQSplitter(Qt::Horizontal,this);
TQSplitter * spl = new TQSplitter(TQt::Horizontal,this);
l->addWidget(spl,0,0);
KviTalVBox * boxi = new KviTalVBox(spl);

@ -331,7 +331,7 @@ KviSetupWizard::KviSetupWizard()
if(nick == "root")nick = "newbie";
//m_pIdentity->m_pVBox
//__tr2qs("Basic Properties")
KviTalGroupBox * gbox = new KviTalGroupBox(1,Qt::Horizontal,TQString(),m_pIdentity->m_pVBox);
KviTalGroupBox * gbox = new KviTalGroupBox(1,TQt::Horizontal,TQString(),m_pIdentity->m_pVBox);
m_pNickSelector = new KviStringSelector(gbox,__tr2qs("Nickname:"),&(KVI_OPTION_STRING(KviOption_stringNickname1)),true);
m_pNickSelector->setMinimumLabelWidth(120);
@ -344,7 +344,7 @@ KviSetupWizard::KviSetupWizard()
TQString szCenterEnd("</center>");
TQString szTrailing = "<br><br>" + szOptionalCtcpUserInfo + szCenterEnd;
gbox = new KviTalGroupBox(1,Qt::Horizontal,__tr2qs("Profile"),m_pIdentity->m_pVBox);
gbox = new KviTalGroupBox(1,TQt::Horizontal,__tr2qs("Profile"),m_pIdentity->m_pVBox);
m_pRealNameSelector = new KviStringSelector(gbox,__tr2qs("Real name:"),&(KVI_OPTION_STRING(KviOption_stringRealname)),true);
m_pRealNameSelector->setMinimumLabelWidth(120);

@ -206,7 +206,7 @@ KviSharedFilesWindow::KviSharedFilesWindow(KviModuleExtensionDescriptor * d,KviF
: KviWindow(KVI_WINDOW_TYPE_TOOL,lpFrm,"shared files window",0) , KviModuleExtension(d)
{
g_pSharedFilesWindow = this;
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"splitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"splitter");
KviTalVBox * vbox = new KviTalVBox(m_pSplitter);

@ -37,7 +37,7 @@ KviSocketSpyWindow::KviSocketSpyWindow(KviFrame * lpFrm,KviConsole * lpConsole)
: KviWindow(KVI_WINDOW_TYPE_SOCKETSPY,lpFrm,"socket_spy",lpConsole) , KviIrcDataStreamMonitor(lpConsole->context())
{
g_pSocketSpyWindowList->append(this);
m_pSplitter = new TQSplitter(Qt::Horizontal,this,"splitter");
m_pSplitter = new TQSplitter(TQt::Horizontal,this,"splitter");
m_pIrcView = new KviIrcView(m_pSplitter,lpFrm,this);
// Ensure proper focusing
//setFocusHandler(m_pIrcView,this);

Loading…
Cancel
Save