summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/nexscope/nex.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /noatun-plugins/nexscope/nex.cpp
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/nexscope/nex.cpp')
-rw-r--r--noatun-plugins/nexscope/nex.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/noatun-plugins/nexscope/nex.cpp b/noatun-plugins/nexscope/nex.cpp
index af19409..c152c95 100644
--- a/noatun-plugins/nexscope/nex.cpp
+++ b/noatun-plugins/nexscope/nex.cpp
@@ -8,16 +8,16 @@
#include <kcmdlineargs.h>
#include <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qmultilineedit.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqmultilineedit.h>
#include "renderers.h"
Mutex runLock;
Nex *Nex::sNex=0;
-QTime timer;
+TQTime timer;
Renderer::Renderer() {}
Renderer::~Renderer() {}
@@ -56,13 +56,13 @@ int Thread::threadRun(void *v)
return t->run();
}
-NexCheckBox::NexCheckBox(QWidget *parent,
- const QString &name, bool *v)
- : QCheckBox(name, parent)
+NexCheckBox::NexCheckBox(TQWidget *parent,
+ const TQString &name, bool *v)
+ : TQCheckBox(name, parent)
{
value=v;
setChecked(*v);
- connect(this, SIGNAL(toggled(bool)), SLOT(change(bool)));
+ connect(this, TQT_SIGNAL(toggled(bool)), TQT_SLOT(change(bool)));
}
void NexCheckBox::change(bool b)
{
@@ -71,16 +71,16 @@ void NexCheckBox::change(bool b)
-NexColorButton::NexColorButton(QWidget *parent, Pixel *color)
+NexColorButton::NexColorButton(TQWidget *parent, Pixel *color)
: KColorButton(parent)
{
c=color;
- QColor temp( (*c >> 16) & 0xFF, (*c >> 8) & 0xFF, *c & 0xFF);
+ TQColor temp( (*c >> 16) & 0xFF, (*c >> 8) & 0xFF, *c & 0xFF);
setColor(temp);
- connect(this, SIGNAL(changed(const QColor&)), SLOT(change(const QColor&)));
+ connect(this, TQT_SIGNAL(changed(const TQColor&)), TQT_SLOT(change(const TQColor&)));
}
-void NexColorButton::change(const QColor &co)
+void NexColorButton::change(const TQColor &co)
{
*c= COLOR(qRed(co.rgb()), qGreen(co.rgb()), qBlue(co.rgb()));
}
@@ -313,7 +313,7 @@ Bitmap *RendererList::render(float *pcm[4], Bitmap *source)
if (mClearAfter) mFrame->clear();
lock();
- for (QPtrListIterator<Renderer> i(mRendererList); i.current(); ++i)
+ for (TQPtrListIterator<Renderer> i(mRendererList); i.current(); ++i)
{
Bitmap *newframe=(*i)->render(pcm, mFrame);
@@ -359,14 +359,14 @@ Bitmap *RendererList::render(float *pcm[4], Bitmap *source)
return source;
}
-void RendererList::save(QDomElement &e)
+void RendererList::save(TQDomElement &e)
{
lock();
e.setTagName("List");
- for (QPtrListIterator<Renderer> i(mRendererList); *i; ++i)
+ for (TQPtrListIterator<Renderer> i(mRendererList); *i; ++i)
{
- QDomElement item;
+ TQDomElement item;
(*i)->save(item);
e.appendChild(item);
}
@@ -374,14 +374,14 @@ void RendererList::save(QDomElement &e)
unlock();
}
-void RendererList::load(const QDomElement &e)
+void RendererList::load(const TQDomElement &e)
{
lock();
- for (QDomNode n=e.firstChild(); !n.isNull(); n=n.nextSibling())
+ for (TQDomNode n=e.firstChild(); !n.isNull(); n=n.nextSibling())
{
if (!n.isElement()) continue;
- QDomElement child=n.toElement();
+ TQDomElement child=n.toElement();
Renderer *r=0;
@@ -401,31 +401,31 @@ void RendererList::load(const QDomElement &e)
-QWidget *RendererList::configure(QWidget *parent)
+TQWidget *RendererList::configure(TQWidget *parent)
{
return new RendererListConfigurator(this, parent);
}
-RendererListConfigurator::RendererListConfigurator(RendererList *l, QWidget *parent)
- : QWidget(parent), mList(l)
+RendererListConfigurator::RendererListConfigurator(RendererList *l, TQWidget *parent)
+ : TQWidget(parent), mList(l)
{
- (new QVBoxLayout(this))->setAutoAdd(true);
- mErase=new QCheckBox(i18n("&Erase between frames"), this);
- connect(mErase, SIGNAL(toggled(bool)), SLOT(eraseOn(bool)));
+ (new TQVBoxLayout(this))->setAutoAdd(true);
+ mErase=new TQCheckBox(i18n("&Erase between frames"), this);
+ connect(mErase, TQT_SIGNAL(toggled(bool)), TQT_SLOT(eraseOn(bool)));
mErase->setChecked(mList->mClearAfter);
if (nex->rendererList()==l)
{
- QCheckBox *mConvolve=new QCheckBox(i18n("&Convolve audio"), this);
- connect(mConvolve, SIGNAL(toggled(bool)), SLOT(convolve(bool)));
+ TQCheckBox *mConvolve=new TQCheckBox(i18n("&Convolve audio"), this);
+ connect(mConvolve, TQT_SIGNAL(toggled(bool)), TQT_SLOT(convolve(bool)));
mConvolve->setChecked(nex->input()->convolve());
}
- new QLabel(i18n("Comments"), this);
+ new TQLabel(i18n("Comments"), this);
- mComments=new QMultiLineEdit(this);
+ mComments=new TQMultiLineEdit(this);
mComments->setText(l->mComments);
- mComments->setWordWrap(QMultiLineEdit::WidgetWidth);
+ mComments->setWordWrap(TQMultiLineEdit::WidgetWidth);
}
RendererListConfigurator::~RendererListConfigurator()
@@ -488,7 +488,7 @@ void Nex::go()
frame=mBitmapPool->get(true);
int frames=0;
- QTime start(QTime::currentTime());
+ TQTime start(TQTime::currentTime());
while (1)
{
@@ -506,7 +506,7 @@ void Nex::go()
std::cerr << "Deleted" << std::endl;
std::cout << "Frames per Second: "
- << frames/start.secsTo(QTime::currentTime()) << std::endl;
+ << frames/start.secsTo(TQTime::currentTime()) << std::endl;
return;
case OutputSDL::Resize:
// setupSize(width, height);
@@ -520,7 +520,7 @@ void Nex::go()
}
-Renderer *Nex::renderer(const QString &name)
+Renderer *Nex::renderer(const TQString &name)
{
CreatorSig **sig=mCreators[name];
if (sig)
@@ -529,10 +529,10 @@ Renderer *Nex::renderer(const QString &name)
return 0;
}
-QStringList Nex::renderers() const
+TQStringList Nex::renderers() const
{
- QDictIterator<CreatorSig*> i(mCreators);
- QStringList list;
+ TQDictIterator<CreatorSig*> i(mCreators);
+ TQStringList list;
for (;i.current(); ++i)
list += i.currentKey();