summaryrefslogtreecommitdiffstats
path: root/src/kvirc/ui/kvi_historywin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/kvirc/ui/kvi_historywin.cpp
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvirc/ui/kvi_historywin.cpp')
-rw-r--r--src/kvirc/ui/kvi_historywin.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/kvirc/ui/kvi_historywin.cpp b/src/kvirc/ui/kvi_historywin.cpp
index ba9ca31..6e8219f 100644
--- a/src/kvirc/ui/kvi_historywin.cpp
+++ b/src/kvirc/ui/kvi_historywin.cpp
@@ -31,10 +31,10 @@
#include "kvi_input.h"
#include "kvi_mirccntrl.h"
-#include <qnamespace.h>
+#include <tqnamespace.h>
#ifdef COMPILE_USE_QT4
- #include <qevent.h>
+ #include <tqevent.h>
#endif
#include <ctype.h>
@@ -43,18 +43,18 @@ extern KviInputHistory * g_pInputHistory;
KviHistoryWindow::KviHistoryWindow()
#ifdef COMPILE_USE_QT4
-: KviTalListBox(0,Qt::Popup)
+: KviTalListBox(0,TQt::Popup)
#else
-: KviTalListBox(0,Qt::WType_Popup)
+: KviTalListBox(0,TQt::WType_Popup)
#endif
{
m_pOwner = 0;
#ifdef COMPILE_USE_QT4
setHScrollBarMode(Q3ScrollView::AlwaysOff);
#else
- setHScrollBarMode(QScrollView::AlwaysOff);
+ setHScrollBarMode(TQScrollView::AlwaysOff);
#endif
- connect(this,SIGNAL(selected(const QString &)),this,SLOT(itemSelected(const QString &)));
+ connect(this,TQT_SIGNAL(selected(const TQString &)),this,TQT_SLOT(itemSelected(const TQString &)));
m_iTimerId = -1;
}
@@ -71,7 +71,7 @@ KviHistoryWindow::~KviHistoryWindow()
void KviHistoryWindow::fill()
{
clear();
- for(QString * s = g_pInputHistory->list()->last();s;s = g_pInputHistory->list()->prev())
+ for(TQString * s = g_pInputHistory->list()->last();s;s = g_pInputHistory->list()->prev())
{
insertItem(*s);
}
@@ -80,14 +80,14 @@ void KviHistoryWindow::fill()
void KviHistoryWindow::popup(KviInput *owner)
{
- if(m_pOwner)disconnect(m_pOwner,SIGNAL(destroyed()),this,SLOT(ownerDead()));
+ if(m_pOwner)disconnect(m_pOwner,TQT_SIGNAL(destroyed()),this,TQT_SLOT(ownerDead()));
m_pOwner = owner;
- connect(m_pOwner,SIGNAL(destroyed()),this,SLOT(ownerDead()));
+ connect(m_pOwner,TQT_SIGNAL(destroyed()),this,TQT_SLOT(ownerDead()));
fill();
show();
}
-void KviHistoryWindow::mousePressEvent(QMouseEvent *e)
+void KviHistoryWindow::mousePressEvent(TQMouseEvent *e)
{
if(e->pos().x() < 0)goto hideme;
if(e->pos().x() > width())goto hideme;
@@ -136,24 +136,24 @@ got_mit:
}
*/
-void KviHistoryWindow::keyPressEvent(QKeyEvent *e)
+void KviHistoryWindow::keyPressEvent(TQKeyEvent *e)
{
switch(e->key())
{
- case Qt::Key_Up:
- case Qt::Key_Down:
- case Qt::Key_PageUp:
- case Qt::Key_PageDown:
- case Qt::Key_Return:
+ case TQt::Key_Up:
+ case TQt::Key_Down:
+ case TQt::Key_PageUp:
+ case TQt::Key_PageDown:
+ case TQt::Key_Return:
KviTalListBox::keyPressEvent(e);
return;
break;
- case Qt::Key_Escape:
+ case TQt::Key_Escape:
doHide();
return;
break;
/*
- case Qt::Key_Backspace:
+ case TQt::Key_Backspace:
if(m_szTypedSeq.hasData())
{
m_szTypedSeq.cutRight(1);
@@ -166,7 +166,7 @@ void KviHistoryWindow::keyPressEvent(QKeyEvent *e)
break;
*/
/*
- case Qt::Key_Space:
+ case TQt::Key_Space:
doHide();
if(findTypedSeq())
{
@@ -180,7 +180,7 @@ void KviHistoryWindow::keyPressEvent(QKeyEvent *e)
break;
*/
/*
- case Qt::Key_Tab:
+ case TQt::Key_Tab:
doHide();
findTypedSeq();
KviStr szItem = m_szCurFullSeq;
@@ -214,10 +214,10 @@ void KviHistoryWindow::ownerDead()
void KviHistoryWindow::show()
{
m_iTimerId = startTimer(100000); //100 sec ...seems enough
- QWidget::show();
+ TQWidget::show();
}
-void KviHistoryWindow::timerEvent(QTimerEvent *)
+void KviHistoryWindow::timerEvent(TQTimerEvent *)
{
m_pOwner = 0; // do not setFocus() to the owner after the timeout
doHide();
@@ -235,14 +235,14 @@ void KviHistoryWindow::doHide()
m_pOwner->setFocus();
}
-void KviHistoryWindow::itemSelected(const QString &str)
+void KviHistoryWindow::itemSelected(const TQString &str)
{
doHide();
if(m_pOwner)m_pOwner->setText(str);
}
-void KviHistoryWindow::hideEvent(QHideEvent *)
+void KviHistoryWindow::hideEvent(TQHideEvent *)
{
if(m_iTimerId != -1)
{