Rename obsolete tq methods to standard names

pull/1/head
Timothy Pearson 13 years ago
parent dc07846059
commit d4ad381455

@ -53,11 +53,11 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
setCaption(i18n("aRts Module Execution")); setCaption(i18n("aRts Module Execution"));
maintqlayout = new TQVBoxLayout(this); mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..." // caption label: "Synthesis running..."
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this); TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font()); TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -65,7 +65,7 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
captionlabel->setText(TQString(" ")+i18n("Synthesis running...")+TQString(" ")); captionlabel->setText(TQString(" ")+i18n("Synthesis running...")+TQString(" "));
captionlabel->setAlignment(AlignCenter); captionlabel->setAlignment(AlignCenter);
min_size(captionlabel); min_size(captionlabel);
maintqlayout->addWidget(captionlabel); mainlayout->addWidget(captionlabel);
cpuusagelabel = new TQLabel(this); cpuusagelabel = new TQLabel(this);
cpuusagelabel->setText(i18n("CPU usage: unknown")); cpuusagelabel->setText(i18n("CPU usage: unknown"));
@ -78,41 +78,41 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
cpuusagetimer->start( 2000, false ); cpuusagetimer->start( 2000, false );
min_size(cpuusagelabel); min_size(cpuusagelabel);
maintqlayout->addWidget(cpuusagelabel); mainlayout->addWidget(cpuusagelabel);
// ruler above the slidertqlayout // ruler above the sliderlayout
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator* sep = new KSeparator( KSeparator::HLine, this); KSeparator* sep = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(sep); mainlayout->addWidget(sep);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// sliders, controlpanels // sliders, controlpanels
slidertqlayout = new TQVBoxLayout; sliderlayout = new TQVBoxLayout;
maintqlayout->addLayout(slidertqlayout); mainlayout->addLayout(sliderlayout);
#if 0 /* PORT */ #if 0 /* PORT */
this->GUIServer = GUIServer; this->GUIServer = GUIServer;
GUIServer->setGlobalParent(this); GUIServer->setGlobalParent(this);
GUIServer->setGlobalLayout(slidertqlayout); GUIServer->setGlobalLayout(sliderlayout);
#endif #endif
// hruler below the slidertqlayout // hruler below the sliderlayout
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
sep = new KSeparator( KSeparator::HLine, this); sep = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(sep); mainlayout->addWidget(sep);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -125,18 +125,18 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) ); connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->tqlayout(); bbox->layout();
//min_size(bbox); //min_size(bbox);
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
// maintqlayout->freeze(); // mainlayout->freeze();
} }
void ExecDlg::start() void ExecDlg::start()
{ {
maintqlayout->freeze(); mainlayout->freeze();
} }
void ExecDlg::guiServerTick() void ExecDlg::guiServerTick()

@ -35,7 +35,7 @@ class ExecDlg :public TQDialog {
public: public:
TQTimer *cpuusagetimer; TQTimer *cpuusagetimer;
TQLabel *cpuusagelabel; TQLabel *cpuusagelabel;
TQVBoxLayout *maintqlayout,*slidertqlayout; TQVBoxLayout *mainlayout,*sliderlayout;
ExecutableStructure *structure; ExecutableStructure *structure;
void start(); void start();

@ -45,12 +45,12 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
{ {
setCaption(i18n("aRts: Structureport View")); setCaption(i18n("aRts: Structureport View"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
//TQHBoxLayout *contentstqlayout = new TQHBoxLayout; //TQHBoxLayout *contentslayout = new TQHBoxLayout;
// object type // object type
/* /*
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *objectlabel = new TQLabel(this); TQLabel *objectlabel = new TQLabel(this);
TQFont labelfont(objectlabel->font()); TQFont labelfont(objectlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -58,20 +58,20 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" ")); objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" "));
objectlabel->setAlignment(AlignCenter); objectlabel->setAlignment(AlignCenter);
min_size(objectlabel); min_size(objectlabel);
maintqlayout->addWidget(objectlabel); mainlayout->addWidget(objectlabel);
*/ */
// port description // port description
/* /*
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *portlabel = new TQLabel(this); TQLabel *portlabel = new TQLabel(this);
labelfont.setPointSize(labelfont.pointSize()*4/5); labelfont.setPointSize(labelfont.pointSize()*4/5);
portlabel->setFont(labelfont); portlabel->setFont(labelfont);
portlabel->setText(i18n("Port description: ")+ port->description); portlabel->setText(i18n("Port description: ")+ port->description);
min_size(portlabel); min_size(portlabel);
portlabel->setAlignment(AlignCenter); portlabel->setAlignment(AlignCenter);
maintqlayout->addWidget(portlabel); mainlayout->addWidget(portlabel);
int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width()); int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width());
@ -80,11 +80,11 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(contentstqlayout); mainlayout->addLayout(contentslayout);
*/ */
// list // list
@ -93,23 +93,23 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
update(); update();
listbox->setMinimumSize(340,400); listbox->setMinimumSize(340,400);
maintqlayout->addWidget(listbox); mainlayout->addWidget(listbox);
connect( listbox, TQT_SIGNAL( doubleClicked ( TQListBoxItem *)), this, connect( listbox, TQT_SIGNAL( doubleClicked ( TQListBoxItem *)), this,
TQT_SLOT(accept())); TQT_SLOT(accept()));
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -121,14 +121,14 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel()); TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
bbox->tqlayout(); bbox->layout();
//min_size(bbox); //min_size(bbox);
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
//maintqlayout->activate(); //mainlayout->activate();
maintqlayout->freeze(); mainlayout->freeze();
} }
string InterfaceDlg::interfaceName() string InterfaceDlg::interfaceName()

@ -46,12 +46,12 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
setCaption(i18n("aRts: Structureport View")); setCaption(i18n("aRts: Structureport View"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
//TQHBoxLayout *contentstqlayout = new TQHBoxLayout; //TQHBoxLayout *contentslayout = new TQHBoxLayout;
// object type // object type
/* /*
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *objectlabel = new TQLabel(this); TQLabel *objectlabel = new TQLabel(this);
TQFont labelfont(objectlabel->font()); TQFont labelfont(objectlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -59,20 +59,20 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" ")); objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" "));
objectlabel->setAlignment(AlignCenter); objectlabel->setAlignment(AlignCenter);
min_size(objectlabel); min_size(objectlabel);
maintqlayout->addWidget(objectlabel); mainlayout->addWidget(objectlabel);
*/ */
// port description // port description
/* /*
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *portlabel = new TQLabel(this); TQLabel *portlabel = new TQLabel(this);
labelfont.setPointSize(labelfont.pointSize()*4/5); labelfont.setPointSize(labelfont.pointSize()*4/5);
portlabel->setFont(labelfont); portlabel->setFont(labelfont);
portlabel->setText(i18n("Port description: ")+ port->description); portlabel->setText(i18n("Port description: ")+ port->description);
min_size(portlabel); min_size(portlabel);
portlabel->setAlignment(AlignCenter); portlabel->setAlignment(AlignCenter);
maintqlayout->addWidget(portlabel); mainlayout->addWidget(portlabel);
int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width()); int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width());
@ -81,11 +81,11 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(contentstqlayout); mainlayout->addLayout(contentslayout);
*/ */
// list // list
@ -94,21 +94,21 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
update(); update();
listbox->setMinimumSize(100,200); listbox->setMinimumSize(100,200);
maintqlayout->addWidget(listbox); mainlayout->addWidget(listbox);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -133,14 +133,14 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
TQButton *cancelbutton = bbox->addButton(i18n("Cancel")); TQButton *cancelbutton = bbox->addButton(i18n("Cancel"));
connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
*/ */
bbox->tqlayout(); bbox->layout();
//min_size(bbox); //min_size(bbox);
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
//maintqlayout->activate(); //mainlayout->activate();
maintqlayout->freeze(); mainlayout->freeze();
} }
void PortPosDlg::raise() void PortPosDlg::raise()

@ -44,11 +44,11 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
{ {
setCaption(i18n("Retrieve Structure From Server")); setCaption(i18n("Retrieve Structure From Server"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..." // caption label: "Synthesis running..."
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this); TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font()); TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -56,14 +56,14 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
captionlabel->setText(TQString(" ")+i18n("Published structures")+TQString(" ")); captionlabel->setText(TQString(" ")+i18n("Published structures")+TQString(" "));
captionlabel->setAlignment(AlignCenter); captionlabel->setAlignment(AlignCenter);
min_size(captionlabel); min_size(captionlabel);
maintqlayout->addWidget(captionlabel); mainlayout->addWidget(captionlabel);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// listwidget // listwidget
@ -85,23 +85,23 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
listbox->insertItem((*ni).c_str()); listbox->insertItem((*ni).c_str());
#endif #endif
maintqlayout->addWidget(listbox); mainlayout->addWidget(listbox);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -113,12 +113,12 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) ); connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->tqlayout(); bbox->layout();
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
maintqlayout->freeze(); mainlayout->freeze();
} }
TQString RetrieveDlg::result() TQString RetrieveDlg::result()

@ -28,21 +28,21 @@
class KArtsWidgetPrivate { class KArtsWidgetPrivate {
public: public:
TQHBoxLayout *tqlayout; TQHBoxLayout *layout;
}; };
KArtsWidget::KArtsWidget( TQWidget* parent, const char* name ) KArtsWidget::KArtsWidget( TQWidget* parent, const char* name )
:TQWidget( parent, name ), _content( Arts::Widget::null() ) :TQWidget( parent, name ), _content( Arts::Widget::null() )
{ {
d = new KArtsWidgetPrivate; d = new KArtsWidgetPrivate;
d->tqlayout = new TQHBoxLayout(this); d->layout = new TQHBoxLayout(this);
} }
KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* parent, const char* name ) KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* parent, const char* name )
:TQWidget( parent, name ), _content( Arts::Widget::null()) :TQWidget( parent, name ), _content( Arts::Widget::null())
{ {
d = new KArtsWidgetPrivate; d = new KArtsWidgetPrivate;
d->tqlayout = new TQHBoxLayout(this); d->layout = new TQHBoxLayout(this);
setContent(content); setContent(content);
} }
@ -50,7 +50,7 @@ KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* parent, const char* na
:TQWidget( parent, name, wflags ), _content( Arts::Widget::null() ) :TQWidget( parent, name, wflags ), _content( Arts::Widget::null() )
{ {
d = new KArtsWidgetPrivate; d = new KArtsWidgetPrivate;
d->tqlayout = new TQHBoxLayout( this ); d->layout = new TQHBoxLayout( this );
setContent( content ); setContent( content );
} }
@ -58,7 +58,7 @@ KArtsWidget::KArtsWidget(TQWidget* parent, const char* name, WFlags wflags )
:TQWidget(parent, name, wflags ), _content(Arts::Widget::null()) :TQWidget(parent, name, wflags ), _content(Arts::Widget::null())
{ {
d = new KArtsWidgetPrivate; d = new KArtsWidgetPrivate;
d->tqlayout = new TQHBoxLayout(this); d->layout = new TQHBoxLayout(this);
} }
KArtsWidget::~KArtsWidget() KArtsWidget::~KArtsWidget()
@ -80,7 +80,7 @@ void KArtsWidget::setContent(Arts::Widget content)
_content = content; _content = content;
contentAsWidget->reparent(this,TQPoint(0,0),content.visible()); contentAsWidget->reparent(this,TQPoint(0,0),content.visible());
d->tqlayout->addWidget(contentAsWidget); d->layout->addWidget(contentAsWidget);
} }
Arts::Widget KArtsWidget::content() Arts::Widget KArtsWidget::content()

@ -32,12 +32,12 @@ class KArtsWidgetPrivate;
/** /**
* KArtsWidget provides a simple way to treat Arts::Widget classes like * KArtsWidget provides a simple way to treat Arts::Widget classes like
* native TQt widgets. Suppose you use TQt, and want to put an Arts::Widget * native TQt widgets. Suppose you use TQt, and want to put an Arts::Widget
* type into a tqlayout, you can do so using this code * type into a layout, you can do so using this code
* *
* <pre> * <pre>
* Arts::Widget widget = ...get widget from somewhere...; * Arts::Widget widget = ...get widget from somewhere...;
* KArtsWidget *w = new KArtsWidget(widget, this); * KArtsWidget *w = new KArtsWidget(widget, this);
* tqlayout->addWidget(w); * layout->addWidget(w);
* </pre> * </pre>
* *
* In line 2 of the code, the "this" is the parent widget (which is usually * In line 2 of the code, the "this" is the parent widget (which is usually

@ -85,11 +85,11 @@ void KLayoutBox_Separator::paintEvent( TQPaintEvent* ) {
TQPainter p( this ); TQPainter p( this );
TQStyle::SFlags flags = TQStyle::Style_Default; TQStyle::SFlags flags = TQStyle::Style_Default;
if ( width() < height() ) flags |= TQStyle::Style_Horizontal; if ( width() < height() ) flags |= TQStyle::Style_Horizontal;
tqstyle().tqdrawPrimitive( TQStyle::PE_Splitter, &p, rect(), colorGroup(), flags ); style().tqdrawPrimitive( TQStyle::PE_Splitter, &p, rect(), colorGroup(), flags );
} }
TQSize KLayoutBox_Separator::minimumSizeHint() const { TQSize KLayoutBox_Separator::minimumSizeHint() const {
int wh = tqstyle().pixelMetric( TQStyle::PM_SplitterWidth, this ); int wh = style().pixelMetric( TQStyle::PM_SplitterWidth, this );
return TQSize( wh, wh ); return TQSize( wh, wh );
} }

@ -60,8 +60,8 @@ KPopupBox_widget::KPopupBox_widget( TQWidget *parent, const char* name ) : TQFra
this->setMargin( 1 ); this->setLineWidth( 1 ); this->setMargin( 1 ); this->setLineWidth( 1 );
_titlebar = new TQFrame( this ); _titlebar = new TQFrame( this );
_titlebartqlayout = new TQBoxLayout( _titlebar, TQBoxLayout::BottomToTop ); _titlebarlayout = new TQBoxLayout( _titlebar, TQBoxLayout::BottomToTop );
_titlebartqlayout->setAutoAdd( true ); _titlebarlayout->setAutoAdd( true );
_showbutton = new ShowButton( _titlebar ); _showbutton = new ShowButton( _titlebar );
connect( _showbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( hide( bool ) ) ); connect( _showbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( hide( bool ) ) );
@ -90,13 +90,13 @@ void KPopupBox_widget::direction( Arts::Direction n ) {
switch( n ) { switch( n ) {
case LeftToRight: case LeftToRight:
case RightToLeft: case RightToLeft:
_titlebartqlayout->setDirection( TQBoxLayout::BottomToTop ); _titlebarlayout->setDirection( TQBoxLayout::BottomToTop );
_drag->setMinimumHeight( 30 ); _drag->setMinimumHeight( 30 );
_drag->setMinimumWidth( 0 ); _drag->setMinimumWidth( 0 );
break; break;
case TopToBottom: case TopToBottom:
case BottomToTop: case BottomToTop:
_titlebartqlayout->setDirection( TQBoxLayout::RightToLeft ); _titlebarlayout->setDirection( TQBoxLayout::RightToLeft );
_drag->setMinimumHeight( 0 ); _drag->setMinimumHeight( 0 );
_drag->setMinimumWidth( 30 ); _drag->setMinimumWidth( 30 );
} }

@ -54,7 +54,7 @@ private:
TQBoxLayout *_layout; TQBoxLayout *_layout;
TQFrame *_titlebar; TQFrame *_titlebar;
TQBoxLayout *_titlebartqlayout; TQBoxLayout *_titlebarlayout;
HandleDrag *_drag; HandleDrag *_drag;
ShowButton *_showbutton; ShowButton *_showbutton;
OwnButton *_ownbutton; OwnButton *_ownbutton;
@ -88,7 +88,7 @@ public:
TQPainter p( this ); TQPainter p( this );
TQStyle::SFlags flags = TQStyle::Style_Default; TQStyle::SFlags flags = TQStyle::Style_Default;
if( width() < height() ) flags |= TQStyle::Style_Horizontal; if( width() < height() ) flags |= TQStyle::Style_Horizontal;
tqstyle().tqdrawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags ); style().tqdrawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags );
} }
signals: signals:
void clicked(); void clicked();
@ -152,7 +152,7 @@ public slots:
} }
public: public:
TQSize minimumSizeHint() const { TQSize minimumSizeHint() const {
int wh = tqstyle().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this ); int wh = style().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
return TQSize( wh, wh ); return TQSize( wh, wh );
} }
TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); } TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); }
@ -188,7 +188,7 @@ public slots:
} }
public: public:
TQSize minimumSizeHint() const { TQSize minimumSizeHint() const {
int wh = tqstyle().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this ); int wh = style().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
return TQSize( wh, wh ); return TQSize( wh, wh );
} }
TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); } TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); }

@ -458,7 +458,7 @@ void KPoti::drawContents( TQPainter * p )
dbp.drawPixmap( d->buttonRect, d->bgPixmap( colorGroup() ) ); dbp.drawPixmap( d->buttonRect, d->bgPixmap( colorGroup() ) );
if( hasFocus() ) if( hasFocus() )
tqstyle().tqdrawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, colorGroup() ); style().tqdrawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, colorGroup() );
paintPoti( &dbp ); paintPoti( &dbp );
dbp.end(); dbp.end();

@ -48,20 +48,20 @@ ArtsControlApplet::ArtsControlApplet(const TQString& configFile, Type type, int
if( !p->barts ) KMessageBox::information(0, i18n("Something with the ArtsServer went wrong. You probably need to restart aRts and then reload this applet.")); if( !p->barts ) KMessageBox::information(0, i18n("Something with the ArtsServer went wrong. You probably need to restart aRts and then reload this applet."));
setCustomMenu(p->menu); setCustomMenu(p->menu);
p->tqlayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight ); p->layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
p->tqlayout->setSpacing( 2 ); p->layout->setSpacing( 2 );
if( p->barts ) { if( p->barts ) {
p->vu = Arts::StereoVolumeControlGui( p->volume ); p->vu = Arts::StereoVolumeControlGui( p->volume );
p->vu.label().fontsize( 8 ); p->vu.label().fontsize( 8 );
p->vuw = new KArtsWidget( p->vu, this ); p->vuw = new KArtsWidget( p->vu, this );
p->vuw->setMinimumSize( 16,16 ); p->vuw->setMinimumSize( 16,16 );
p->tqlayout->addWidget( p->vuw ); p->layout->addWidget( p->vuw );
} }
p->tqlayout->activate(); p->layout->activate();
TQTimer::singleShot( 100, this, TQT_SLOT( supdatetqlayout() ) ); TQTimer::singleShot( 100, this, TQT_SLOT( supdatelayout() ) );
kdDebug()<<"ArtsControlApplet::ArtsControlApplet() finished."<<endl; kdDebug()<<"ArtsControlApplet::ArtsControlApplet() finished."<<endl;
} }
@ -93,7 +93,7 @@ kdDebug()<<k_funcinfo<<endl;
int ArtsControlApplet::widthForHeight( int h ) const { int ArtsControlApplet::widthForHeight( int h ) const {
kdDebug()<<"ArtsControlApplet::widthForHeight( int "<<h<<" )"<<endl; kdDebug()<<"ArtsControlApplet::widthForHeight( int "<<h<<" )"<<endl;
return p->tqlayout->sizeHint().width(); return p->layout->sizeHint().width();
} }
int ArtsControlApplet::heightForWidth( int w ) const { int ArtsControlApplet::heightForWidth( int w ) const {
@ -122,12 +122,12 @@ kdDebug()<<k_funcinfo<<" position()="<<position()<<endl;
{ {
case pTop: case pTop:
case pBottom: case pBottom:
p->tqlayout->setDirection( TQBoxLayout::LeftToRight ); p->layout->setDirection( TQBoxLayout::LeftToRight );
if ( p->barts ) p->vu.direction( Arts::LeftToRight ); if ( p->barts ) p->vu.direction( Arts::LeftToRight );
break; break;
case pRight: case pRight:
case pLeft: case pLeft:
p->tqlayout->setDirection( TQBoxLayout::TopToBottom ); p->layout->setDirection( TQBoxLayout::TopToBottom );
if ( p->barts ) p->vu.direction( Arts::TopToBottom ); if ( p->barts ) p->vu.direction( Arts::TopToBottom );
break; break;
default: break; default: break;
@ -140,23 +140,23 @@ kdDebug() << k_funcinfo << endl;
svinline = new FFTScopeView( arts->server(), _parent ); svinline = new FFTScopeView( arts->server(), _parent );
svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( TQFrame::Panel|TQFrame::Sunken ); svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( TQFrame::Panel|TQFrame::Sunken );
connect( svinline, TQT_SIGNAL( closed() ), this, TQT_SLOT( SVinline() ) ); connect( svinline, TQT_SIGNAL( closed() ), this, TQT_SLOT( SVinline() ) );
tqlayout->addWidget( svinline ); layout->addWidget( svinline );
} else { } else {
delete svinline; delete svinline;
svinline = 0; svinline = 0;
} }
_parent->supdatetqlayout(); _parent->supdatelayout();
} }
void ArtsControlAppletPrivate::moreBars() { vu.left().count( vu.left().count()+10 ); vu.right().count( vu.right().count()+10 ); } void ArtsControlAppletPrivate::moreBars() { vu.left().count( vu.left().count()+10 ); vu.right().count( vu.right().count()+10 ); }
void ArtsControlAppletPrivate::lessBars() { vu.left().count( vu.left().count()-10 ); vu.right().count( vu.right().count()-10 ); } void ArtsControlAppletPrivate::lessBars() { vu.left().count( vu.left().count()-10 ); vu.right().count( vu.right().count()-10 ); }
void ArtsControlAppletPrivate::styleNormalBars() { vu.left().style( Arts::lmNormalBars ); vu.right().style( Arts::lmNormalBars ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleNormalBars() { vu.left().style( Arts::lmNormalBars ); vu.right().style( Arts::lmNormalBars ); _parent->supdatelayout(); }
void ArtsControlAppletPrivate::styleFireBars() { vu.left().style( Arts::lmFireBars ); vu.right().style( Arts::lmFireBars ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleFireBars() { vu.left().style( Arts::lmFireBars ); vu.right().style( Arts::lmFireBars ); _parent->supdatelayout(); }
void ArtsControlAppletPrivate::styleLineBars() { vu.left().style( Arts::lmLineBars ); vu.right().style( Arts::lmLineBars ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleLineBars() { vu.left().style( Arts::lmLineBars ); vu.right().style( Arts::lmLineBars ); _parent->supdatelayout(); }
void ArtsControlAppletPrivate::styleLEDs() { vu.left().style( Arts::lmLEDs ); vu.right().style( Arts::lmLEDs ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleLEDs() { vu.left().style( Arts::lmLEDs ); vu.right().style( Arts::lmLEDs ); _parent->supdatelayout(); }
void ArtsControlAppletPrivate::styleAnalog() { vu.left().style( Arts::lmAnalog ); vu.right().style( Arts::lmAnalog ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleAnalog() { vu.left().style( Arts::lmAnalog ); vu.right().style( Arts::lmAnalog ); _parent->supdatelayout(); }
void ArtsControlAppletPrivate::styleSmall() { vu.left().style( Arts::lmSmall ); vu.right().style( Arts::lmSmall ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleSmall() { vu.left().style( Arts::lmSmall ); vu.right().style( Arts::lmSmall ); _parent->supdatelayout(); }
// vim: sw=4 ts=4 // vim: sw=4 ts=4
#include "artscontrolapplet.moc" #include "artscontrolapplet.moc"

@ -120,7 +120,7 @@ protected:
void positionChange( Position ); void positionChange( Position );
public slots: public slots:
void supdatetqlayout() { emit updateLayout(); } void supdatelayout() { emit updateLayout(); }
protected slots: protected slots:
void resetLayout(); void resetLayout();

@ -52,7 +52,7 @@ private:
ArtsControlApplet *_parent; ArtsControlApplet *_parent;
ArtsActions* _artsactions; ArtsActions* _artsactions;
public: public:
TQBoxLayout *tqlayout; TQBoxLayout *layout;
KArtsServer *arts; KArtsServer *arts;
KArtsDispatcher *dispatcher; KArtsDispatcher *dispatcher;
Arts::StereoVolumeControl volume; Arts::StereoVolumeControl volume;

@ -72,13 +72,13 @@ void Gui_AUDIO_MANAGER::widgetDestroyed(TQWidget *widget)
} }
#endif #endif
void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*tqlayout*/) void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*layout*/)
{ {
/************************************************************************ /************************************************************************
* From Gui_INSTRUMENT_MAPPER: * From Gui_INSTRUMENT_MAPPER:
* *
* I am still not sure wether this kind of putting yourself into a parent * I am still not sure wether this kind of putting yourself into a parent
* widget (with own tqlayout etc.) is a good idea (there may not even be * widget (with own layout etc.) is a good idea (there may not even be
* a singe call to setParent, because there is no parent). * a singe call to setParent, because there is no parent).
* *
* But the "how to write aRts widgets"-stuff will need some experiments, * But the "how to write aRts widgets"-stuff will need some experiments,
@ -90,8 +90,8 @@ void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*tqlayout*/)
* else would be appropriate. Check that. FIXME * else would be appropriate. Check that. FIXME
************************************************************************/ ************************************************************************/
TQVBoxLayout *maintqlayout = new TQVBoxLayout(parent); TQVBoxLayout *mainlayout = new TQVBoxLayout(parent);
/*TQHBoxLayout *contentstqlayout = new TQHBoxLayout;*/ /*TQHBoxLayout *contentslayout = new TQHBoxLayout;*/
// list // list
@ -106,10 +106,10 @@ void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*tqlayout*/)
TQObject::connect(listview,TQT_SIGNAL(executed(TQListViewItem *)),proxy, TQObject::connect(listview,TQT_SIGNAL(executed(TQListViewItem *)),proxy,
TQT_SLOT(edit(TQListViewItem *))); TQT_SLOT(edit(TQListViewItem *)));
maintqlayout->addWidget(listview); mainlayout->addWidget(listview);
maintqlayout->activate(); mainlayout->activate();
//maintqlayout->freeze(); //mainlayout->freeze();
ParentWidget = parent; ParentWidget = parent;
} }

@ -51,7 +51,7 @@ public:
Gui_AUDIO_MANAGER( TQWidget* =0, const char* =0 ); Gui_AUDIO_MANAGER( TQWidget* =0, const char* =0 );
~Gui_AUDIO_MANAGER(); ~Gui_AUDIO_MANAGER();
void setParent(TQWidget *Parent,TQBoxLayout *tqlayout); void setParent(TQWidget *Parent,TQBoxLayout *layout);
void edit(TQListViewItem *item); void edit(TQListViewItem *item);
public slots: public slots:

@ -48,11 +48,11 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
{ {
setCaption(i18n("Choose Bus")); setCaption(i18n("Choose Bus"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..." // caption label: "Synthesis running..."
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this); TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font()); TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -60,15 +60,15 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
captionlabel->setText(TQString(" ")+i18n("Available busses:")+TQString(" ")); captionlabel->setText(TQString(" ")+i18n("Available busses:")+TQString(" "));
captionlabel->setAlignment(AlignCenter); captionlabel->setAlignment(AlignCenter);
min_size(captionlabel); min_size(captionlabel);
maintqlayout->addWidget(captionlabel); mainlayout->addWidget(captionlabel);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// listwidget // listwidget
@ -89,41 +89,41 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
if( listbox->count() > 0 ) if( listbox->count() > 0 )
listbox->setCurrentItem( 0 ); listbox->setCurrentItem( 0 );
maintqlayout->addWidget(listbox); mainlayout->addWidget(listbox);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// new bus lineedit // new bus lineedit
TQBoxLayout * tqlayout2 = new TQHBoxLayout( maintqlayout ); TQBoxLayout * layout2 = new TQHBoxLayout( mainlayout );
//maintqlayout->addLayout( tqlayout2 ); //mainlayout->addLayout( layout2 );
TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this ); TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this );
tqlayout2->addWidget( newbuslabel ); layout2->addWidget( newbuslabel );
lineedit = new KLineEdit( this ); lineedit = new KLineEdit( this );
connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) ); connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) );
tqlayout2->addWidget( lineedit ); layout2->addWidget( lineedit );
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler3 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler3 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler3); mainlayout->addWidget(ruler3);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// buttons // buttons
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQHBoxLayout *buttontqlayout = new TQHBoxLayout( maintqlayout ); TQHBoxLayout *buttonlayout = new TQHBoxLayout( mainlayout );
//maintqlayout->addLayout(buttontqlayout); //mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -136,12 +136,12 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel()); TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
bbox->tqlayout(); bbox->layout();
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
maintqlayout->freeze(); mainlayout->freeze();
} }
TQString ChooseBusDlg::result() TQString ChooseBusDlg::result()

@ -112,13 +112,13 @@ void PeakBar::setValue(float f) {
PeakLevelMeters::PeakLevelMeters(TQWidget *parent): PeakLevelMeters::PeakLevelMeters(TQWidget *parent):
StereoLevelMeter(parent), left(this), right(this), scaleView(this) StereoLevelMeter(parent), left(this), right(this), scaleView(this)
{ {
TQBoxLayout *tqlayout= new TQHBoxLayout(this); TQBoxLayout *layout= new TQHBoxLayout(this);
tqlayout->addWidget(&left); layout->addWidget(&left);
// tqlayout->setStretchFactor(&left, 0); // layout->setStretchFactor(&left, 0);
tqlayout->addWidget(&right); layout->addWidget(&right);
// tqlayout->setStretchFactor(&right, 0); // layout->setStretchFactor(&right, 0);
tqlayout->addWidget(&scaleView); layout->addWidget(&scaleView);
// tqlayout->setStretchFactor(&scaleView, 0); // layout->setStretchFactor(&scaleView, 0);
left.setLineWidth(2); left.setLineWidth(2);
right.setLineWidth(2); right.setLineWidth(2);
scaleView.setScaleMargins(right.frameWidth()); scaleView.setScaleMargins(right.frameWidth());
@ -226,9 +226,9 @@ void LedMeter::setValue(float f)
StereoLedMeters::StereoLedMeters(TQWidget *parent) StereoLedMeters::StereoLedMeters(TQWidget *parent)
: StereoLevelMeter(parent), left(this), right(this) : StereoLevelMeter(parent), left(this), right(this)
{ {
TQBoxLayout *tqlayout= new TQHBoxLayout(this); TQBoxLayout *layout= new TQHBoxLayout(this);
tqlayout->addWidget(&left); layout->addWidget(&left);
tqlayout->addWidget(&right); layout->addWidget(&right);
} }
void StereoLedMeters::setValues(float leftVal, float rightVal) { void StereoLedMeters::setValues(float leftVal, float rightVal) {

@ -66,11 +66,11 @@ static TQStringList listFiles(TQString directory, TQString extension)
MidiInstDlg::MidiInstDlg(TQWidget *parent) MidiInstDlg::MidiInstDlg(TQWidget *parent)
:TQDialog(parent,"instrument",TRUE) :TQDialog(parent,"instrument",TRUE)
{ {
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: title // caption label: title
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this); TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font()); TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -78,14 +78,14 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
captionlabel->setText(TQString(" ")+i18n("Instrument")+TQString(" ")); captionlabel->setText(TQString(" ")+i18n("Instrument")+TQString(" "));
captionlabel->setAlignment(AlignCenter); captionlabel->setAlignment(AlignCenter);
//min_size(captionlabel); //min_size(captionlabel);
maintqlayout->addWidget(captionlabel); mainlayout->addWidget(captionlabel);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// combobox // combobox
@ -116,23 +116,23 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
//kdDebug() << "inserted map: " << modname.mid(prefix.length()) << endl; //kdDebug() << "inserted map: " << modname.mid(prefix.length()) << endl;
} }
maintqlayout->addWidget(box); mainlayout->addWidget(box);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -141,12 +141,12 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) ); connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->tqlayout(); bbox->layout();
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
maintqlayout->freeze(); mainlayout->freeze();
} }
TQCString MidiInstDlg::filename() TQCString MidiInstDlg::filename()

@ -34,11 +34,11 @@
MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *title) :TQDialog(parent,title,TRUE) MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *title) :TQDialog(parent,title,TRUE)
{ {
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: title // caption label: title
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this); TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font()); TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -46,14 +46,14 @@ MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *titl
captionlabel->setText(i18n("OSS MIDI Port")); captionlabel->setText(i18n("OSS MIDI Port"));
captionlabel->setAlignment(AlignCenter); captionlabel->setAlignment(AlignCenter);
//min_size(captionlabel); //min_size(captionlabel);
maintqlayout->addWidget(captionlabel); mainlayout->addWidget(captionlabel);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// editwidget // editwidget
@ -61,23 +61,23 @@ MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *titl
edit->setText(oldname); edit->setText(oldname);
//min_size(edit); //min_size(edit);
maintqlayout->addWidget(edit); mainlayout->addWidget(edit);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
TQPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); TQPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -90,12 +90,12 @@ MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *titl
okbutton->setAutoDefault( true ); okbutton->setAutoDefault( true );
okbutton->setDefault( true ); okbutton->setDefault( true );
bbox->tqlayout(); bbox->layout();
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
maintqlayout->freeze(); mainlayout->freeze();
} }
const char *MidiPortDlg::device() const char *MidiPortDlg::device()

@ -96,7 +96,7 @@ public:
virtual bool canReload() const { return true; } virtual bool canReload() const { return true; }
public slots: public slots:
virtual void paste() { decode(kapp->tqclipboard()->data()); } virtual void paste() { decode(kapp->clipboard()->data()); }
virtual void clear(); virtual void clear();
void slotCheckCache(); void slotCheckCache();

@ -65,7 +65,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -73,7 +73,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -34,10 +34,10 @@ struct CoverPopup : public TQWidget
CoverPopup(const TQPixmap &image, const TQPoint &p) : CoverPopup(const TQPixmap &image, const TQPoint &p) :
TQWidget(0, 0, WDestructiveClose | WX11BypassWM) TQWidget(0, 0, WDestructiveClose | WX11BypassWM)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
TQLabel *label = new TQLabel(this); TQLabel *label = new TQLabel(this);
tqlayout->addWidget(label); layout->addWidget(label);
label->setFrameStyle(TQFrame::Box | TQFrame::Raised); label->setFrameStyle(TQFrame::Box | TQFrame::Raised);
label->setLineWidth(1); label->setLineWidth(1);
label->setPixmap(image); label->setPixmap(image);

@ -24,7 +24,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout4</cstring> <cstring>layout4</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -48,7 +48,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">

@ -232,7 +232,7 @@ FileRenamerWidget::FileRenamerWidget(TQWidget *parent) :
m_exampleText->setPaletteBackgroundColor(temp->paletteBackgroundColor()); m_exampleText->setPaletteBackgroundColor(temp->paletteBackgroundColor());
delete temp; delete temp;
tqlayout()->setMargin(0); // We'll be wrapped by KDialogBase layout()->setMargin(0); // We'll be wrapped by KDialogBase
// This must be created before createTagRows() is called. // This must be created before createTagRows() is called.
@ -410,7 +410,7 @@ bool FileRenamerWidget::removeRow(unsigned id)
if(m_rows[id].position > 0) if(m_rows[id].position > 0)
checkboxPosition = m_rows[id].position - 1; checkboxPosition = m_rows[id].position - 1;
// The checkbox is contained within a tqlayout widget, so the tqlayout // The checkbox is contained within a layout widget, so the layout
// widget is the one the needs to die. // widget is the one the needs to die.
delete m_folderSwitches[checkboxPosition]->parent(); delete m_folderSwitches[checkboxPosition]->parent();
m_folderSwitches.erase(&m_folderSwitches[checkboxPosition]); m_folderSwitches.erase(&m_folderSwitches[checkboxPosition]);
@ -675,17 +675,17 @@ void FileRenamerWidget::moveItem(unsigned id, MovementDirection direction)
// Move the item two spaces above/below its previous position. It has to // Move the item two spaces above/below its previous position. It has to
// be 2 spaces because of the checkbox. // be 2 spaces because of the checkbox.
TQBoxLayout *tqlayout = dynamic_cast<TQBoxLayout *>(m_mainFrame->tqlayout()); TQBoxLayout *layout = dynamic_cast<TQBoxLayout *>(m_mainFrame->layout());
tqlayout->remove(l); layout->remove(l);
tqlayout->insertWidget(2 * newPos, l); layout->insertWidget(2 * newPos, l);
// Move the top item two spaces in the opposite direction, for a similar // Move the top item two spaces in the opposite direction, for a similar
// reason. // reason.
tqlayout->remove(w); layout->remove(w);
tqlayout->insertWidget(2 * pos, w); layout->insertWidget(2 * pos, w);
tqlayout->invalidate(); layout->invalidate();
TQTimer::singleShot(0, this, TQT_SLOT(exampleTextChanged())); TQTimer::singleShot(0, this, TQT_SLOT(exampleTextChanged()));
} }
@ -778,7 +778,7 @@ void FileRenamerWidget::insertCategory()
// Set its down button to be disabled. // Set its down button to be disabled.
m_rows[id].downButton->setEnabled(false); m_rows[id].downButton->setEnabled(false);
m_mainFrame->tqlayout()->invalidate(); m_mainFrame->layout()->invalidate();
m_mainView->update(); m_mainView->update();
// Now update according to the code in loadConfig(). // Now update according to the code in loadConfig().

@ -61,7 +61,7 @@ struct Row
/** /**
* A list of rows, each of which may have its own category options and other * A list of rows, each of which may have its own category options and other
* associated data. There is no relation between the order of rows in the vector and their * associated data. There is no relation between the order of rows in the vector and their
* GUI tqlayout. Instead, each Row has a position member which indicates what GUI position it * GUI layout. Instead, each Row has a position member which indicates what GUI position it
* takes up. The index into the vector is known as the row identifier (which is unique but * takes up. The index into the vector is known as the row identifier (which is unique but
* not necessarily constant). * not necessarily constant).
*/ */
@ -186,7 +186,7 @@ private:
/** /**
* This function adds a "Insert Folder separator" checkbox to the end of * This function adds a "Insert Folder separator" checkbox to the end of
* the current tqlayout. The setting defaults to being unchecked. * the current layout. The setting defaults to being unchecked.
*/ */
void addFolderSeparatorCheckbox(); void addFolderSeparatorCheckbox();
@ -336,7 +336,7 @@ private:
/** /**
* This moves the widget \p l in the direction given by \p direction, taking * This moves the widget \p l in the direction given by \p direction, taking
* care to make sure that the checkboxes are not moved, and that they are * care to make sure that the checkboxes are not moved, and that they are
* enabled or disabled as appropriate for the new tqlayout, and that the up and * enabled or disabled as appropriate for the new layout, and that the up and
* down buttons are also adjusted as necessary. * down buttons are also adjusted as necessary.
* *
* @param id the identifier of the row to move * @param id the identifier of the row to move
@ -427,14 +427,14 @@ private slots:
virtual void slotRemoveRow(int id); virtual void slotRemoveRow(int id);
/** /**
* This function moves \p category up in the tqlayout. * This function moves \p category up in the layout.
* *
* @param id the unique id of the widget to move up. * @param id the unique id of the widget to move up.
*/ */
virtual void moveItemUp(int id); virtual void moveItemUp(int id);
/** /**
* This function moves \p category down in the tqlayout. * This function moves \p category down in the layout.
* *
* @param id the unique id of the widget to move down. * @param id the unique id of the widget to move down.
*/ */

@ -29,7 +29,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout4</cstring> <cstring>layout4</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -68,7 +68,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="2" column="1"> <widget class="TQLayoutWidget" row="2" column="1">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -216,7 +216,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -29,17 +29,17 @@ FileRenamerTagOptions::FileRenamerTagOptions(TQWidget *parent,
const TagRenamerOptions &options) : const TagRenamerOptions &options) :
FileRenamerTagOptionsBase(parent), m_options(options) FileRenamerTagOptionsBase(parent), m_options(options)
{ {
tqlayout()->setSpacing(KDialog::spacingHint()); layout()->setSpacing(KDialog::spacingHint());
tqlayout()->setMargin(0); layout()->setMargin(0);
m_emptyTagGroup->tqlayout()->setSpacing(KDialog::spacingHint()); m_emptyTagGroup->layout()->setSpacing(KDialog::spacingHint());
m_trackGroup->tqlayout()->setSpacing(KDialog::spacingHint()); m_trackGroup->layout()->setSpacing(KDialog::spacingHint());
m_emptyValueLayout->setSpacing(KDialog::spacingHint()); m_emptyValueLayout->setSpacing(KDialog::spacingHint());
m_exampleLayout->setSpacing(KDialog::spacingHint()); m_exampleLayout->setSpacing(KDialog::spacingHint());
m_spinLayout->setSpacing(KDialog::spacingHint()); m_spinLayout->setSpacing(KDialog::spacingHint());
m_widthLayout->setSpacing(KDialog::spacingHint()); m_widthLayout->setSpacing(KDialog::spacingHint());
m_tagLayout->setSpacing(KDialog::spacingHint()); m_tagLayout->setSpacing(KDialog::spacingHint());
m_tagFormatGroup->tqlayout()->setSpacing(KDialog::spacingHint()); m_tagFormatGroup->layout()->setSpacing(KDialog::spacingHint());
if(m_options.category() != Track) if(m_options.category() != Track)
m_trackGroup->hide(); m_trackGroup->hide();

@ -58,9 +58,9 @@ NowPlaying::NowPlaying(TQWidget *parent, PlaylistCollection *collection, const c
CollectionList::instance()->addObserver(&m_observer); CollectionList::instance()->addObserver(&m_observer);
tqlayout()->setMargin(5); layout()->setMargin(5);
tqlayout()->setSpacing(3); layout()->setSpacing(3);
setFixedHeight(imageSize + 2 + tqlayout()->margin() * 2); setFixedHeight(imageSize + 2 + layout()->margin() * 2);
setStretchFactor(new CoverItem(this), 0); setStretchFactor(new CoverItem(this), 0);
setStretchFactor(new TrackItem(this), 2); setStretchFactor(new TrackItem(this), 2);
@ -109,7 +109,7 @@ CoverItem::CoverItem(NowPlaying *parent) :
TQLabel(parent, "CoverItem"), TQLabel(parent, "CoverItem"),
NowPlayingItem(parent) NowPlayingItem(parent)
{ {
setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2); setFixedHeight(parent->height() - parent->layout()->margin() * 2);
setFrameStyle(Box | Plain); setFrameStyle(Box | Plain);
setLineWidth(1); setLineWidth(1);
setMargin(1); setMargin(1);
@ -218,17 +218,17 @@ TrackItem::TrackItem(NowPlaying *parent) :
TQWidget(parent, "TrackItem"), TQWidget(parent, "TrackItem"),
NowPlayingItem(parent) NowPlayingItem(parent)
{ {
setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2); setFixedHeight(parent->height() - parent->layout()->margin() * 2);
setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
TQVBoxLayout *tqlayout = new TQVBoxLayout(this); TQVBoxLayout *layout = new TQVBoxLayout(this);
m_label = new LinkLabel(this); m_label = new LinkLabel(this);
m_label->setLinkUnderline(false); m_label->setLinkUnderline(false);
tqlayout->addStretch(); layout->addStretch();
tqlayout->addWidget(m_label); layout->addWidget(m_label);
tqlayout->addStretch(); layout->addStretch();
connect(m_label, TQT_SIGNAL(linkClicked(const TQString &)), this, connect(m_label, TQT_SIGNAL(linkClicked(const TQString &)), this,
TQT_SLOT(slotOpenLink(const TQString &))); TQT_SLOT(slotOpenLink(const TQString &)));
@ -291,7 +291,7 @@ HistoryItem::HistoryItem(NowPlaying *parent) :
LinkLabel(parent, "HistoryItem"), LinkLabel(parent, "HistoryItem"),
NowPlayingItem(parent) NowPlayingItem(parent)
{ {
setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2); setFixedHeight(parent->height() - parent->layout()->margin() * 2);
setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
setLinkUnderline(false); setLinkUnderline(false);
setText(TQString("<b>%1</b>").arg(i18n("History"))); setText(TQString("<b>%1</b>").arg(i18n("History")));

@ -727,12 +727,12 @@ void Playlist::synchronizePlayingItems(const PlaylistList &sources, bool setMast
void Playlist::copy() void Playlist::copy()
{ {
kapp->tqclipboard()->setData(dragObject(0), TQClipboard::Clipboard); kapp->clipboard()->setData(dragObject(0), TQClipboard::Clipboard);
} }
void Playlist::paste() void Playlist::paste()
{ {
decode(kapp->tqclipboard()->data(), static_cast<PlaylistItem *>(currentItem())); decode(kapp->clipboard()->data(), static_cast<PlaylistItem *>(currentItem()));
} }
void Playlist::clear() void Playlist::clear()

@ -208,7 +208,7 @@ void PlaylistBox::duplicate()
void PlaylistBox::paste() void PlaylistBox::paste()
{ {
Item *i = static_cast<Item *>(currentItem()); Item *i = static_cast<Item *>(currentItem());
decode(kapp->tqclipboard()->data(), i); decode(kapp->clipboard()->data(), i);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

@ -30,7 +30,7 @@ class PlaylistInterface;
class TagEditor; class TagEditor;
/** /**
* This is the main tqlayout class of JuK. It should contain a PlaylistBox and * This is the main layout class of JuK. It should contain a PlaylistBox and
* a TQWidgetStack of the Playlists. * a TQWidgetStack of the Playlists.
* *
* This class serves as a "mediator" (see "Design Patterns") between the JuK * This class serves as a "mediator" (see "Design Patterns") between the JuK

@ -118,7 +118,7 @@ protected:
inline char hashStringAccess(const TQString &in, int index) inline char hashStringAccess(const TQString &in, int index)
{ {
return in.tqunicode()[index].cell(); return in.unicode()[index].cell();
} }
inline char hashStringAccess(const TQCString &in, int index) inline char hashStringAccess(const TQCString &in, int index)

@ -90,7 +90,7 @@ private:
void createButtonBox(TQWidget *parent); void createButtonBox(TQWidget *parent);
// Creates the widget tqlayout for the popup, returning the TQVBox that // Creates the widget layout for the popup, returning the TQVBox that
// holds the text labels. Uses buttonsToLeft() to figure out which // holds the text labels. Uses buttonsToLeft() to figure out which
// order to create them in. @p file is used to grab the cover. // order to create them in. @p file is used to grab the cover.
TQVBox *createPopupLayout(TQWidget *parent, const FileHandle &file); TQVBox *createPopupLayout(TQWidget *parent, const FileHandle &file);

@ -481,16 +481,16 @@ void TagEditor::setupLayout()
static const int horizontalSpacing = 12; static const int horizontalSpacing = 12;
static const int verticalSpacing = 2; static const int verticalSpacing = 2;
TQHBoxLayout *tqlayout = new TQHBoxLayout(this, 6, horizontalSpacing); TQHBoxLayout *layout = new TQHBoxLayout(this, 6, horizontalSpacing);
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// define two columns of the bottem tqlayout // define two columns of the bottem layout
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
TQVBoxLayout *leftColumnLayout = new TQVBoxLayout(tqlayout, verticalSpacing); TQVBoxLayout *leftColumnLayout = new TQVBoxLayout(layout, verticalSpacing);
TQVBoxLayout *rightColumnLayout = new TQVBoxLayout(tqlayout, verticalSpacing); TQVBoxLayout *rightColumnLayout = new TQVBoxLayout(layout, verticalSpacing);
tqlayout->setStretchFactor(leftColumnLayout, 2); layout->setStretchFactor(leftColumnLayout, 2);
tqlayout->setStretchFactor(rightColumnLayout, 3); layout->setStretchFactor(rightColumnLayout, 3);
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// put stuff in the left column -- all of the field names are class wide // put stuff in the left column -- all of the field names are class wide
@ -711,9 +711,9 @@ void TagEditor::saveChangesPrompt()
} }
} }
void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlayout, const TQString &iconName) void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *layout, const TQString &iconName)
{ {
if(!item || !tqlayout) if(!item || !layout)
return; return;
TQLabel *label = new TQLabel(item, text, this); TQLabel *label = new TQLabel(item, text, this);
@ -727,14 +727,14 @@ void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlay
label->setMinimumHeight(enableBox->height()); label->setMinimumHeight(enableBox->height());
if(tqlayout->direction() == TQBoxLayout::LeftToRight) { if(layout->direction() == TQBoxLayout::LeftToRight) {
tqlayout->addWidget(iconLabel); layout->addWidget(iconLabel);
tqlayout->addWidget(label); layout->addWidget(label);
tqlayout->addWidget(item); layout->addWidget(item);
tqlayout->addWidget(enableBox); layout->addWidget(enableBox);
} }
else { else {
TQHBoxLayout *l = new TQHBoxLayout(tqlayout); TQHBoxLayout *l = new TQHBoxLayout(layout);
l->addWidget(iconLabel); l->addWidget(iconLabel);
l->addWidget(label); l->addWidget(label);
@ -745,7 +745,7 @@ void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlay
l->addWidget(enableBox); l->addWidget(enableBox);
l->setStretchFactor(enableBox, 0); l->setStretchFactor(enableBox, 0);
tqlayout->addWidget(item); layout->addWidget(item);
} }
enableBox->hide(); enableBox->hide();

@ -67,10 +67,10 @@ private:
void save(const PlaylistItemList &list); void save(const PlaylistItemList &list);
void saveChangesPrompt(); void saveChangesPrompt();
/** /**
* Adds an item to JuK's tagging tqlayout. This handles the creation and * Adds an item to JuK's tagging layout. This handles the creation and
* placement of the "enable" box as well. * placement of the "enable" box as well.
*/ */
void addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlayout, const TQString &iconName = TQString()); void addItem(const TQString &text, TQWidget *item, TQBoxLayout *layout, const TQString &iconName = TQString());
/** /**
* Adds a widget to m_hideList and returns that widget. * Adds a widget to m_hideList and returns that widget.

@ -80,10 +80,10 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
sliderBox->setFocusPolicy(TQ_ClickFocus); sliderBox->setFocusPolicy(TQ_ClickFocus);
sliderBox->setAcceptDrops(true); sliderBox->setAcceptDrops(true);
TQHBoxLayout *tqlayout = new TQHBoxLayout(sliderBox); TQHBoxLayout *layout = new TQHBoxLayout(sliderBox);
tqlayout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
tqlayout->setMargin(0); layout->setMargin(0);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQT_SLOT(play()), sliderBox); playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQT_SLOT(play()), sliderBox);
pauseButton = createButton(BarIconSet("player_pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox); pauseButton = createButton(BarIconSet("player_pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox);

@ -21,7 +21,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout5</cstring> <cstring>layout5</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -267,7 +267,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout4</cstring> <cstring>layout4</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -140,7 +140,7 @@
</spacer> </spacer>
<widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3"> <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -194,7 +194,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout1</cstring> <cstring>layout1</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">

@ -214,7 +214,7 @@
</spacer> </spacer>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -147,7 +147,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>tqlayout6</cstring> <cstring>layout6</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -117,7 +117,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout15</cstring> <cstring>layout15</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">

@ -234,7 +234,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout7</cstring> <cstring>layout7</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -488,7 +488,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout9</cstring> <cstring>layout9</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">

@ -75,7 +75,7 @@ void KTriangleButton::paint( TQPainter *painter )
{ {
if ( isDown() || isOn() ) if ( isDown() || isOn() )
{ {
if ( tqstyle().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
qDrawWinButton( painter, 0, 0, width(), qDrawWinButton( painter, 0, 0, width(),
height(), colorGroup(), TRUE ); height(), colorGroup(), TRUE );
else else
@ -84,7 +84,7 @@ void KTriangleButton::paint( TQPainter *painter )
} }
else if ( raised ) else if ( raised )
{ {
if ( tqstyle().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
qDrawWinButton( painter, 0, 0, width(), height(), qDrawWinButton( painter, 0, 0, width(), height(),
colorGroup(), FALSE ); colorGroup(), FALSE );
else else

@ -145,10 +145,10 @@ KMixWindow::initPrefDlg()
void void
KMixWindow::initWidgets() KMixWindow::initWidgets()
{ {
// Main widget and tqlayout // Main widget and layout
setCentralWidget( new TQWidget( this, "qt_central_widget" ) ); setCentralWidget( new TQWidget( this, "qt_central_widget" ) );
// Widgets tqlayout // Widgets layout
widgetsLayout = new TQVBoxLayout( centralWidget(), 0, 0, "widgetsLayout" ); widgetsLayout = new TQVBoxLayout( centralWidget(), 0, 0, "widgetsLayout" );
widgetsLayout->setResizeMode(TQLayout::Minimum); // works fine widgetsLayout->setResizeMode(TQLayout::Minimum); // works fine
@ -166,7 +166,7 @@ KMixWindow::initWidgets()
connect( m_cMixer, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( showSelectedMixer( int ) ) ); connect( m_cMixer, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( showSelectedMixer( int ) ) );
TQToolTip::add( m_cMixer, i18n("Current mixer" ) ); TQToolTip::add( m_cMixer, i18n("Current mixer" ) );
// Add first tqlayout to widgets // Add first layout to widgets
widgetsLayout->addWidget( mixerNameLayout ); widgetsLayout->addWidget( mixerNameLayout );
m_wsMixers = new TQWidgetStack( centralWidget(), "MixerWidgetStack" ); m_wsMixers = new TQWidgetStack( centralWidget(), "MixerWidgetStack" );
@ -522,11 +522,11 @@ KMixWindow::applyPrefs( KMixPrefDlg *prefDlg )
} }
if ( prefDlg->_rbVertical->isChecked() ) { if ( prefDlg->_rbVertical->isChecked() ) {
//TQString "For a change of language to take place, quit and restart KDiff3."; //TQString "For a change of language to take place, quit and restart KDiff3.";
//kdDebug(67100) << "KMix should change toQt::Vertical tqlayout\n"; //kdDebug(67100) << "KMix should change toQt::Vertical layout\n";
m_toplevelOrientation = Qt::Vertical; m_toplevelOrientation = Qt::Vertical;
} }
else if ( prefDlg->_rbHorizontal->isChecked() ) { else if ( prefDlg->_rbHorizontal->isChecked() ) {
//kdDebug(67100) << "KMix should change toQt::Horizontal tqlayout\n"; //kdDebug(67100) << "KMix should change toQt::Horizontal layout\n";
m_toplevelOrientation = Qt::Horizontal; m_toplevelOrientation = Qt::Horizontal;
} }
m_autoStart = prefDlg->m_autoStartChk->isChecked(); m_autoStart = prefDlg->m_autoStartChk->isChecked();

@ -76,13 +76,13 @@ KMixerWidget::KMixerWidget( int _id, Mixer *mixer, const TQString &mixerName,
{ {
// No mixer found // No mixer found
// !! Fix this: This is actually never shown! // !! Fix this: This is actually never shown!
TQBoxLayout *tqlayout = new TQHBoxLayout( this ); TQBoxLayout *layout = new TQHBoxLayout( this );
TQString s = i18n("Invalid mixer"); TQString s = i18n("Invalid mixer");
if ( !mixerName.isEmpty() ) if ( !mixerName.isEmpty() )
s.append(" \"").append(mixerName).append("\""); s.append(" \"").append(mixerName).append("\"");
TQLabel *errorLabel = new TQLabel( s, this ); TQLabel *errorLabel = new TQLabel( s, this );
errorLabel->setAlignment( TQLabel::AlignCenter | TQLabel::WordBreak ); errorLabel->setAlignment( TQLabel::AlignCenter | TQLabel::WordBreak );
tqlayout->addWidget( errorLabel ); layout->addWidget( errorLabel );
} }
} }
@ -103,7 +103,7 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags)
delete m_topLayout; delete m_topLayout;
} }
// create main tqlayout // create main layout
m_topLayout = new TQVBoxLayout( this, 0, 3, "m_topLayout" ); m_topLayout = new TQVBoxLayout( this, 0, 3, "m_topLayout" );
// Create tabs of input + output + [...] // Create tabs of input + output + [...]

@ -43,36 +43,36 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent )
// general buttons // general buttons
m_generalTab = plainPage( /* i18n("&General") */ ); m_generalTab = plainPage( /* i18n("&General") */ );
TQBoxLayout *tqlayout = new TQVBoxLayout( m_generalTab ); TQBoxLayout *layout = new TQVBoxLayout( m_generalTab );
tqlayout->setSpacing( KDialog::spacingHint() ); layout->setSpacing( KDialog::spacingHint() );
m_dockingChk = new TQCheckBox( i18n("&Dock into panel"), m_generalTab ); m_dockingChk = new TQCheckBox( i18n("&Dock into panel"), m_generalTab );
tqlayout->addWidget( m_dockingChk ); layout->addWidget( m_dockingChk );
TQWhatsThis::add(m_dockingChk, i18n("Docks the mixer into the KDE panel")); TQWhatsThis::add(m_dockingChk, i18n("Docks the mixer into the KDE panel"));
m_volumeChk = new TQCheckBox(i18n("Enable system tray &volume control"), m_volumeChk = new TQCheckBox(i18n("Enable system tray &volume control"),
m_generalTab); m_generalTab);
tqlayout->addWidget(m_volumeChk); layout->addWidget(m_volumeChk);
m_showTicks = new TQCheckBox( i18n("Show &tickmarks"), m_generalTab ); m_showTicks = new TQCheckBox( i18n("Show &tickmarks"), m_generalTab );
tqlayout->addWidget( m_showTicks ); layout->addWidget( m_showTicks );
TQWhatsThis::add(m_showTicks, TQWhatsThis::add(m_showTicks,
i18n("Enable/disable tickmark scales on the sliders")); i18n("Enable/disable tickmark scales on the sliders"));
m_showLabels = new TQCheckBox( i18n("Show &labels"), m_generalTab ); m_showLabels = new TQCheckBox( i18n("Show &labels"), m_generalTab );
tqlayout->addWidget( m_showLabels ); layout->addWidget( m_showLabels );
TQWhatsThis::add(m_showLabels, TQWhatsThis::add(m_showLabels,
i18n("Enables/disables description labels above the sliders")); i18n("Enables/disables description labels above the sliders"));
m_onLogin = new TQCheckBox( i18n("Restore volumes on login"), m_generalTab ); m_onLogin = new TQCheckBox( i18n("Restore volumes on login"), m_generalTab );
tqlayout->addWidget( m_onLogin ); layout->addWidget( m_onLogin );
m_dockIconMuting = new TQCheckBox( m_dockIconMuting = new TQCheckBox(
i18n("Middle click on system tray icon toggles muting"), m_generalTab ); i18n("Middle click on system tray icon toggles muting"), m_generalTab );
tqlayout->addWidget( m_dockIconMuting ); layout->addWidget( m_dockIconMuting );
TQBoxLayout *numbersLayout = new TQHBoxLayout( tqlayout ); TQBoxLayout *numbersLayout = new TQHBoxLayout( layout );
TQButtonGroup *numbersGroup = new TQButtonGroup( 3, Qt::Horizontal, i18n("Numbers"), m_generalTab ); TQButtonGroup *numbersGroup = new TQButtonGroup( 3, Qt::Horizontal, i18n("Numbers"), m_generalTab );
numbersGroup->setRadioButtonExclusive(true); numbersGroup->setRadioButtonExclusive(true);
TQLabel* qlbl = new TQLabel( i18n("Volume Values: "), m_generalTab ); TQLabel* qlbl = new TQLabel( i18n("Volume Values: "), m_generalTab );
@ -91,10 +91,10 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent )
numbersLayout->addStretch(); numbersLayout->addStretch();
m_autoStartChk = new TQCheckBox( i18n("&Autostart"), m_generalTab ); m_autoStartChk = new TQCheckBox( i18n("&Autostart"), m_generalTab );
tqlayout->addWidget( m_autoStartChk ); layout->addWidget( m_autoStartChk );
TQWhatsThis::add(m_autoStartChk, i18n("Automatically start mixer when you login")); TQWhatsThis::add(m_autoStartChk, i18n("Automatically start mixer when you login"));
TQBoxLayout *orientationLayout = new TQHBoxLayout( tqlayout ); TQBoxLayout *orientationLayout = new TQHBoxLayout( layout );
TQButtonGroup* orientationGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n("Orientation"), m_generalTab ); TQButtonGroup* orientationGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n("Orientation"), m_generalTab );
//orientationLayout->add(orientationGroup); //orientationLayout->add(orientationGroup);
orientationGroup->setRadioButtonExclusive(true); orientationGroup->setRadioButtonExclusive(true);
@ -112,7 +112,7 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent )
orientationLayout->add(_rbVertical); orientationLayout->add(_rbVertical);
orientationLayout->addStretch(); orientationLayout->addStretch();
tqlayout->addStretch(); layout->addStretch();
enableButtonSeparator(true); enableButtonSeparator(true);
connect( this, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(apply()) ); connect( this, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(apply()) );

@ -225,7 +225,7 @@ void KSmallSlider::paintEvent( TQPaintEvent * )
int sliderPos = positionFromValue( TQRangeControl::value() ); int sliderPos = positionFromValue( TQRangeControl::value() );
// ------------------------ draw 3d border --------------------------------------------- // ------------------------ draw 3d border ---------------------------------------------
tqstyle().tqdrawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TRUE ); style().tqdrawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TRUE );
// ------------------------ draw lower/left part ---------------------------------------- // ------------------------ draw lower/left part ----------------------------------------

@ -132,7 +132,7 @@ TQSize MDWEnum::sizeHint() const {
return _layout->sizeHint(); return _layout->sizeHint();
} }
else { else {
// tqlayout not (yet) created // layout not (yet) created
return TQWidget::sizeHint(); return TQWidget::sizeHint();
} }
} }

@ -133,7 +133,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
slidersLayout->setAlignment(TQt::AlignHCenter); slidersLayout->setAlignment(TQt::AlignHCenter);
} }
/* cesken: This is inconsistent. Why should vertical and horizontal tqlayout differ? /* cesken: This is inconsistent. Why should vertical and horizontal layout differ?
* Also it eats too much space - especially when you don't show sliders at all. * Also it eats too much space - especially when you don't show sliders at all.
* Even more on the vertical panel applet (see Bug #97667) * Even more on the vertical panel applet (see Bug #97667)
if ( _orientation == Qt::Horizontal ) if ( _orientation == Qt::Horizontal )
@ -213,36 +213,36 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// --- MUTE LED // --- MUTE LED
if ( showMuteLED ) { if ( showMuteLED ) {
TQBoxLayout *ledtqlayout; TQBoxLayout *ledlayout;
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
ledtqlayout = new TQHBoxLayout( sliLayout ); ledlayout = new TQHBoxLayout( sliLayout );
ledtqlayout->setAlignment(TQt::AlignVCenter); ledlayout->setAlignment(TQt::AlignVCenter);
} }
else { else {
ledtqlayout = new TQVBoxLayout( sliLayout ); ledlayout = new TQVBoxLayout( sliLayout );
ledtqlayout->setAlignment(TQt::AlignHCenter); ledlayout->setAlignment(TQt::AlignHCenter);
} }
if( m_mixdevice->hasMute() ) if( m_mixdevice->hasMute() )
{ {
ledtqlayout->addStretch(); ledlayout->addStretch();
// create mute LED // create mute LED
m_muteLED = new KLedButton( TQt::green, KLed::On, KLed::Sunken, m_muteLED = new KLedButton( TQt::green, KLed::On, KLed::Sunken,
KLed::Circular, this, "MuteLED" ); KLed::Circular, this, "MuteLED" );
m_muteLED->setFixedSize( TQSize(16, 16) ); m_muteLED->setFixedSize( TQSize(16, 16) );
m_muteLED->resize( TQSize(16, 16) ); m_muteLED->resize( TQSize(16, 16) );
ledtqlayout->addWidget( m_muteLED ); ledlayout->addWidget( m_muteLED );
TQToolTip::add( m_muteLED, i18n( "Mute" ) ); TQToolTip::add( m_muteLED, i18n( "Mute" ) );
connect( m_muteLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(toggleMuted()) ); connect( m_muteLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(toggleMuted()) );
m_muteLED->installEventFilter( this ); m_muteLED->installEventFilter( this );
ledtqlayout->addStretch(); ledlayout->addStretch();
} // has Mute LED } // has Mute LED
else { else {
// we don't have a MUTE LED. We create a dummy widget // we don't have a MUTE LED. We create a dummy widget
// !! possibly not neccesary any more (we are layouted) // !! possibly not neccesary any more (we are layouted)
TQWidget *qw = new TQWidget(this, "Spacer"); TQWidget *qw = new TQWidget(this, "Spacer");
qw->setFixedSize( TQSize(16, 16) ); qw->setFixedSize( TQSize(16, 16) );
ledtqlayout->addWidget(qw); ledlayout->addWidget(qw);
qw->installEventFilter( this ); qw->installEventFilter( this );
} // has no Mute LED } // has no Mute LED
@ -314,7 +314,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
slider->hide(); slider->hide();
number->hide(); number->hide();
} }
slinumLayout->addWidget( slider ); // add to tqlayout slinumLayout->addWidget( slider ); // add to layout
m_sliders.append ( slider ); // add to list m_sliders.append ( slider ); // add to list
_slidersChids.append(chid); // Remember slider-chid association _slidersChids.append(chid); // Remember slider-chid association
connect( slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(volumeChange(int)) ); connect( slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(volumeChange(int)) );
@ -327,27 +327,27 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
sliLayout->addSpacing( 5 ); sliLayout->addSpacing( 5 );
// --- LED LAYOUT TO CENTER --- // --- LED LAYOUT TO CENTER ---
TQBoxLayout *rectqlayout; TQBoxLayout *reclayout;
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
rectqlayout = new TQHBoxLayout( sliLayout ); reclayout = new TQHBoxLayout( sliLayout );
rectqlayout->setAlignment(TQt::AlignVCenter); reclayout->setAlignment(TQt::AlignVCenter);
} }
else { else {
rectqlayout = new TQVBoxLayout( sliLayout ); reclayout = new TQVBoxLayout( sliLayout );
rectqlayout->setAlignment(TQt::AlignHCenter); reclayout->setAlignment(TQt::AlignHCenter);
} }
if( m_mixdevice->isRecordable() ) { if( m_mixdevice->isRecordable() ) {
rectqlayout->addStretch(); reclayout->addStretch();
m_recordLED = new KLedButton( TQt::red, m_recordLED = new KLedButton( TQt::red,
m_mixdevice->isRecSource()?KLed::On:KLed::Off, m_mixdevice->isRecSource()?KLed::On:KLed::Off,
KLed::Sunken, KLed::Circular, this, "RecordLED" ); KLed::Sunken, KLed::Circular, this, "RecordLED" );
m_recordLED->setFixedSize( TQSize(16, 16) ); m_recordLED->setFixedSize( TQSize(16, 16) );
rectqlayout->addWidget( m_recordLED ); reclayout->addWidget( m_recordLED );
connect(m_recordLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(setRecsrc(bool))); connect(m_recordLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(setRecsrc(bool)));
m_recordLED->installEventFilter( this ); m_recordLED->installEventFilter( this );
TQToolTip::add( m_recordLED, i18n( "Record" ) ); TQToolTip::add( m_recordLED, i18n( "Record" ) );
rectqlayout->addStretch(); reclayout->addStretch();
} }
else else
{ {
@ -355,12 +355,12 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// !! possibly not neccesary any more (we are layouted) // !! possibly not neccesary any more (we are layouted)
TQWidget *qw = new TQWidget(this, "Spacer"); TQWidget *qw = new TQWidget(this, "Spacer");
qw->setFixedSize( TQSize(16, 16) ); qw->setFixedSize( TQSize(16, 16) );
rectqlayout->addWidget(qw); reclayout->addWidget(qw);
qw->installEventFilter( this ); qw->installEventFilter( this );
} // has no Record LED } // has no Record LED
} // showRecordLED } // showRecordLED
tqlayout()->activate(); layout()->activate();
} }
@ -438,7 +438,7 @@ MDWSlider::setIcon( int icontype )
kdError(67100) << "Pixmap missing." << endl; kdError(67100) << "Pixmap missing." << endl;
} }
tqlayout()->activate(); layout()->activate();
} }
bool bool
@ -514,7 +514,7 @@ MDWSlider::setStereoLinked(bool value)
if( slider && static_cast<TQSlider *>(slider)->tickmarks() ) if( slider && static_cast<TQSlider *>(slider)->tickmarks() )
setTicks( true ); setTicks( true );
tqlayout()->activate(); layout()->activate();
} }
@ -529,7 +529,7 @@ MDWSlider::setLabeled(bool value)
else else
m_label->hide(); m_label->hide();
tqlayout()->activate(); layout()->activate();
} }
void void
@ -558,7 +558,7 @@ MDWSlider::setTicks( bool ticks )
} }
} }
tqlayout()->activate(); layout()->activate();
} }
void void
@ -579,7 +579,7 @@ MDWSlider::setValueStyle( ValueStyle valueStyle )
} }
} }
} }
tqlayout()->activate(); layout()->activate();
} }
void void
@ -592,7 +592,7 @@ MDWSlider::setIcons(bool value)
else else
m_iconLabel->hide(); m_iconLabel->hide();
tqlayout()->activate(); layout()->activate();
} }
} // if it has an icon } // if it has an icon
} }
@ -939,7 +939,7 @@ TQSize MDWSlider::sizeHint() const {
return _layout->sizeHint(); return _layout->sizeHint();
} }
else { else {
// tqlayout not (yet) created // layout not (yet) created
return TQWidget::sizeHint(); return TQWidget::sizeHint();
} }
} }

@ -169,7 +169,7 @@ TQSize MDWSwitch::sizeHint() const {
return _layout->sizeHint(); return _layout->sizeHint();
} }
else { else {
// tqlayout not (yet) created // layout not (yet) created
return TQWidget::sizeHint(); return TQWidget::sizeHint();
} }
} }

@ -140,7 +140,7 @@ void ViewApplet::constructionFinished() {
TQSize ViewApplet::sizeHint() const { TQSize ViewApplet::sizeHint() const {
// Basically out main tqlayout knows very good what the sizes should be // Basically out main layout knows very good what the sizes should be
TQSize qsz = _layoutMDW->sizeHint(); TQSize qsz = _layoutMDW->sizeHint();
//kdDebug(67100) << "ViewApplet::sizeHint(): NewSize is " << qsz << "\n"; //kdDebug(67100) << "ViewApplet::sizeHint(): NewSize is " << qsz << "\n";
return qsz; return qsz;

@ -46,9 +46,9 @@
ViewDockAreaPopup::ViewDockAreaPopup(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW ) ViewDockAreaPopup::ViewDockAreaPopup(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW )
: ViewBase(parent, name, TQString(), mixer, WStyle_Customize | WType_Popup | TQt::WStyle_DialogBorder, vflags), _mdw(0), _dock(dockW) : ViewBase(parent, name, TQString(), mixer, WStyle_Customize | WType_Popup | TQt::WStyle_DialogBorder, vflags), _mdw(0), _dock(dockW)
{ {
TQBoxLayout *tqlayout = new TQHBoxLayout( this ); TQBoxLayout *layout = new TQHBoxLayout( this );
_frame = new TQFrame( this ); _frame = new TQFrame( this );
tqlayout->addWidget( _frame ); layout->addWidget( _frame );
_frame->setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised ); _frame->setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised );
_frame->setLineWidth( 1 ); _frame->setLineWidth( 1 );

@ -134,7 +134,7 @@ TQSize ViewGrid::sizeHint() const {
void ViewGrid::constructionFinished() { void ViewGrid::constructionFinished() {
//_layoutMDW->activate(); //_layoutMDW->activate();
// do a manual tqlayout // do a manual layout
configurationUpdate(); configurationUpdate();
} }

@ -154,7 +154,7 @@ TQWidget* ViewSurround::add(MixDevice *md)
case MixDevice::SURROUND: case MixDevice::SURROUND:
case MixDevice::AC97: case MixDevice::AC97:
default: default:
// Add as slider to the tqlayout on the left side // Add as slider to the layout on the left side
_layoutSliders->add(mdw); _layoutSliders->add(mdw);
break; break;
} // switch(type) } // switch(type)

@ -46,7 +46,7 @@ ViewSwitches::ViewSwitches(TQWidget* parent, const char* name, const TQString &
// Place enums right from the switches: This is done, so that there will be no // Place enums right from the switches: This is done, so that there will be no
// ugly space on the left side, when no Switch is shown. // ugly space on the left side, when no Switch is shown.
// Actually it is not really clear yet, why there is empty space at all: There are 0 items in // Actually it is not really clear yet, why there is empty space at all: There are 0 items in
// the _layoutEnum, so it might be a sizeHint() or some other subtle tqlayout issue. // the _layoutEnum, so it might be a sizeHint() or some other subtle layout issue.
_layoutEnum = new TQVBoxLayout(_layoutMDW); _layoutEnum = new TQVBoxLayout(_layoutMDW);
} }
init(); init();

@ -87,13 +87,13 @@ KRecConfigGeneral::KRecConfigGeneral( TQWidget* p, const char*, const TQStringLi
_tipofday = new TQCheckBox( i18n( "Show tip of the day at startup" ), this ); _tipofday = new TQCheckBox( i18n( "Show tip of the day at startup" ), this );
connect( _tipofday, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( tipofdaychanged( bool ) ) ); connect( _tipofday, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( tipofdaychanged( bool ) ) );
_layout->addWidget( _tipofday ); _layout->addWidget( _tipofday );
TQBoxLayout* _tmptqlayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight ); TQBoxLayout* _tmplayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
_enableAllMessages = new KPushButton( i18n( "Enable All Hidden Messages" ), this ); _enableAllMessages = new KPushButton( i18n( "Enable All Hidden Messages" ), this );
connect( _enableAllMessages, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableallmessagesclicked() ) ); connect( _enableAllMessages, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableallmessagesclicked() ) );
_tmptqlayout->addWidget( _enableAllMessages ); _tmplayout->addWidget( _enableAllMessages );
TQLabel* _tmplbl = new TQLabel( i18n( "<qt><i>All messages with the \"Don't show this message again\" option are shown again after selecting this button.</i></qt>" ), this ); TQLabel* _tmplbl = new TQLabel( i18n( "<qt><i>All messages with the \"Don't show this message again\" option are shown again after selecting this button.</i></qt>" ), this );
_tmptqlayout->addWidget( _tmplbl ); _tmplayout->addWidget( _tmplbl );
_layout->addLayout( _tmptqlayout ); _layout->addLayout( _tmplayout );
_layout->addStretch( 100 ); _layout->addStretch( 100 );

@ -225,7 +225,7 @@ Fri May 15 18:28:40 1998 Bernd Johannes Wuebben <wuebben@math.cornell.edu>
Tue Apr 14 05:17:36 1998 Bernd Johannes Wuebben <wuebben@math.cornell.edu> Tue Apr 14 05:17:36 1998 Bernd Johannes Wuebben <wuebben@math.cornell.edu>
* tqlayout corrections for kscd magic dialog * layout corrections for kscd magic dialog
Sat Jan 17 21:36:27 1998 Bernd Johannes Wuebben <wuebben@math.cornell.edu> Sat Jan 17 21:36:27 1998 Bernd Johannes Wuebben <wuebben@math.cornell.edu>

@ -6,4 +6,4 @@ AJS:
o fix eject button o fix eject button
o don't show "no disc" error on startup o don't show "no disc" error on startup
o direct digital playback o direct digital playback
o better GUI tqlayout for LCD panel o better GUI layout for LCD panel

@ -34,7 +34,7 @@
* @see #discChanged(): A disc was inserted or removed. * @see #discChanged(): A disc was inserted or removed.
* @see #trayOpening(): A disc is being removed. * @see #trayOpening(): A disc is being removed.
* *
* The progress of ptqlayout is modelled by these signals: * The progress of playout is modelled by these signals:
* *
* @see #trackPlaying(): A track started playing, or is still playing. * @see #trackPlaying(): A track started playing, or is still playing.
* @see #trackPaused(): A track was paused. * @see #trackPaused(): A track was paused.
@ -64,12 +64,12 @@ public:
void eject(); void eject();
/** /**
* Start ptqlayout at given position of track. * Start playout at given position of track.
*/ */
void play(unsigned startTrack = 0, unsigned startTrackPosition = 0, unsigned endTrack = 0); void play(unsigned startTrack = 0, unsigned startTrackPosition = 0, unsigned endTrack = 0);
/** /**
* Pause/resume ptqlayout. * Pause/resume playout.
*/ */
void pause(); void pause();
@ -96,7 +96,7 @@ public:
void setVolume(unsigned volume); void setVolume(unsigned volume);
/** /**
* Stop ptqlayout. * Stop playout.
*/ */
void stop(); void stop();

@ -21,7 +21,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef libtqunicode #ifdef libunicode
#include <tqunicode.h> #include <tqunicode.h>
#endif #endif
@ -155,12 +155,12 @@ void get_data_from_cdtext_pack(
int arr = pack->header_field_id2_tracknumber; int arr = pack->header_field_id2_tracknumber;
int i; int i;
int language_block; int language_block;
int tqunicode; int unicode;
language_block = (pack->header_field_id4_block_no >> 4) & 0x07; language_block = (pack->header_field_id4_block_no >> 4) & 0x07;
tqunicode = pack->header_field_id4_block_no & 0x80; unicode = pack->header_field_id4_block_no & 0x80;
if(!tqunicode) if(!unicode)
{ {
for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i++) for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i++)
{ {
@ -180,7 +180,7 @@ void get_data_from_cdtext_pack(
} }
} }
} }
#ifdef libtqunicode #ifdef libunicode
else /* doublebytes ;-) */ else /* doublebytes ;-) */
{ {
for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i += 2) for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i += 2)
@ -203,7 +203,7 @@ void get_data_from_cdtext_pack(
} }
#else #else
else { else {
wm_lib_message(WM_MSG_LEVEL_ERROR | WM_MSG_CLASS, "can't handle tqunicode"); wm_lib_message(WM_MSG_LEVEL_ERROR | WM_MSG_CLASS, "can't handle unicode");
} }
#endif #endif
} }
@ -315,9 +315,9 @@ get_glob_cdtext(struct wm_drive *d, int redo)
{ {
wm_cdtext_info.blocks[j] = lp_block; wm_cdtext_info.blocks[j] = lp_block;
wm_cdtext_info.blocks[j]->block_code = code; wm_cdtext_info.blocks[j]->block_code = code;
wm_cdtext_info.blocks[j]->block_tqunicode = pack->header_field_id4_block_no & 0x80; wm_cdtext_info.blocks[j]->block_unicode = pack->header_field_id4_block_no & 0x80;
wm_lib_message(WM_MSG_LEVEL_DEBUG | WM_MSG_CLASS, wm_lib_message(WM_MSG_LEVEL_DEBUG | WM_MSG_CLASS,
"CDTEXT INFO: created a new language block; code %i, %s characters\n", code, lp_block->block_tqunicode?"doublebyte":"singlebyte"); "CDTEXT INFO: created a new language block; code %i, %s characters\n", code, lp_block->block_unicode?"doublebyte":"singlebyte");
/* /*
unsigned char block_encoding; not jet! unsigned char block_encoding; not jet!
cdtext_string* block_encoding_text; cdtext_string* block_encoding_text;

@ -44,7 +44,7 @@ typedef unsigned char cdtext_string[MAX_LENGHT_OF_CDTEXT_STRING];
struct cdtext_info_block { struct cdtext_info_block {
/* management */ /* management */
unsigned char block_code; unsigned char block_code;
unsigned char block_tqunicode; /* 0 - single chars, 1 - doublebytes */ unsigned char block_unicode; /* 0 - single chars, 1 - doublebytes */
unsigned char block_encoding; /* orange book -? */ unsigned char block_encoding; /* orange book -? */
cdtext_string* block_encoding_text; cdtext_string* block_encoding_text;

@ -27,7 +27,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout8</cstring> <cstring>layout8</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -40,7 +40,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout6</cstring> <cstring>layout6</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -128,7 +128,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout7</cstring> <cstring>layout7</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -203,7 +203,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout5</cstring> <cstring>layout5</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">

@ -18,7 +18,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout1</cstring> <cstring>layout1</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -276,7 +276,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -58,10 +58,10 @@ CDDBModule::CDDBModule(TQWidget *parent, const char *name, const TQStringList &)
addConfig(cfg, widget_); addConfig(cfg, widget_);
TQVBoxLayout * tqlayout = new TQVBoxLayout(this, 0); TQVBoxLayout * layout = new TQVBoxLayout(this, 0);
tqlayout->addWidget(widget_); layout->addWidget(widget_);
tqlayout->addStretch(); layout->addStretch();
setQuickHelp(i18n("CDDB is used to get information like artist, title and song-names in CD's")); setQuickHelp(i18n("CDDB is used to get information like artist, title and song-names in CD's"));

@ -21,7 +21,7 @@
* Erik Corry's multi-byte dither routines. * Erik Corry's multi-byte dither routines.
* *
* The basic idea is that the Init generates all the necessary tables. * The basic idea is that the Init generates all the necessary tables.
* The tables incorporate the information about the tqlayout of pixels * The tables incorporate the information about the layout of pixels
* in the XImage, so that it should be able to cope with 15-bit, 16-bit * in the XImage, so that it should be able to cope with 15-bit, 16-bit
* 24-bit (non-packed) and 32-bit (10-11 bits per color!) screens. * 24-bit (non-packed) and 32-bit (10-11 bits per color!) screens.
* At present it cannot cope with 24-bit packed mode, since this involves * At present it cannot cope with 24-bit packed mode, since this involves

@ -88,24 +88,24 @@ General::General(TQObject *parent)
b->toggle(); b->toggle();
} }
TQGridLayout *tqlayout = new TQGridLayout(this, 0, KDialog::spacingHint()); TQGridLayout *layout = new TQGridLayout(this, 0, KDialog::spacingHint());
tqlayout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
tqlayout->addMultiCellWidget(mLoopList, 0, 0, 0, 1); layout->addMultiCellWidget(mLoopList, 0, 0, 0, 1);
tqlayout->addMultiCellWidget(mOneInstance, 2, 2, 0, 1); layout->addMultiCellWidget(mOneInstance, 2, 2, 0, 1);
tqlayout->addMultiCellWidget(mClearOnOpen, 4, 4, 0, 1); layout->addMultiCellWidget(mClearOnOpen, 4, 4, 0, 1);
tqlayout->addMultiCellWidget(mFastVolume, 5, 5, 0, 1); layout->addMultiCellWidget(mFastVolume, 5, 5, 0, 1);
tqlayout->addMultiCellWidget(mRemaining, 6, 6, 0, 1); layout->addMultiCellWidget(mRemaining, 6, 6, 0, 1);
tqlayout->addWidget(titleLabel, 7, 0); layout->addWidget(titleLabel, 7, 0);
tqlayout->addWidget(mTitleFormat, 7, 1); layout->addWidget(mTitleFormat, 7, 1);
tqlayout->addWidget(dlsaver, 8, 0); layout->addWidget(dlsaver, 8, 0);
tqlayout->addWidget(mDlSaver, 8, 1); layout->addWidget(mDlSaver, 8, 1);
tqlayout->addMultiCellWidget(mPlayOnStartup, 9, 9, 0, 1); layout->addMultiCellWidget(mPlayOnStartup, 9, 9, 0, 1);
tqlayout->setRowStretch(10, 1); layout->setRowStretch(10, 1);
} }

@ -64,17 +64,17 @@ void PresetList::rename(TQListViewItem *item, int c)
EqualizerLevel::EqualizerLevel(TQWidget *parent, VBand band) EqualizerLevel::EqualizerLevel(TQWidget *parent, VBand band)
: TQWidget(parent), mBand(band) : TQWidget(parent), mBand(band)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, TQVBoxLayout *layout = new TQVBoxLayout(this,
0, 0, "EqualizerLevel::tqlayout"); 0, 0, "EqualizerLevel::layout");
mSlider = new TQSlider(-200, 200, 25, 0, Qt::Vertical, this, "EqualizerLevel::mSlider"); mSlider = new TQSlider(-200, 200, 25, 0, Qt::Vertical, this, "EqualizerLevel::mSlider");
mSlider->setTickmarks(TQSlider::Left); mSlider->setTickmarks(TQSlider::Left);
mSlider->setTickInterval(25); mSlider->setTickInterval(25);
tqlayout->addWidget(mSlider); layout->addWidget(mSlider);
connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed(int))); connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed(int)));
mLabel = new TQLabel("", this, "EqualizerLevel::mLabel"); mLabel = new TQLabel("", this, "EqualizerLevel::mLabel");
mLabel->setAlignment(AlignHCenter | AlignVCenter); mLabel->setAlignment(AlignHCenter | AlignVCenter);
tqlayout->addWidget(mLabel); layout->addWidget(mLabel);
setMinimumHeight(200); setMinimumHeight(200);
// setMinimumWidth(kapp->fontMetrics().width("158kHz")); // setMinimumWidth(kapp->fontMetrics().width("158kHz"));

@ -24,7 +24,7 @@
</property> </property>
<widget class="TQLayoutWidget" row="1" column="0"> <widget class="TQLayoutWidget" row="1" column="0">
<property name="name"> <property name="name">
<cstring>tqlayout5</cstring> <cstring>layout5</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -80,7 +80,7 @@
</spacer> </spacer>
<widget class="TQLayoutWidget" row="1" column="1"> <widget class="TQLayoutWidget" row="1" column="1">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -238,7 +238,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="3"> <widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="3">
<property name="name"> <property name="name">
<cstring>tqlayout4</cstring> <cstring>layout4</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -54,35 +54,35 @@ TQMap<TQString, IRPrefs::Command> IRPrefs::s_commands;
IRPrefs::IRPrefs(TQObject *parent) IRPrefs::IRPrefs(TQObject *parent)
: CModule(i18n("Infrared Control"), i18n("Configure Infrared Commands"), "remote", parent) : CModule(i18n("Infrared Control"), i18n("Configure Infrared Commands"), "remote", parent)
{ {
TQGridLayout *tqlayout = new TQGridLayout(this, 3, 5, KDialog::marginHint(), KDialog::spacingHint()); TQGridLayout *layout = new TQGridLayout(this, 3, 5, KDialog::marginHint(), KDialog::spacingHint());
tqlayout->setColStretch(1, 1); layout->setColStretch(1, 1);
TQLabel *label = new TQLabel(i18n("Remote control &commands:"), this); TQLabel *label = new TQLabel(i18n("Remote control &commands:"), this);
tqlayout->addMultiCellWidget(label, 0, 0, 0, 4); layout->addMultiCellWidget(label, 0, 0, 0, 4);
label->setBuddy(m_commands = new KListView(this)); label->setBuddy(m_commands = new KListView(this));
tqlayout->addMultiCellWidget(m_commands, 1, 1, 0, 4); layout->addMultiCellWidget(m_commands, 1, 1, 0, 4);
label = new TQLabel(i18n("&Action:"), this); label = new TQLabel(i18n("&Action:"), this);
tqlayout->addWidget(label, 2, 0); layout->addWidget(label, 2, 0);
label->setBuddy(m_action = new KComboBox(this)); label->setBuddy(m_action = new KComboBox(this));
m_action->setEnabled(false); m_action->setEnabled(false);
tqlayout->addWidget(m_action, 2, 1); layout->addWidget(m_action, 2, 1);
m_repeat = new TQCheckBox(i18n("&Repeat"), this); m_repeat = new TQCheckBox(i18n("&Repeat"), this);
m_repeat->setEnabled(false); m_repeat->setEnabled(false);
tqlayout->addWidget(m_repeat, 2, 2); layout->addWidget(m_repeat, 2, 2);
label = new TQLabel(i18n("&Interval:"), this); label = new TQLabel(i18n("&Interval:"), this);
tqlayout->addWidget(label, 2, 3); layout->addWidget(label, 2, 3);
label->setBuddy(m_interval = new KIntSpinBox(this)); label->setBuddy(m_interval = new KIntSpinBox(this));
m_interval->setMinValue(1); m_interval->setMinValue(1);
m_interval->setMaxValue(0xff); m_interval->setMaxValue(0xff);
m_interval->setValue(10); m_interval->setValue(10);
m_interval->setEnabled(false); m_interval->setEnabled(false);
tqlayout->addWidget(m_interval, 2, 4); layout->addWidget(m_interval, 2, 4);
connect(s_lirc, TQT_SIGNAL(remotesRead()), TQT_SLOT(reopen())); connect(s_lirc, TQT_SIGNAL(remotesRead()), TQT_SLOT(reopen()));
connect(m_commands, connect(m_commands,

@ -174,9 +174,9 @@ KeyzPrefs::KeyzPrefs( TQObject *parent ) :
CModule( i18n("Keyz"), i18n("Shortcut Configuration"), "key_bindings", CModule( i18n("Keyz"), i18n("Shortcut Configuration"), "key_bindings",
parent ) parent )
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); TQVBoxLayout *layout = new TQVBoxLayout( this );
m_chooser = new KKeyChooser( Keyz::accel(), this ); m_chooser = new KKeyChooser( Keyz::accel(), this );
tqlayout->addWidget( m_chooser ); layout->addWidget( m_chooser );
} }
void KeyzPrefs::save() void KeyzPrefs::save()

@ -11,8 +11,8 @@ Finder::Finder(TQWidget *parent) : KDialogBase(parent, 0, false, i18n("Find"), C
mainWidget->setMinimumWidth(320); mainWidget->setMinimumWidth(320);
setMainWidget(mainWidget); setMainWidget(mainWidget);
TQGridLayout *tqlayout=new TQGridLayout(mainWidget); TQGridLayout *layout=new TQGridLayout(mainWidget);
tqlayout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
mText=new KHistoryCombo(mainWidget); mText=new KHistoryCombo(mainWidget);
mText->setMaxCount(10); mText->setMaxCount(10);
@ -22,9 +22,9 @@ Finder::Finder(TQWidget *parent) : KDialogBase(parent, 0, false, i18n("Find"), C
mRegexp=new TQCheckBox(i18n("&Regular expression"), mainWidget); mRegexp=new TQCheckBox(i18n("&Regular expression"), mainWidget);
mBackwards=new TQCheckBox(i18n("Find &backwards"), mainWidget); mBackwards=new TQCheckBox(i18n("Find &backwards"), mainWidget);
tqlayout->addMultiCellWidget(mText, 0, 0, 0, 1); layout->addMultiCellWidget(mText, 0, 0, 0, 1);
tqlayout->addWidget(mRegexp, 1, 0); layout->addWidget(mRegexp, 1, 0);
tqlayout->addWidget(mBackwards, 1, 1); layout->addWidget(mBackwards, 1, 1);
connect(this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(clicked())); connect(this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(clicked()));

@ -231,7 +231,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout1</cstring> <cstring>layout1</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -29,7 +29,7 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
"style", "style",
TQT_TQOBJECT(parent)) TQT_TQOBJECT(parent))
{ {
// Make a token horizontal tqlayout box // Make a token horizontal layout box
vbox = new TQVBoxLayout(this); vbox = new TQVBoxLayout(this);
vbox->setSpacing( 6 ); vbox->setSpacing( 6 );
vbox->setMargin( 0 ); vbox->setMargin( 0 );

Loading…
Cancel
Save