diff options
Diffstat (limited to 'arts/tools/choosebusdlg.cpp')
-rw-r--r-- | arts/tools/choosebusdlg.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/arts/tools/choosebusdlg.cpp b/arts/tools/choosebusdlg.cpp index f138436c..29a1bb69 100644 --- a/arts/tools/choosebusdlg.cpp +++ b/arts/tools/choosebusdlg.cpp @@ -23,7 +23,7 @@ #include <artsflow.h> -#include <layout.h> +#include <tqlayout.h> #include <tqlabel.h> #include <tqlistbox.h> #include <tqpushbutton.h> @@ -39,7 +39,7 @@ using namespace std; static void min_size(TQWidget *w) { - w->setMinimumSize(w->sizeHint()); + w->setMinimumSize(w->tqsizeHint()); } ChooseBusDlg::ChooseBusDlg(TQWidget *parent) @@ -48,27 +48,27 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent) { setCaption(i18n("Choose Bus")); - TQVBoxLayout *mainlayout = new TQVBoxLayout(this); + TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); // caption label: "Synthesis running..." - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *captionlabel = new TQLabel(this); TQFont labelfont(captionlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); captionlabel->setFont(labelfont); captionlabel->setText(TQString(" ")+i18n("Available busses:")+TQString(" ")); - captionlabel->setAlignment(AlignCenter); + captionlabel->tqsetAlignment(AlignCenter); min_size(captionlabel); - mainlayout->addWidget(captionlabel); + maintqlayout->addWidget(captionlabel); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler2); + maintqlayout->addWidget(ruler2); - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); // listwidget @@ -89,41 +89,41 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent) if( listbox->count() > 0 ) listbox->setCurrentItem( 0 ); - mainlayout->addWidget(listbox); + maintqlayout->addWidget(listbox); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler); - mainlayout->addSpacing(5); + maintqlayout->addWidget(ruler); + maintqlayout->addSpacing(5); // new bus lineedit - TQBoxLayout * layout2 = new TQHBoxLayout( mainlayout ); - //mainlayout->addLayout( layout2 ); + TQBoxLayout * tqlayout2 = new TQHBoxLayout( maintqlayout ); + //maintqlayout->addLayout( tqlayout2 ); TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this ); - layout2->addWidget( newbuslabel ); + tqlayout2->addWidget( newbuslabel ); lineedit = new KLineEdit( this ); connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) ); - layout2->addWidget( lineedit ); + tqlayout2->addWidget( lineedit ); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler3 = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler3); + maintqlayout->addWidget(ruler3); - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); // buttons - mainlayout->addSpacing(5); - TQHBoxLayout *buttonlayout = new TQHBoxLayout( mainlayout ); - //mainlayout->addLayout(buttonlayout); - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); + TQHBoxLayout *buttontqlayout = new TQHBoxLayout( maintqlayout ); + //maintqlayout->addLayout(buttontqlayout); + maintqlayout->addSpacing(5); - buttonlayout->addSpacing(5); + buttontqlayout->addSpacing(5); KButtonBox *bbox = new KButtonBox(this); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); @@ -136,12 +136,12 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent) TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel()); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); - bbox->layout(); + bbox->tqlayout(); - buttonlayout->addWidget(bbox); - buttonlayout->addSpacing(5); + buttontqlayout->addWidget(bbox); + buttontqlayout->addSpacing(5); - mainlayout->freeze(); + maintqlayout->freeze(); } TQString ChooseBusDlg::result() |