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/audiomanager.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/audiomanager.cpp')
-rw-r--r-- | arts/tools/audiomanager.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/arts/tools/audiomanager.cpp b/arts/tools/audiomanager.cpp index 1216e192..3e3789ae 100644 --- a/arts/tools/audiomanager.cpp +++ b/arts/tools/audiomanager.cpp @@ -24,8 +24,8 @@ #include "audiomanager.h" #include "choosebusdlg.h" -#include <qtimer.h> -#include <qlayout.h> +#include <tqtimer.h> +#include <tqlayout.h> #include <klocale.h> #include <klistview.h> @@ -37,7 +37,7 @@ using namespace std; * as this is an 1:1 port of an old arts-0.3.4.1 artsbuilable visual widget, * you'll see some porting artefacts, and it's not elegance itself ;) */ -Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( QWidget* parent, const char* name ) : Template_ArtsView( parent,name ) +Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( TQWidget* parent, const char* name ) : Template_ArtsView( parent,name ) { this->setCaption( i18n( "Audio Manager" ) ); this->setIcon( MainBarIcon( "artsaudiomanager", 32 ) ); @@ -53,9 +53,9 @@ Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( QWidget* parent, const char* name ) : Temp tick(); show(); - QTimer *updatetimer = new QTimer(this); + TQTimer *updatetimer = new TQTimer(this); updatetimer->start(500); - QObject::connect(updatetimer,SIGNAL(timeout()),this,SLOT(tick())); + TQObject::connect(updatetimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(tick())); } Gui_AUDIO_MANAGER::~Gui_AUDIO_MANAGER() @@ -65,14 +65,14 @@ Gui_AUDIO_MANAGER::~Gui_AUDIO_MANAGER() } #if 0 -void Gui_AUDIO_MANAGER::widgetDestroyed(QWidget *widget) +void Gui_AUDIO_MANAGER::widgetDestroyed(TQWidget *widget) { assert(widget == listview); listview = 0; } #endif -void Gui_AUDIO_MANAGER::setParent(QWidget *parent, QBoxLayout * /*layout*/) +void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*layout*/) { /************************************************************************ * From Gui_INSTRUMENT_MAPPER: @@ -90,8 +90,8 @@ void Gui_AUDIO_MANAGER::setParent(QWidget *parent, QBoxLayout * /*layout*/) * else would be appropriate. Check that. FIXME ************************************************************************/ - QVBoxLayout *mainlayout = new QVBoxLayout(parent); - /*QHBoxLayout *contentslayout = new QHBoxLayout;*/ + TQVBoxLayout *mainlayout = new TQVBoxLayout(parent); + /*TQHBoxLayout *contentslayout = new QHBoxLayout;*/ // list @@ -103,8 +103,8 @@ void Gui_AUDIO_MANAGER::setParent(QWidget *parent, QBoxLayout * /*layout*/) listview->setMinimumSize(300,100); - QObject::connect(listview,SIGNAL(executed(QListViewItem *)),proxy, - SLOT(edit(QListViewItem *))); + TQObject::connect(listview,TQT_SIGNAL(executed(TQListViewItem *)),proxy, + TQT_SLOT(edit(TQListViewItem *))); mainlayout->addWidget(listview); @@ -128,13 +128,13 @@ void Gui_AUDIO_MANAGER::tick() for(c=0;c<acs->size();c++) { //char status[2][10] = {"init","running"}; - QString description = QString::fromUtf8( (*acs)[c].title.c_str() ); - QString type; + TQString description = TQString::fromUtf8( (*acs)[c].title.c_str() ); + TQString type; if((*acs)[c].direction == Arts::amPlay) type = i18n("play"); else type = i18n("record"); - QString destination = QString::fromUtf8( (*acs)[c].destination.c_str() ); + TQString destination = TQString::fromUtf8( (*acs)[c].destination.c_str() ); long ID = (*acs)[c].ID; (void)new AudioManagerItem(listview, description, type, destination, ID); @@ -143,7 +143,7 @@ void Gui_AUDIO_MANAGER::tick() //Widget->show(); } -void Gui_AUDIO_MANAGER::edit(QListViewItem *item) +void Gui_AUDIO_MANAGER::edit(TQListViewItem *item) { AudioManagerItem *ai = (AudioManagerItem *)item; ChooseBusDlg *cd = new ChooseBusDlg(0); @@ -153,9 +153,9 @@ void Gui_AUDIO_MANAGER::edit(QListViewItem *item) int accept = cd->exec(); inDialog = false; - if( accept == QDialog::Accepted ) + if( accept == TQDialog::Accepted ) { - QString result = cd->result(); + TQString result = cd->result(); if(!result.isNull()) { //lukas: I hope UTF-8 is OK here... @@ -173,13 +173,13 @@ GuiAudioManagerProxy::GuiAudioManagerProxy(Gui_AUDIO_MANAGER *gim) this->gim = gim; } -void GuiAudioManagerProxy::edit(QListViewItem *item) +void GuiAudioManagerProxy::edit(TQListViewItem *item) { gim->edit(item); } -AudioManagerItem::AudioManagerItem(QListView *parent, QString a, - QString b, QString c, long ID) :QListViewItem(parent,a,b,c) +AudioManagerItem::AudioManagerItem(TQListView *parent, TQString a, + TQString b, TQString c, long ID) :TQListViewItem(parent,a,b,c) { _ID = ID; } |