summaryrefslogtreecommitdiffstats
path: root/ksirc/KSTicker
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /ksirc/KSTicker
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/KSTicker')
-rw-r--r--ksirc/KSTicker/kspainter.cpp22
-rw-r--r--ksirc/KSTicker/kspainter.h20
-rw-r--r--ksirc/KSTicker/ksticker.cpp112
-rw-r--r--ksirc/KSTicker/ksticker.h60
-rw-r--r--ksirc/KSTicker/ksttest.cpp24
-rw-r--r--ksirc/KSTicker/ksttest.h2
-rw-r--r--ksirc/KSTicker/speeddialog.cpp10
-rw-r--r--ksirc/KSTicker/speeddialog.h2
-rw-r--r--ksirc/KSTicker/speeddialogData.cpp50
-rw-r--r--ksirc/KSTicker/speeddialogData.h16
10 files changed, 159 insertions, 159 deletions
diff --git a/ksirc/KSTicker/kspainter.cpp b/ksirc/KSTicker/kspainter.cpp
index fe5fbf65..90ffac0d 100644
--- a/ksirc/KSTicker/kspainter.cpp
+++ b/ksirc/KSTicker/kspainter.cpp
@@ -6,13 +6,13 @@ const int KSPainter::optcolours = 8;
const int KSPainter::startspecial = 16;
const int KSPainter::maxcolour = 16+optcolours;
-const QColor KSPainter::brown ( 165, 42, 42 );
-const QColor KSPainter::orange ( 255, 165, 0 );
-const QColor KSPainter::lightCyan( 224, 255, 255 );
-const QColor KSPainter::lightBlue( 173, 216, 230 );
-const QColor KSPainter::pink ( 255, 192, 203 );
+const TQColor KSPainter::brown ( 165, 42, 42 );
+const TQColor KSPainter::orange ( 255, 165, 0 );
+const TQColor KSPainter::lightCyan( 224, 255, 255 );
+const TQColor KSPainter::lightBlue( 173, 216, 230 );
+const TQColor KSPainter::pink ( 255, 192, 203 );
-QColor KSPainter::num2colour[KSPainter::maxcolour] = { Qt::white,
+TQColor KSPainter::num2colour[KSPainter::maxcolour] = { Qt::white,
Qt::black,
Qt::darkBlue,
Qt::darkGreen,
@@ -41,7 +41,7 @@ void KSPainter::initOptColours()
num2colour[startspecial+7] = ksopts->backgroundColor;
}
-int KSPainter::colour2num(const QColor &colour)
+int KSPainter::colour2num(const TQColor &colour)
{
for(int i = 0; i < maxcolour; i++)
if(num2colour[i] == colour)
@@ -50,7 +50,7 @@ int KSPainter::colour2num(const QColor &colour)
return -1;
}
-void KSPainter::colourDrawText(QPainter *p, int startx, int starty,
+void KSPainter::colourDrawText(TQPainter *p, int startx, int starty,
char *str, int length)
{
int offset = 0;
@@ -62,7 +62,7 @@ void KSPainter::colourDrawText(QPainter *p, int startx, int starty,
// Default pen (colour)
- const QPen qpDefPen = p->pen();
+ const TQPen qpDefPen = p->pen();
for(loc = 0; (str[loc] != 0x00) && (loc != length) ; loc++){
if(str[loc] == 0x03 || str[loc] == '~'){
@@ -121,8 +121,8 @@ void KSPainter::colourDrawText(QPainter *p, int startx, int starty,
p->setBackgroundMode(Qt::TransparentMode);
}
else if((str[i] == '~') && ((str[i+1] >= 0x61) || (str[i+1] <= 0x7a))){
- QFont fnt = p->font();
- QColor temppen;
+ TQFont fnt = p->font();
+ TQColor temppen;
switch(str[i+1]){
case 'c':
p->setPen(qpDefPen);
diff --git a/ksirc/KSTicker/kspainter.h b/ksirc/KSTicker/kspainter.h
index 21f9495d..b5fa1049 100644
--- a/ksirc/KSTicker/kspainter.h
+++ b/ksirc/KSTicker/kspainter.h
@@ -1,25 +1,25 @@
#ifndef KSPAINTER_H
#define KSPAINTER_H
-#include <qpainter.h>
-#include <qobject.h>
+#include <tqpainter.h>
+#include <tqobject.h>
class KSPainter
{
public:
static void initOptColours();
- static void colourDrawText(QPainter *p, int startx, int starty, char *str, int length = -1);
+ static void colourDrawText(TQPainter *p, int startx, int starty, char *str, int length = -1);
static const int startspecial;
static const int maxcolour;
static const int optcolours;
- static QColor num2colour[16+8];
- static int colour2num(const QColor &colour);
+ static TQColor num2colour[16+8];
+ static int colour2num(const TQColor &colour);
- static const QColor brown;
- static const QColor orange;
- static const QColor lightCyan;
- static const QColor lightBlue;
- static const QColor pink;
+ static const TQColor brown;
+ static const TQColor orange;
+ static const TQColor lightCyan;
+ static const TQColor lightBlue;
+ static const TQColor pink;
};
#endif
diff --git a/ksirc/KSTicker/ksticker.cpp b/ksirc/KSTicker/ksticker.cpp
index dc65118a..e6199427 100644
--- a/ksirc/KSTicker/ksticker.cpp
+++ b/ksirc/KSTicker/ksticker.cpp
@@ -1,10 +1,10 @@
#include <stdlib.h>
-#include <qpainter.h>
-#include <qframe.h>
-#include <qpaintdevice.h>
-#include <qcursor.h>
-#include <qtooltip.h>
-#include <qregexp.h>
+#include <tqpainter.h>
+#include <tqframe.h>
+#include <tqpaintdevice.h>
+#include <tqcursor.h>
+#include <tqtooltip.h>
+#include <tqregexp.h>
#include <kapplication.h>
#include <kfontdialog.h>
@@ -21,13 +21,13 @@
#include <kwin.h>
#include <kdebug.h>
-KSTicker::KSTicker(QWidget * parent, const char * name, WFlags f)
-: QFrame(parent, name, f)
+KSTicker::KSTicker(TQWidget * parent, const char * name, WFlags f)
+: TQFrame(parent, name, f)
{
pHeight = 1;
- pic = new QPixmap(); // create pic map here, resize it later though.
+ pic = new TQPixmap(); // create pic map here, resize it later though.
// pic->setBackgroundMode(TransparentMode);
KConfig *conf = kapp->config();
@@ -36,7 +36,7 @@ KSTicker::KSTicker(QWidget * parent, const char * name, WFlags f)
bAtEnd = FALSE;
setFont(conf->readFontEntry("Font", &ksopts->defaultFont));
- ourFont = font(); //QFont("Courier");
+ ourFont = font(); //TQFont("Courier");
setFont(ourFont);
setMinimumSize(100, 10);
setFixedHeight((fontMetrics().height()+fontMetrics().descent()*2)*pHeight);
@@ -54,13 +54,13 @@ KSTicker::KSTicker(QWidget * parent, const char * name, WFlags f)
currentChar = 0;
chars = this->width() / onechar;
- popup = new QPopupMenu();
- popup->insertItem(i18n( "Font..." ), this, SLOT(fontSelector()));
- popup->insertItem(i18n( "Scroll Rate..." ), this, SLOT(scrollRate()));
- iScrollItem = popup->insertItem(i18n( "Scroll Constantly" ), this, SLOT(scrollConstantly()));
+ popup = new TQPopupMenu();
+ popup->insertItem(i18n( "Font..." ), this, TQT_SLOT(fontSelector()));
+ popup->insertItem(i18n( "Scroll Rate..." ), this, TQT_SLOT(scrollRate()));
+ iScrollItem = popup->insertItem(i18n( "Scroll Constantly" ), this, TQT_SLOT(scrollConstantly()));
popup->setItemChecked(iScrollItem, bScrollConstantly);
popup->insertSeparator();
- popup->insertItem(i18n( "Return to Normal Mode" ), this, SIGNAL(doubleClick()));
+ popup->insertItem(i18n( "Return to Normal Mode" ), this, TQT_SIGNAL(doubleClick()));
currentStr = "";
@@ -101,12 +101,12 @@ void KSTicker::show()
*/
// ### FIXME: port to kwin
//KWM::setDecoration(winId(), KWM::tinyDecoration);
- QSize size = this->size();
- size.setHeight(QFontMetrics(font()).height()+10);
- setFixedHeight(QFontMetrics(font()).height()+10);
+ TQSize size = this->size();
+ size.setHeight(TQFontMetrics(font()).height()+10);
+ setFixedHeight(TQFontMetrics(font()).height()+10);
resize(size);
- QFrame::show();
+ TQFrame::show();
if(currentStr.length() != 0)
startTicker();
currentChar = 0;
@@ -116,16 +116,16 @@ void KSTicker::show()
void KSTicker::hide()
{
killTimers();
- QFrame::hide();
+ TQFrame::hide();
}
void KSTicker::iconify()
{
- QFrame::showMinimized();
+ TQFrame::showMinimized();
killTimers();
}
-void KSTicker::setString(QString str)
+void KSTicker::setString(TQString str)
{
strlist.clear();
strlist.append(str);
@@ -133,24 +133,24 @@ void KSTicker::setString(QString str)
startTicker();
}
-void KSTicker::mergeString(QString str, QColor c)
+void KSTicker::mergeString(TQString str, TQColor c)
{
int num = KSPainter::colour2num(c);
if(num != -1){
- str.prepend(QString("~%1").arg(num));
+ str.prepend(TQString("~%1").arg(num));
}
mergeString(str);
}
-void KSTicker::mergeString(QString str)
+void KSTicker::mergeString(TQString str)
{
- QRegExp rx("~n(\\S+)~n");
+ TQRegExp rx("~n(\\S+)~n");
if(rx.search(str) >= 0){
int value = nickColourMaker::colourMaker()->findIdx(rx.cap(1));
if(value >= 0){
- QString newText = QString("~%1\\1~c").arg(value);
+ TQString newText = TQString("~%1\\1~c").arg(value);
str.replace(rx, newText);
}
}
@@ -160,7 +160,7 @@ void KSTicker::mergeString(QString str)
if(strlist.count() > 5){
int found = 0;
- QStringList::Iterator it = strlist.begin();
+ TQStringList::Iterator it = strlist.begin();
for(; it != strlist.end(); it++){
if(((*it).find(ksopts->server["global"].nick, 0, FALSE) == -1) &&
((*it).find(ksopts->server["global"].altNick, 0, FALSE) == -1)){
@@ -179,10 +179,10 @@ void KSTicker::mergeString(QString str)
if(bScrollConstantly == FALSE)
startTicker();
- QStringList sep = QStringList::split(" ", stripCols(str));
+ TQStringList sep = TQStringList::split(" ", stripCols(str));
int len = 0;
- QString brok;
- QStringList::Iterator it = sep.begin();
+ TQString brok;
+ TQStringList::Iterator it = sep.begin();
for(; it != sep.end(); ++it) {
brok += *it + " ";
len += (*it).length();
@@ -197,15 +197,15 @@ void KSTicker::mergeString(QString str)
tipbuffer.append(brok);
while(tipbuffer.count() > 10)
tipbuffer.pop_front();
- QString tip = tipbuffer.join("\n");
+ TQString tip = tipbuffer.join("\n");
-// QToolTip::remove(this);
- QToolTip::add(this, tip);
+// TQToolTip::remove(this);
+ TQToolTip::add(this, tip);
}
-void KSTicker::timerEvent(QTimerEvent *)
+void KSTicker::timerEvent(TQTimerEvent *)
{
if((uint)currentChar >= currentStr.length()){
if(strlist.isEmpty()){
@@ -234,7 +234,7 @@ void KSTicker::timerEvent(QTimerEvent *)
static BGMode bgmode = TransparentMode;
bitBlt(pic, -tickStep, 0, pic);
- QPainter p(pic);
+ TQPainter p(pic);
cOffset += tickStep;
if(cOffset >= onechar){
@@ -243,8 +243,8 @@ void KSTicker::timerEvent(QTimerEvent *)
while(((currentStr[currentChar] == '~') || (currentStr[currentChar] == 0x03))
&& (step > 0)){
step = 1; // reset in case it's our second, or more loop.
- QString text = currentStr.mid(currentChar);
- QString buf = "";
+ TQString text = currentStr.mid(currentChar);
+ TQString buf = "";
if((text[step] >= '0') &&
(text[step] <= '9')) {
@@ -344,7 +344,7 @@ void KSTicker::timerEvent(QTimerEvent *)
}
- QFont fnt = font();
+ TQFont fnt = font();
fnt.setBold(bold);
fnt.setUnderline(underline);
fnt.setItalic(italics);
@@ -364,20 +364,20 @@ void KSTicker::timerEvent(QTimerEvent *)
bitBlt(this, 0, descent, pic);
}
-void KSTicker::paintEvent( QPaintEvent *)
+void KSTicker::paintEvent( TQPaintEvent *)
{
if(isVisible() == FALSE)
return;
bitBlt(this, 0, descent, pic);
}
-void KSTicker::resizeEvent( QResizeEvent *e)
+void KSTicker::resizeEvent( TQResizeEvent *e)
{
- QFrame::resizeEvent(e);
+ TQFrame::resizeEvent(e);
onechar = fontMetrics().width("X");
chars = this->width() / onechar;
killTimers();
- QPixmap *new_pic = new QPixmap(width() + onechar, height());
+ TQPixmap *new_pic = new TQPixmap(width() + onechar, height());
new_pic->fill(backgroundColor());
bitBlt(new_pic,
new_pic->width() - pic->width(), 0,
@@ -390,7 +390,7 @@ void KSTicker::resizeEvent( QResizeEvent *e)
startTicker();
}
-void KSTicker::closeEvent( QCloseEvent *)
+void KSTicker::closeEvent( TQCloseEvent *)
{
emit closing();
killTimers();
@@ -408,18 +408,18 @@ void KSTicker::stopTicker()
killTimers();
}
-void KSTicker::mouseDoubleClickEvent( QMouseEvent * )
+void KSTicker::mouseDoubleClickEvent( TQMouseEvent * )
{
emit doubleClick();
}
-void KSTicker::mousePressEvent( QMouseEvent *e)
+void KSTicker::mousePressEvent( TQMouseEvent *e)
{
if(e->button() == RightButton){
popup->popup(this->cursor().pos());
}
else{
- QFrame::mousePressEvent(e);
+ TQFrame::mousePressEvent(e);
}
}
void KSTicker::fontSelector()
@@ -434,8 +434,8 @@ void KSTicker::scrollRate()
{
SpeedDialog *sd = new SpeedDialog(tickRate, tickStep);
sd->setLimit(5, 200, 1, onechar);
- connect(sd, SIGNAL(stateChange(int, int)),
- this, SLOT(setSpeed(int, int)));
+ connect(sd, TQT_SIGNAL(stateChange(int, int)),
+ this, TQT_SLOT(setSpeed(int, int)));
sd->show();
}
@@ -451,7 +451,7 @@ void KSTicker::scrollConstantly()
conf->sync();
}
-void KSTicker::updateFont(const QFont &font){
+void KSTicker::updateFont(const TQFont &font){
setFont(font);
setFixedHeight((fontMetrics().height()+fontMetrics().descent()*2)*pHeight);
resize(fontMetrics().width("X")*chars,
@@ -474,18 +474,18 @@ void KSTicker::speed(int *_tickRate, int *_tickStep){
*_tickStep = tickStep;
}
-void KSTicker::setBackgroundColor ( const QColor &c )
+void KSTicker::setBackgroundColor ( const TQColor &c )
{
- QFrame::setBackgroundColor(c);
+ TQFrame::setBackgroundColor(c);
pic->fill(c);
bitBlt(this, 0,0, pic);
defbg = backgroundColor();
bg = backgroundColor();
}
-void KSTicker::setPalette ( const QPalette & p )
+void KSTicker::setPalette ( const TQPalette & p )
{
- QFrame::setPalette(p);
+ TQFrame::setPalette(p);
pic->fill(backgroundColor());
bitBlt(this, 0,0, pic);
@@ -495,10 +495,10 @@ void KSTicker::setPalette ( const QPalette & p )
fg = foregroundColor();
}
-QString KSTicker::stripCols( QString str )
+TQString KSTicker::stripCols( TQString str )
{
uint i = 0;
- QString ret;
+ TQString ret;
for(i = 0; i < str.length(); i++){
if(((str[i] == '~') || (str[i] == 0x03))){
if((str[i+1] >= '0') &&
diff --git a/ksirc/KSTicker/ksticker.h b/ksirc/KSTicker/ksticker.h
index d11d8a0f..47beecac 100644
--- a/ksirc/KSTicker/ksticker.h
+++ b/ksirc/KSTicker/ksticker.h
@@ -1,11 +1,11 @@
#ifndef KSTICKER_H
#define KSTICKER_H
-#include <qobject.h>
-#include <qframe.h>
-#include <qstring.h>
-#include <qptrlist.h>
-#include <qpopupmenu.h>
+#include <tqobject.h>
+#include <tqframe.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
+#include <tqpopupmenu.h>
class SInfo {
public:
@@ -17,20 +17,20 @@ class KSTicker : public QFrame
Q_OBJECT
public:
- KSTicker(QWidget * parent=0, const char * name=0, WFlags f=0);
+ KSTicker(TQWidget * parent=0, const char * name=0, WFlags f=0);
virtual ~KSTicker();
- void setString(QString);
- void mergeString(QString);
- void mergeString(QString, QColor);
+ void setString(TQString);
+ void mergeString(TQString);
+ void mergeString(TQString, TQColor);
virtual void show();
virtual void hide();
void speed(int *, int *);
- virtual void setBackgroundColor ( const QColor & );
- virtual void setPalette ( const QPalette & p );
+ virtual void setBackgroundColor ( const TQColor & );
+ virtual void setPalette ( const TQPalette & p );
signals:
void doubleClick();
@@ -42,29 +42,29 @@ public slots:
protected slots:
virtual void fontSelector();
virtual void scrollRate();
- virtual void updateFont(const QFont &font);
+ virtual void updateFont(const TQFont &font);
virtual void scrollConstantly();
protected:
- virtual void timerEvent ( QTimerEvent * );
- virtual void paintEvent ( QPaintEvent * );
- virtual void resizeEvent( QResizeEvent * );
- virtual void closeEvent( QCloseEvent * );
- virtual void mouseDoubleClickEvent( QMouseEvent * );
- virtual void mousePressEvent ( QMouseEvent * );
+ virtual void timerEvent ( TQTimerEvent * );
+ virtual void paintEvent ( TQPaintEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
+ virtual void closeEvent( TQCloseEvent * );
+ virtual void mouseDoubleClickEvent( TQMouseEvent * );
+ virtual void mousePressEvent ( TQMouseEvent * );
virtual void iconify();
private:
- QString stripCols(QString);
+ TQString stripCols(TQString);
- QStringList strlist; /* everything left to parse */
- QStringList strbuffer; /* fifo of the last 10 lines to scroll in scroll constantly mode */
- QStringList tipbuffer; /* 5 lines for the tooltip */
- QString currentStr; /* the string we are currently parsing */
+ TQStringList strlist; /* everything left to parse */
+ TQStringList strbuffer; /* fifo of the last 10 lines to scroll in scroll constantly mode */
+ TQStringList tipbuffer; /* 5 lines for the tooltip */
+ TQString currentStr; /* the string we are currently parsing */
- QFont ourFont;
+ TQFont ourFont;
int onechar;
int chars;
@@ -86,9 +86,9 @@ private:
int iScrollItem;
bool bAtEnd;
- QPixmap *pic;
+ TQPixmap *pic;
- QPopupMenu *popup;
+ TQPopupMenu *popup;
/*
* Drawing settings and variables
@@ -96,10 +96,10 @@ private:
bool bold;
bool underline;
bool italics;
- QColor defbg;
- QColor deffg;
- QColor bg;
- QColor fg;
+ TQColor defbg;
+ TQColor deffg;
+ TQColor bg;
+ TQColor fg;
};
#endif // KSTICKER_H
diff --git a/ksirc/KSTicker/ksttest.cpp b/ksirc/KSTicker/ksttest.cpp
index 81373bd8..36ad249a 100644
--- a/ksirc/KSTicker/ksttest.cpp
+++ b/ksirc/KSTicker/ksttest.cpp
@@ -1,8 +1,8 @@
#include <kapplication.h>
#include <kconfig.h>
-#include <qapplication.h>
-#include <qsocketnotifier.h>
-#include <qregexp.h>
+#include <tqapplication.h>
+#include <tqsocketnotifier.h>
+#include <tqregexp.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <klocale.h>
@@ -19,7 +19,7 @@ StdInTicker::StdInTicker()
: KSTicker()
{
kConfig->setGroup("defaults");
- QFont font;
+ TQFont font;
font = kConfig->readFontEntry("font");
font.setFixedPitch(TRUE);
setFont(font);
@@ -45,8 +45,8 @@ void StdInTicker::readsocket(int socket)
char buf[1024];
int bytes = read(socket, buf, 1024);
if(bytes){
- QCString str(buf, bytes);
- str.replace(QRegExp("\n"), " // ");
+ TQCString str(buf, bytes);
+ str.replace(TQRegExp("\n"), " // ");
mergeString(str);
}
}
@@ -56,7 +56,7 @@ void StdInTicker::end()
delete this;
}
-void StdInTicker::closeEvent ( QCloseEvent *e )
+void StdInTicker::closeEvent ( TQCloseEvent *e )
{
KSTicker::closeEvent(e);
delete this;
@@ -79,11 +79,11 @@ int main(int argc, char **argv){
opts.load();
StdInTicker *kst = new StdInTicker();
- QSocketNotifier *sn = new QSocketNotifier(0, QSocketNotifier::Read);
- QObject::connect(sn, SIGNAL(activated(int)),
- kst, SLOT(readsocket(int)));
- QObject::connect(kst, SIGNAL(doubleClick()), kst, SLOT(end()));
- QObject::connect(kst, SIGNAL(closing()), kst, SLOT(end()));
+ TQSocketNotifier *sn = new TQSocketNotifier(0, TQSocketNotifier::Read);
+ TQObject::connect(sn, TQT_SIGNAL(activated(int)),
+ kst, TQT_SLOT(readsocket(int)));
+ TQObject::connect(kst, TQT_SIGNAL(doubleClick()), kst, TQT_SLOT(end()));
+ TQObject::connect(kst, TQT_SIGNAL(closing()), kst, TQT_SLOT(end()));
a.setMainWidget(kst);
kst->show();
return a.exec();
diff --git a/ksirc/KSTicker/ksttest.h b/ksirc/KSTicker/ksttest.h
index 9d166b66..d3e988ff 100644
--- a/ksirc/KSTicker/ksttest.h
+++ b/ksirc/KSTicker/ksttest.h
@@ -12,7 +12,7 @@ public:
~StdInTicker();
protected:
- void closeEvent ( QCloseEvent * );
+ void closeEvent ( TQCloseEvent * );
public slots:
void readsocket(int socket);
diff --git a/ksirc/KSTicker/speeddialog.cpp b/ksirc/KSTicker/speeddialog.cpp
index eb1ff462..50cb8d80 100644
--- a/ksirc/KSTicker/speeddialog.cpp
+++ b/ksirc/KSTicker/speeddialog.cpp
@@ -15,16 +15,16 @@ SpeedDialog::SpeedDialog
(
int tick,
int step,
- QWidget* parent,
+ TQWidget* parent,
const char* name
)
: speeddialogData( parent, name )
{
setCaption(i18n( "Speed Setup") );
- connect(sliderTick, SIGNAL(valueChanged(int)),
- lcdTick, SLOT(display(int)));
- connect(sliderStep, SIGNAL(valueChanged(int)),
- lcdStep, SLOT(display(int)));
+ connect(sliderTick, TQT_SIGNAL(valueChanged(int)),
+ lcdTick, TQT_SLOT(display(int)));
+ connect(sliderStep, TQT_SIGNAL(valueChanged(int)),
+ lcdStep, TQT_SLOT(display(int)));
lcdTick->display(tick);
sliderTick->setValue(tick);
lcdStep->display(step);
diff --git a/ksirc/KSTicker/speeddialog.h b/ksirc/KSTicker/speeddialog.h
index 4efdb2a8..514c72ee 100644
--- a/ksirc/KSTicker/speeddialog.h
+++ b/ksirc/KSTicker/speeddialog.h
@@ -22,7 +22,7 @@ public:
(
int tick,
int step,
- QWidget* parent = NULL,
+ TQWidget* parent = NULL,
const char* name = NULL
);
diff --git a/ksirc/KSTicker/speeddialogData.cpp b/ksirc/KSTicker/speeddialogData.cpp
index 0dbb1c0b..822d6f7f 100644
--- a/ksirc/KSTicker/speeddialogData.cpp
+++ b/ksirc/KSTicker/speeddialogData.cpp
@@ -12,76 +12,76 @@
#include "speeddialogData.h"
-#include <qlabel.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kpushbutton.h>
#include <kstdguiitem.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kdialog.h>
-speeddialogData::speeddialogData ( QWidget* parent, const char* name )
- :QDialog( parent, name, 0 )
+speeddialogData::speeddialogData ( TQWidget* parent, const char* name )
+ :TQDialog( parent, name, 0 )
{
- QGridLayout *grid = new QGridLayout( this, 3, 2 , KDialog::marginHint(), KDialog::spacingHint());
- sliderTick = new QSlider( this, "Slider_1" );
+ TQGridLayout *grid = new TQGridLayout( this, 3, 2 , KDialog::marginHint(), KDialog::spacingHint());
+ sliderTick = new TQSlider( this, "Slider_1" );
grid->addWidget( sliderTick, 0, 1 );
- connect( sliderTick, SIGNAL(valueChanged(int)), SLOT(updateTick(int)) );
- sliderTick->setOrientation( QSlider::Horizontal );
+ connect( sliderTick, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateTick(int)) );
+ sliderTick->setOrientation( TQSlider::Horizontal );
sliderTick->setRange( 10, 200 );
sliderTick->setSteps( 10, 50 );
sliderTick->setValue( 30 );
sliderTick->setTracking( TRUE );
- sliderTick->setTickmarks( QSlider::NoMarks );
+ sliderTick->setTickmarks( TQSlider::NoMarks );
sliderTick->setTickInterval( 0 );
- sliderStep = new QSlider( this, "Slider_2" );
+ sliderStep = new TQSlider( this, "Slider_2" );
grid->addWidget( sliderStep, 1, 1 );
- connect( sliderStep, SIGNAL(valueChanged(int)), SLOT(updateStep(int)) );
- sliderStep->setOrientation( QSlider::Horizontal );
+ connect( sliderStep, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateStep(int)) );
+ sliderStep->setOrientation( TQSlider::Horizontal );
sliderStep->setRange( 1, 10 );
sliderStep->setSteps( 1, 2 );
sliderStep->setValue( 3 );
sliderStep->setTracking( TRUE );
- sliderStep->setTickmarks( QSlider::NoMarks );
+ sliderStep->setTickmarks( TQSlider::NoMarks );
sliderStep->setTickInterval( 0 );
- lcdTick = new QLCDNumber( this, "LCDNumber_1" );
+ lcdTick = new TQLCDNumber( this, "LCDNumber_1" );
lcdTick->setFrameStyle( 33 );
lcdTick->setSmallDecimalPoint( FALSE );
lcdTick->setNumDigits( 3 );
- lcdTick->setMode( QLCDNumber::DEC );
- lcdTick->setSegmentStyle( QLCDNumber::Outline );
+ lcdTick->setMode( TQLCDNumber::DEC );
+ lcdTick->setSegmentStyle( TQLCDNumber::Outline );
grid->addWidget( lcdTick, 0, 2 );
- lcdStep = new QLCDNumber( this, "LCDNumber_2" );
+ lcdStep = new TQLCDNumber( this, "LCDNumber_2" );
lcdStep->setFrameStyle( 33 );
lcdStep->setSmallDecimalPoint( FALSE );
lcdStep->setNumDigits( 3 );
- lcdStep->setMode( QLCDNumber::DEC );
- lcdStep->setSegmentStyle( QLCDNumber::Outline );
+ lcdStep->setMode( TQLCDNumber::DEC );
+ lcdStep->setSegmentStyle( TQLCDNumber::Outline );
grid->addWidget( lcdStep, 1, 2 );
- QLabel* dlgedit_Label_1;
- dlgedit_Label_1 = new QLabel( this, "Label_1" );
+ TQLabel* dlgedit_Label_1;
+ dlgedit_Label_1 = new TQLabel( this, "Label_1" );
dlgedit_Label_1->setText( i18n("Tick interval:") );
dlgedit_Label_1->setAlignment( 289 );
dlgedit_Label_1->setMargin( -1 );
grid->addWidget( dlgedit_Label_1, 0, 0 );
- QLabel* dlgedit_Label_2;
- dlgedit_Label_2 = new QLabel( this, "Label_2" );
+ TQLabel* dlgedit_Label_2;
+ dlgedit_Label_2 = new TQLabel( this, "Label_2" );
dlgedit_Label_2->setText( i18n("Step size:") );
dlgedit_Label_2->setAlignment( 289 );
dlgedit_Label_2->setMargin( -1 );
grid->addWidget( dlgedit_Label_2, 1, 0 );
- QPushButton* dlgedit_PushButton_2;
+ TQPushButton* dlgedit_PushButton_2;
dlgedit_PushButton_2 = new KPushButton( KStdGuiItem::close(), this, "PushButton_2" );
- connect( dlgedit_PushButton_2, SIGNAL(pressed()), SLOT(terminate()) );
+ connect( dlgedit_PushButton_2, TQT_SIGNAL(pressed()), TQT_SLOT(terminate()) );
// dlgedit_PushButton_2->setAutoRepeat( FALSE );
// dlgedit_PushButton_2->setAutoResize( FALSE );
grid->addWidget( dlgedit_PushButton_2, 2, 2 );
diff --git a/ksirc/KSTicker/speeddialogData.h b/ksirc/KSTicker/speeddialogData.h
index 6e9f06f9..27b6c27a 100644
--- a/ksirc/KSTicker/speeddialogData.h
+++ b/ksirc/KSTicker/speeddialogData.h
@@ -13,9 +13,9 @@
#ifndef speeddialogData_included
#define speeddialogData_included
-#include <qdialog.h>
-#include <qslider.h>
-#include <qlcdnumber.h>
+#include <tqdialog.h>
+#include <tqslider.h>
+#include <tqlcdnumber.h>
class speeddialogData : public QDialog
{
@@ -25,7 +25,7 @@ public:
speeddialogData
(
- QWidget* parent = NULL,
+ TQWidget* parent = NULL,
const char* name = NULL
);
@@ -41,10 +41,10 @@ protected slots:
virtual void updateStep(int);
protected:
- QSlider* sliderTick;
- QSlider* sliderStep;
- QLCDNumber* lcdTick;
- QLCDNumber* lcdStep;
+ TQSlider* sliderTick;
+ TQSlider* sliderStep;
+ TQLCDNumber* lcdTick;
+ TQLCDNumber* lcdStep;
};