diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /arts/tools/midimanagerview.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/tools/midimanagerview.cpp')
-rw-r--r-- | arts/tools/midimanagerview.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/arts/tools/midimanagerview.cpp b/arts/tools/midimanagerview.cpp index 6b40aad4..4849af78 100644 --- a/arts/tools/midimanagerview.cpp +++ b/arts/tools/midimanagerview.cpp @@ -27,10 +27,10 @@ #define protected public #include "midimanagerwidget.h" #undef protected -#include <qpushbutton.h> -#include <qlistbox.h> -#include <qlayout.h> -#include <qpainter.h> +#include <tqpushbutton.h> +#include <tqlistbox.h> +#include <tqlayout.h> +#include <tqpainter.h> #include <stdio.h> #include <kaction.h> #include <klocale.h> @@ -62,28 +62,28 @@ Arts::Environment::Container defaultEnvironment() return d; } -class MidiManagerItem : public QListBoxText { +class MidiManagerItem : public TQListBoxText { public: MidiClientInfo info; MidiManagerItem(const MidiClientInfo &info) :info(info) { } - QString text () const { - return QString::fromUtf8(info.title.c_str()); + TQString text () const { + return TQString::fromUtf8(info.title.c_str()); } }; -class ConnectionWidget : public QWidget { +class ConnectionWidget : public TQWidget { public: MidiManagerView *v; - ConnectionWidget(MidiManagerView *v, QWidget *parent) : QWidget(parent), v(v) + ConnectionWidget(MidiManagerView *v, TQWidget *parent) : TQWidget(parent), v(v) { } - void paintEvent(QPaintEvent * /*event*/) + void paintEvent(TQPaintEvent * /*event*/) { - QPainter painter; + TQPainter painter; painter.begin(this); // painter.fillRect(event->rect(),white); @@ -96,8 +96,8 @@ public: conn != item->info.connections.end(); conn++) { MidiManagerItem *outitem = v->itemMap[*conn]; - QRect r1 = v->widget->inputsListBox->itemRect(item); - QRect r2 = v->widget->outputsListBox->itemRect(outitem); + TQRect r1 = v->widget->inputsListBox->itemRect(item); + TQRect r2 = v->widget->outputsListBox->itemRect(outitem); if(r1.height() > 0 && r2.height() > 0) { @@ -113,23 +113,23 @@ public: MidiManagerView::MidiManagerView() : manager(Reference("global:Arts_MidiManager")) { - QTimer *updatetimer = new QTimer(this); + TQTimer *updatetimer = new TQTimer(this); updatetimer->start(5000); - connect(updatetimer,SIGNAL(timeout()),this,SLOT(updateLists())); + connect(updatetimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(updateLists())); widget = new MidiManagerWidget(this); setCentralWidget(widget); setCaption(i18n("MIDI Manager")); setIcon( MainBarIcon( "artsfftscope", 32 ) ); - (void)new KAction(i18n("&System MIDI Port (OSS)"), 0, this, SLOT(addOSSMidiPort()), + (void)new KAction(i18n("&System MIDI Port (OSS)"), 0, this, TQT_SLOT(addOSSMidiPort()), actionCollection(), "add_oss_midi_port"); (void)new KAction(i18n("&aRts Synthesis MIDI Output"), 0, this, - SLOT(addArtsMidiOutput()), actionCollection(), "add_arts_midi_output"); + TQT_SLOT(addArtsMidiOutput()), actionCollection(), "add_arts_midi_output"); - (void) KStdAction::quit( this, SLOT(close()), actionCollection()); - connect(widget->connectButton,SIGNAL(clicked()), this, SLOT(slotConnect())); - connect(widget->disconnectButton,SIGNAL(clicked()), this, SLOT(slotDisconnect())); + (void) KStdAction::quit( this, TQT_SLOT(close()), actionCollection()); + connect(widget->connectButton,TQT_SIGNAL(clicked()), this, TQT_SLOT(slotConnect())); + connect(widget->disconnectButton,TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDisconnect())); connectionWidget = new ConnectionWidget(this, widget->connectionFrame); connectionWidget->setMinimumSize(60,10); @@ -142,7 +142,7 @@ MidiManagerView::MidiManagerView() setIcon( MainBarIcon( "artsfftscope", 32 ) ); } -void MidiManagerView::closeEvent(QCloseEvent *e) +void MidiManagerView::closeEvent(TQCloseEvent *e) { e->accept(); emit closed(); @@ -168,7 +168,7 @@ void MidiManagerView::updateLists() widget->outputsListBox->clear(); for(i = clients->begin(); i != clients->end(); i++) { - QListBox *box; + TQListBox *box; if(i->direction == mcdPlay) box = widget->inputsListBox; else |