summaryrefslogtreecommitdiffstats
path: root/arts/tools/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /arts/tools/main.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-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/main.cpp')
-rw-r--r--arts/tools/main.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/arts/tools/main.cpp b/arts/tools/main.cpp
index 90674b30..60df8f1d 100644
--- a/arts/tools/main.cpp
+++ b/arts/tools/main.cpp
@@ -35,9 +35,9 @@
#include <artsversion.h>
#include <kartsfloatwatch.h>
-#include <qlabel.h>
-#include <qslider.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqslider.h>
+#include <tqpushbutton.h>
#include <kaction.h>
#include <kled.h>
#include <kmessagebox.h>
@@ -51,7 +51,7 @@
using namespace std;
using namespace Arts;
-void FreeVerbView::closeEvent(QCloseEvent *e) {
+void FreeVerbView::closeEvent(TQCloseEvent *e) {
e->accept();
emit closed();
}
@@ -67,11 +67,11 @@ FreeVerbView::FreeVerbView(SimpleSoundServer server) : server(server) {
GenericGuiFactory factory;
Widget gui = factory.createGui(freeverb);
- QBoxLayout * l = new QHBoxLayout( this );
+ TQBoxLayout * l = new TQHBoxLayout( this );
if(!gui.isNull())
l->add(new KArtsWidget(gui, this));
else
- l->add(new QLabel(i18n("No GUI found for this effect."), this));
+ l->add(new TQLabel(i18n("No GUI found for this effect."), this));
l->freeze();
show();
}
@@ -82,18 +82,18 @@ FreeVerbView::~FreeVerbView() {
}
-VControl::VControl( KArtsServer* artsserver, QWidget *parent) : QFrame(parent)
+VControl::VControl( KArtsServer* artsserver, TQWidget *parent) : TQFrame(parent)
, freeVerbView(0)
, server( artsserver )
{
- connect( server, SIGNAL( restartedServer() ), this, SLOT( initaRtsConnections() ) );
+ connect( server, TQT_SIGNAL( restartedServer() ), this, TQT_SLOT( initaRtsConnections() ) );
/* if(server.isNull())
{
KMessageBox::error( 0, i18n("Connection to the soundserver failed - make sure that artsd is really running and that your kdelibs version is not older than kdemultimedia."));
exit(1);
}*/
- boxLayout = new QHBoxLayout( this );
+ boxLayout = new TQHBoxLayout( this );
// 0 => 4.0
// 200 => 2.0
@@ -136,7 +136,7 @@ void VControl::useOldVolumeBar(int old) {
void VControl::showFreeVerbView() {
if(!freeVerbView) {
freeVerbView = new FreeVerbView(server->server());
- connect(freeVerbView,SIGNAL(closed()),this,SLOT(showFreeVerbView()));
+ connect(freeVerbView,TQT_SIGNAL(closed()),this,TQT_SLOT(showFreeVerbView()));
} else {
delete freeVerbView;
freeVerbView = 0;
@@ -160,7 +160,7 @@ void MainWindow::toggleVolumeBar() {
MainWindow::MainWindow() : KMainWindow(0), kartsserver( new KArtsServer( this ) ) {
kdDebug() << k_funcinfo << endl;
- connect( kartsserver, SIGNAL( restartedServer() ), this, SLOT( serverRestarted() ) );
+ connect( kartsserver, TQT_SIGNAL( restartedServer() ), this, TQT_SLOT( serverRestarted() ) );
vc = new VControl( kartsserver, this );
setCentralWidget( vc );
@@ -172,11 +172,11 @@ kdDebug() << k_funcinfo << endl;
( void ) artsactions->actionMidiManagerView();
( void ) artsactions->actionEnvironmentView();
( void ) artsactions->actionMediaTypesView();
- ( void ) new KAction( i18n("Toggle Free&Verb"), 0, vc, SLOT( showFreeVerbView() ), actionCollection(), "view_freeverb" );
+ ( void ) new KAction( i18n("Toggle Free&Verb"), 0, vc, TQT_SLOT( showFreeVerbView() ), actionCollection(), "view_freeverb" );
showOldVolumeDisplay=
new KToggleAction( i18n( "Old aRts-Control-Style for VU-Meter" /*"&LED-Style Volume Display"*/ ), 0, this,
- SLOT( toggleVolumeBar() ), actionCollection(), "old_volume_display" );
- ( void ) KStdAction::quit( this, SLOT( close() ), actionCollection(), "quit_artscontrol" );
+ TQT_SLOT( toggleVolumeBar() ), actionCollection(), "old_volume_display" );
+ ( void ) KStdAction::quit( this, TQT_SLOT( close() ), actionCollection(), "quit_artscontrol" );
createGUI("artscontrol.rc");
resize(20,300);