summaryrefslogtreecommitdiffstats
path: root/arts/tools/choosebusdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arts/tools/choosebusdlg.cpp')
-rw-r--r--arts/tools/choosebusdlg.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/arts/tools/choosebusdlg.cpp b/arts/tools/choosebusdlg.cpp
index ad6adeb8..cb005f4c 100644
--- a/arts/tools/choosebusdlg.cpp
+++ b/arts/tools/choosebusdlg.cpp
@@ -23,10 +23,10 @@
#include <artsflow.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
#include <kbuttonbox.h>
#include <kseparator.h>
@@ -38,26 +38,26 @@
using namespace std;
-static void min_size(QWidget *w) {
+static void min_size(TQWidget *w) {
w->setMinimumSize(w->sizeHint());
}
-ChooseBusDlg::ChooseBusDlg(QWidget *parent)
+ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
: KDialog(parent,"X", TRUE)
, _newbusitemindex( -1 )
{
setCaption(i18n("Choose Bus"));
- QVBoxLayout *mainlayout = new QVBoxLayout(this);
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..."
mainlayout->addSpacing(5);
- QLabel *captionlabel = new QLabel(this);
- QFont labelfont(captionlabel->font());
+ TQLabel *captionlabel = new TQLabel(this);
+ TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont);
- captionlabel->setText(QString(" ")+i18n("Available busses:")+QString(" "));
+ captionlabel->setText(TQString(" ")+i18n("Available busses:")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
min_size(captionlabel);
mainlayout->addWidget(captionlabel);
@@ -73,7 +73,7 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
// listwidget
- listbox = new QListBox(this);
+ listbox = new TQListBox(this);
listbox->setMinimumSize(300,200);
Arts::AudioManager aman = Arts::Reference("global:Arts_AudioManager");
@@ -100,12 +100,12 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
// new bus lineedit
- QBoxLayout * layout2 = new QHBoxLayout( mainlayout );
+ TQBoxLayout * layout2 = new TQHBoxLayout( mainlayout );
//mainlayout->addLayout( layout2 );
- QLabel * newbuslabel = new QLabel( i18n( "New bus:" ), this );
+ TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this );
layout2->addWidget( newbuslabel );
lineedit = new KLineEdit( this );
- connect( lineedit, SIGNAL( textChanged( const QString & ) ), SLOT( textChanged( const QString & ) ) );
+ connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) );
layout2->addWidget( lineedit );
// hruler
@@ -119,22 +119,22 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
// buttons
mainlayout->addSpacing(5);
- QHBoxLayout *buttonlayout = new QHBoxLayout( mainlayout );
+ TQHBoxLayout *buttonlayout = new TQHBoxLayout( mainlayout );
//mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
- QPushButton * okbutton = bbox->addButton(KStdGuiItem::ok());
+ TQPushButton * okbutton = bbox->addButton(KStdGuiItem::ok());
okbutton->setDefault( true );
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
- QButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
- connect( cancelbutton, SIGNAL( clicked() ), SLOT(reject() ) );
+ TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
+ connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
bbox->layout();
@@ -144,7 +144,7 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
mainlayout->freeze();
}
-QString ChooseBusDlg::result()
+TQString ChooseBusDlg::result()
{
if(listbox->currentItem() != -1)
{
@@ -158,7 +158,7 @@ void ChooseBusDlg::help()
KApplication::kApplication()->invokeHelp("", "artsbuilder");
}
-void ChooseBusDlg::textChanged( const QString & busname )
+void ChooseBusDlg::textChanged( const TQString & busname )
{
if( ! busname.isEmpty() )
{