Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/37/head
Michele Calgaro 11 months ago
parent 10f6b171a8
commit 64efc07618
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -85,7 +85,7 @@ dotNETstyle::dotNETstyle() : TDEStyle( AllowMenuTransparency ), kickerMode(false
} }
if (tqApp->inherits("TDEApplication")) { if (tqApp->inherits("TDEApplication")) {
connect( tqApp, TQT_SIGNAL( tdedisplayPaletteChanged() ), TQT_SLOT( paletteChanged() )); connect( tqApp, TQ_SIGNAL( tdedisplayPaletteChanged() ), TQ_SLOT( paletteChanged() ));
} }
TQSettings settings; TQSettings settings;

@ -39,10 +39,10 @@ PhaseStyleConfig::PhaseStyleConfig(TQWidget* parent) : StyleDialog(parent)
highlights->setChecked(oldhighlights); highlights->setChecked(oldhighlights);
// connections // connections
connect(gradients, TQT_SIGNAL(toggled(bool)), connect(gradients, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(updateChanged())); this, TQ_SLOT(updateChanged()));
connect(highlights, TQT_SIGNAL(toggled(bool)), connect(highlights, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(updateChanged())); this, TQ_SLOT(updateChanged()));
} }
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

@ -465,7 +465,7 @@ EuphoriaWidget::EuphoriaWidget( TQWidget* parent, const char* name )
_frameTime = 1000 / 60; _frameTime = 1000 / 60;
_timer = new TQTimer( this ); _timer = new TQTimer( this );
connect( _timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(nextFrame()) ); connect( _timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(nextFrame()) );
} }
@ -1022,7 +1022,7 @@ KEuphoriaSetup::KEuphoriaSetup( TQWidget* parent, const char* name )
// Now that we have _saver... // Now that we have _saver...
modeW->setCurrentItem( _saver->mode() ); // set before we connect modeW->setCurrentItem( _saver->mode() ); // set before we connect
connect( modeW, TQT_SIGNAL(activated(int)), _saver, TQT_SLOT(setMode(int)) ); connect( modeW, TQ_SIGNAL(activated(int)), _saver, TQ_SLOT(setMode(int)) );
setMinimumSize( sizeHint() ); setMinimumSize( sizeHint() );
} }

@ -436,7 +436,7 @@ FluxWidget::FluxWidget( TQWidget* parent, const char* name )
_frameTime = 1000 / 60; _frameTime = 1000 / 60;
_timer = new TQTimer( this ); _timer = new TQTimer( this );
connect( _timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(nextFrame()) ); connect( _timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(nextFrame()) );
} }
@ -905,7 +905,7 @@ KFluxSetup::KFluxSetup( TQWidget* parent, const char* name )
// Now that we have _saver... // Now that we have _saver...
modeW->setCurrentItem( _saver->mode() ); // set before we connect modeW->setCurrentItem( _saver->mode() ); // set before we connect
connect( modeW, TQT_SIGNAL(activated(int)), _saver, TQT_SLOT(setMode(int)) ); connect( modeW, TQ_SIGNAL(activated(int)), _saver, TQ_SLOT(setMode(int)) );
} }

@ -317,7 +317,7 @@ SWindsWidget::SWindsWidget( TQWidget* parent, const char* name )
_frameTime = 1000 / 60; _frameTime = 1000 / 60;
_timer = new TQTimer( this ); _timer = new TQTimer( this );
connect( _timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(nextFrame()) ); connect( _timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(nextFrame()) );
} }
@ -717,7 +717,7 @@ KSWindsSetup::KSWindsSetup( TQWidget* parent, const char* name )
// Now that we have _saver... // Now that we have _saver...
modeW->setCurrentItem( _saver->mode() ); // set before we connect modeW->setCurrentItem( _saver->mode() ); // set before we connect
connect( modeW, TQT_SIGNAL(activated(int)), _saver, TQT_SLOT(setMode(int)) ); connect( modeW, TQ_SIGNAL(activated(int)), _saver, TQ_SLOT(setMode(int)) );
} }

@ -83,8 +83,8 @@ KBannerSetup::KBannerSetup( TQWidget *parent, const char *name )
TDEFontCombo* comboFonts = new TDEFontCombo( TQFontDatabase().families(), group ); TDEFontCombo* comboFonts = new TDEFontCombo( TQFontDatabase().families(), group );
comboFonts->setCurrentFont( fontFamily ); comboFonts->setCurrentFont( fontFamily );
gl->addWidget(comboFonts, 1, 1); gl->addWidget(comboFonts, 1, 1);
connect( comboFonts, TQT_SIGNAL( activated( const TQString& ) ), connect( comboFonts, TQ_SIGNAL( activated( const TQString& ) ),
TQT_SLOT( slotFamily( const TQString& ) ) ); TQ_SLOT( slotFamily( const TQString& ) ) );
label = new TQLabel( i18n("Size:"), group ); label = new TQLabel( i18n("Size:"), group );
gl->addWidget(label, 2, 0); gl->addWidget(label, 2, 0);
@ -92,33 +92,33 @@ KBannerSetup::KBannerSetup( TQWidget *parent, const char *name )
comboSizes = new TQComboBox( TRUE, group ); comboSizes = new TQComboBox( TRUE, group );
fillFontSizes(); fillFontSizes();
gl->addWidget(comboSizes, 2, 1); gl->addWidget(comboSizes, 2, 1);
connect( comboSizes, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotSize( int ) ) ); connect( comboSizes, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotSize( int ) ) );
connect( comboSizes, TQT_SIGNAL( textChanged( const TQString & ) ), connect( comboSizes, TQ_SIGNAL( textChanged( const TQString & ) ),
TQT_SLOT( slotSizeEdit( const TQString & ) ) ); TQ_SLOT( slotSizeEdit( const TQString & ) ) );
TQCheckBox *cb = new TQCheckBox( i18n("Bold"), TQCheckBox *cb = new TQCheckBox( i18n("Bold"),
group ); group );
cb->setChecked( bold ); cb->setChecked( bold );
connect( cb, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( slotBold( bool ) ) ); connect( cb, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( slotBold( bool ) ) );
gl->addWidget(cb, 3, 0); gl->addWidget(cb, 3, 0);
cb = new TQCheckBox( i18n("Italic"), group ); cb = new TQCheckBox( i18n("Italic"), group );
cb->setChecked( italic ); cb->setChecked( italic );
gl->addWidget(cb, 3, 1); gl->addWidget(cb, 3, 1);
connect( cb, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( slotItalic( bool ) ) ); connect( cb, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( slotItalic( bool ) ) );
label = new TQLabel( i18n("Color:"), group ); label = new TQLabel( i18n("Color:"), group );
gl->addWidget(label, 4, 0); gl->addWidget(label, 4, 0);
colorPush = new KColorButton( fontColor, group ); colorPush = new KColorButton( fontColor, group );
gl->addWidget(colorPush, 4, 1); gl->addWidget(colorPush, 4, 1);
connect( colorPush, TQT_SIGNAL( changed(const TQColor &) ), connect( colorPush, TQ_SIGNAL( changed(const TQColor &) ),
TQT_SLOT( slotColor(const TQColor &) ) ); TQ_SLOT( slotColor(const TQColor &) ) );
TQCheckBox *cyclingColorCb=new TQCheckBox(i18n("Cycling color"),group); TQCheckBox *cyclingColorCb=new TQCheckBox(i18n("Cycling color"),group);
cyclingColorCb->setMinimumSize(cyclingColorCb->sizeHint()); cyclingColorCb->setMinimumSize(cyclingColorCb->sizeHint());
gl->addMultiCellWidget(cyclingColorCb,5,5,0,1); gl->addMultiCellWidget(cyclingColorCb,5,5,0,1);
connect(cyclingColorCb,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotCyclingColor(bool))); connect(cyclingColorCb,TQ_SIGNAL(toggled(bool)),this,TQ_SLOT(slotCyclingColor(bool)));
cyclingColorCb->setChecked(cyclingColor); cyclingColorCb->setChecked(cyclingColor);
preview = new TQWidget( main ); preview = new TQWidget( main );
@ -140,7 +140,7 @@ KBannerSetup::KBannerSetup( TQWidget *parent, const char *name )
sb->setTickmarks(TQSlider::Below); sb->setTickmarks(TQSlider::Below);
sb->setTickInterval(10); sb->setTickInterval(10);
tl11->addWidget(sb); tl11->addWidget(sb);
connect( sb, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotSpeed( int ) ) ); connect( sb, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotSpeed( int ) ) );
TQHBoxLayout *tl2 = new TQHBoxLayout; TQHBoxLayout *tl2 = new TQHBoxLayout;
tl->addLayout(tl2); tl->addLayout(tl2);
@ -151,13 +151,13 @@ KBannerSetup::KBannerSetup( TQWidget *parent, const char *name )
ed = new TQLineEdit( main ); ed = new TQLineEdit( main );
tl2->addWidget(ed); tl2->addWidget(ed);
ed->setText( message ); ed->setText( message );
connect( ed, TQT_SIGNAL( textChanged( const TQString & ) ), connect( ed, TQ_SIGNAL( textChanged( const TQString & ) ),
TQT_SLOT( slotMessage( const TQString & ) ) ); TQ_SLOT( slotMessage( const TQString & ) ) );
TQCheckBox *timeCb=new TQCheckBox( i18n("Show current time"), main); TQCheckBox *timeCb=new TQCheckBox( i18n("Show current time"), main);
timeCb->setFixedSize(timeCb->sizeHint()); timeCb->setFixedSize(timeCb->sizeHint());
tl->addWidget(timeCb,0,TQt::AlignLeft); tl->addWidget(timeCb,0,TQt::AlignLeft);
connect(timeCb,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotTimeToggled(bool))); connect(timeCb,TQ_SIGNAL(toggled(bool)),this,TQ_SLOT(slotTimeToggled(bool)));
timeCb->setChecked(showTime); timeCb->setChecked(showTime);
tl->addStretch(); tl->addStretch();
@ -353,7 +353,7 @@ KBannerSaver::KBannerSaver( WId id ) : KScreenSaver( id )
colorContext = TQColor::enterAllocContext(); colorContext = TQColor::enterAllocContext();
needBlank = TRUE; needBlank = TRUE;
timer.start( speed ); timer.start( speed );
connect( &timer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotTimeout() ) ); connect( &timer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotTimeout() ) );
} }
KBannerSaver::~KBannerSaver() KBannerSaver::~KBannerSaver()

@ -169,7 +169,7 @@ KBlobSaver::KBlobSaver ( WId id)
// start timer which will update blob painter // start timer which will update blob painter
timer.start(SPEED); timer.start(SPEED);
connect(&timer, TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout())); connect(&timer, TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()));
} }
KBlobSaver::~KBlobSaver() KBlobSaver::~KBlobSaver()
@ -485,8 +485,8 @@ KBlobSetup::KBlobSetup
tl->addStretch(); tl->addStretch();
// so selecting an algorithm will start previewing that alg // so selecting an algorithm will start previewing that alg
connect(algs, TQT_SIGNAL(highlighted(int)), saver, connect(algs, TQ_SIGNAL(highlighted(int)), saver,
TQT_SLOT(setAlgorithm(int))); TQ_SLOT(setAlgorithm(int)));
} }
void KBlobSetup::readSettings() void KBlobSetup::readSettings()

@ -85,11 +85,11 @@ KFountainSetup::KFountainSetup( TQWidget *parent, const char *name )
//KButtonBox *bbox = new KButtonBox(this); //KButtonBox *bbox = new KButtonBox(this);
//bbox->addStretch(1); //bbox->addStretch(1);
; ;
connect( PushButton1, TQT_SIGNAL( clicked() ), TQT_SLOT( slotOkPressed() ) ); connect( PushButton1, TQ_SIGNAL( clicked() ), TQ_SLOT( slotOkPressed() ) );
connect( PushButton2, TQT_SIGNAL( clicked() ), TQT_SLOT( reject() ) ); connect( PushButton2, TQ_SIGNAL( clicked() ), TQ_SLOT( reject() ) );
connect( PushButton3, TQT_SIGNAL( clicked() ), TQT_SLOT( aboutPressed() ) ); connect( PushButton3, TQ_SIGNAL( clicked() ), TQ_SLOT( aboutPressed() ) );
connect( SpinBox1, TQT_SIGNAL( valueChanged(int)), saver, TQT_SLOT( updateSize(int))); connect( SpinBox1, TQ_SIGNAL( valueChanged(int)), saver, TQ_SLOT( updateSize(int)));
connect( RadioButton1, TQT_SIGNAL( toggled(bool)), saver, TQT_SLOT( doStars(bool))); connect( RadioButton1, TQ_SIGNAL( toggled(bool)), saver, TQ_SLOT( doStars(bool)));
} }
@ -158,7 +158,7 @@ KFountainSaver::KFountainSaver( WId id ) : KScreenSaver( id )
fountain = new Fountain(); fountain = new Fountain();
embed(fountain); embed(fountain);
fountain->show(); fountain->show();
connect( timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(blank()) ); connect( timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(blank()) );
} }
KFountainSaver::~KFountainSaver() KFountainSaver::~KFountainSaver()

@ -66,11 +66,11 @@ KGravitySetup::KGravitySetup( TQWidget *parent, const char *name )
#endif #endif
saver = new KGravitySaver( preview->winId() ); saver = new KGravitySaver( preview->winId() );
; ;
connect( PushButton1, TQT_SIGNAL( clicked() ), TQT_SLOT( slotOkPressed() ) ); connect( PushButton1, TQ_SIGNAL( clicked() ), TQ_SLOT( slotOkPressed() ) );
connect( PushButton2, TQT_SIGNAL( clicked() ), TQT_SLOT( reject() ) ); connect( PushButton2, TQ_SIGNAL( clicked() ), TQ_SLOT( reject() ) );
connect( PushButton3, TQT_SIGNAL( clicked() ), TQT_SLOT( aboutPressed() ) ); connect( PushButton3, TQ_SIGNAL( clicked() ), TQ_SLOT( aboutPressed() ) );
connect( SpinBox1, TQT_SIGNAL( valueChanged(int)), saver, TQT_SLOT( updateSize(int))); connect( SpinBox1, TQ_SIGNAL( valueChanged(int)), saver, TQ_SLOT( updateSize(int)));
connect( RadioButton1, TQT_SIGNAL( toggled(bool)), saver, TQT_SLOT( doStars(bool))); connect( RadioButton1, TQ_SIGNAL( toggled(bool)), saver, TQ_SLOT( doStars(bool)));
} }
@ -146,7 +146,7 @@ KGravitySaver::KGravitySaver( WId id ) : KScreenSaver( id )
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
gravity->show(); gravity->show();
#endif #endif
connect( timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(blank()) ); connect( timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(blank()) );
} }
KGravitySaver::~KGravitySaver() KGravitySaver::~KGravitySaver()

@ -92,8 +92,8 @@ KClockSetup::KClockSetup(TQWidget *parent, const char *name)
KColorButton *colorButton = new KColorButton(m_hourColor, colgroup); KColorButton *colorButton = new KColorButton(m_hourColor, colgroup);
colorButton->setFixedWidth(COLOR_BUTTON_WIDTH); colorButton->setFixedWidth(COLOR_BUTTON_WIDTH);
label->setBuddy(colorButton); label->setBuddy(colorButton);
connect(colorButton, TQT_SIGNAL(changed(const TQColor &)), connect(colorButton, TQ_SIGNAL(changed(const TQColor &)),
TQT_SLOT(slotHourColor(const TQColor &))); TQ_SLOT(slotHourColor(const TQColor &)));
grid->addWidget( label, 1, 1 ); grid->addWidget( label, 1, 1 );
grid->addWidget( colorButton, 1, 2 ); grid->addWidget( colorButton, 1, 2 );
@ -101,8 +101,8 @@ KClockSetup::KClockSetup(TQWidget *parent, const char *name)
colorButton = new KColorButton(m_minColor, colgroup); colorButton = new KColorButton(m_minColor, colgroup);
colorButton->setFixedWidth(COLOR_BUTTON_WIDTH); colorButton->setFixedWidth(COLOR_BUTTON_WIDTH);
label->setBuddy(colorButton); label->setBuddy(colorButton);
connect(colorButton, TQT_SIGNAL(changed(const TQColor &)), connect(colorButton, TQ_SIGNAL(changed(const TQColor &)),
TQT_SLOT(slotMinColor(const TQColor &))); TQ_SLOT(slotMinColor(const TQColor &)));
grid->addWidget( label, 2, 1 ); grid->addWidget( label, 2, 1 );
grid->addWidget( colorButton, 2, 2 ); grid->addWidget( colorButton, 2, 2 );
@ -110,8 +110,8 @@ KClockSetup::KClockSetup(TQWidget *parent, const char *name)
colorButton = new KColorButton(m_secColor, colgroup); colorButton = new KColorButton(m_secColor, colgroup);
colorButton->setFixedWidth(COLOR_BUTTON_WIDTH); colorButton->setFixedWidth(COLOR_BUTTON_WIDTH);
label->setBuddy(colorButton); label->setBuddy(colorButton);
connect(colorButton, TQT_SIGNAL(changed(const TQColor &)), connect(colorButton, TQ_SIGNAL(changed(const TQColor &)),
TQT_SLOT(slotSecColor(const TQColor &))); TQ_SLOT(slotSecColor(const TQColor &)));
grid->addWidget( label, 3, 1 ); grid->addWidget( label, 3, 1 );
grid->addWidget( colorButton, 3, 2 ); grid->addWidget( colorButton, 3, 2 );
@ -119,8 +119,8 @@ KClockSetup::KClockSetup(TQWidget *parent, const char *name)
colorButton = new KColorButton(m_scaleColor, colgroup); colorButton = new KColorButton(m_scaleColor, colgroup);
colorButton->setFixedWidth(COLOR_BUTTON_WIDTH); colorButton->setFixedWidth(COLOR_BUTTON_WIDTH);
label->setBuddy(colorButton); label->setBuddy(colorButton);
connect(colorButton, TQT_SIGNAL(changed(const TQColor &)), connect(colorButton, TQ_SIGNAL(changed(const TQColor &)),
TQT_SLOT(slotScaleColor(const TQColor &))); TQ_SLOT(slotScaleColor(const TQColor &)));
grid->addWidget( label, 4, 1 ); grid->addWidget( label, 4, 1 );
grid->addWidget( colorButton, 4, 2 ); grid->addWidget( colorButton, 4, 2 );
@ -128,8 +128,8 @@ KClockSetup::KClockSetup(TQWidget *parent, const char *name)
colorButton = new KColorButton(m_bgndColor, colgroup); colorButton = new KColorButton(m_bgndColor, colgroup);
colorButton->setFixedWidth(COLOR_BUTTON_WIDTH); colorButton->setFixedWidth(COLOR_BUTTON_WIDTH);
label->setBuddy(colorButton); label->setBuddy(colorButton);
connect(colorButton, TQT_SIGNAL(changed(const TQColor &)), connect(colorButton, TQ_SIGNAL(changed(const TQColor &)),
TQT_SLOT(slotBgndColor(const TQColor &))); TQ_SLOT(slotBgndColor(const TQColor &)));
grid->addWidget( label, 5, 1 ); grid->addWidget( label, 5, 1 );
grid->addWidget( colorButton, 5, 2 ); grid->addWidget( colorButton, 5, 2 );
@ -147,7 +147,7 @@ KClockSetup::KClockSetup(TQWidget *parent, const char *name)
label->setBuddy( qs ); label->setBuddy( qs );
qs->setTickInterval(1); qs->setTickInterval(1);
qs->setTickmarks(TQSlider::Below); qs->setTickmarks(TQSlider::Below);
connect(qs, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSliderMoved(int))); connect(qs, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotSliderMoved(int)));
top->addWidget( qs ); top->addWidget( qs );
bool rtl = kapp->reverseLayout(); bool rtl = kapp->reverseLayout();
@ -162,7 +162,7 @@ KClockSetup::KClockSetup(TQWidget *parent, const char *name)
TQCheckBox *keepCentered = new TQCheckBox(i18n("&Keep clock centered"), main); TQCheckBox *keepCentered = new TQCheckBox(i18n("&Keep clock centered"), main);
keepCentered->setChecked(m_keepCentered); keepCentered->setChecked(m_keepCentered);
connect(keepCentered, TQT_SIGNAL(stateChanged(int)), TQT_SLOT(slotKeepCenteredChanged(int))); connect(keepCentered, TQ_SIGNAL(stateChanged(int)), TQ_SLOT(slotKeepCenteredChanged(int)));
top->addWidget(keepCentered); top->addWidget(keepCentered);
top->addStretch(); top->addStretch();
} }
@ -426,7 +426,7 @@ KClockSaver::KClockSaver(WId id)
{ {
readSettings(); readSettings();
setBackgroundColor(m_bgndColor); setBackgroundColor(m_bgndColor);
connect(&m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout())); connect(&m_timer, TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()));
start(m_size); start(m_size);
m_timer.start(TIMER_INTERVALL); m_timer.start(TIMER_INTERVALL);
} }

@ -194,7 +194,7 @@ kVmSaver::kVmSaver( WId id ) : KScreenSaver( id )
pool_state = init_pool( this ); pool_state = init_pool( this );
vm_default_initstate( time(0), &(pool_state->pool->vm_random_data) ); vm_default_initstate( time(0), &(pool_state->pool->vm_random_data) );
connect( &timer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotTimeout() ) ); connect( &timer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotTimeout() ) );
timer.start( 100 - speed ); timer.start( 100 - speed );
} }
@ -296,8 +296,8 @@ kVmSetup::kVmSetup( TQWidget *parent, const char *name )
slider->setTickmarks( TQSlider::Below ); slider->setTickmarks( TQSlider::Below );
slider->setTickInterval( 10 ); slider->setTickInterval( 10 );
slider->setValue( speed ); slider->setValue( speed );
connect( slider, TQT_SIGNAL( valueChanged( int ) ), connect( slider, TQ_SIGNAL( valueChanged( int ) ),
TQT_SLOT( slotSpeed( int ) ) ); TQ_SLOT( slotSpeed( int ) ) );
tl1->addWidget(slider); tl1->addWidget(slider);
label = new TQLabel( i18n("Display update speed:"), main ); label = new TQLabel( i18n("Display update speed:"), main );
@ -310,8 +310,8 @@ kVmSetup::kVmSetup( TQWidget *parent, const char *name )
slider->setTickmarks( TQSlider::Below ); slider->setTickmarks( TQSlider::Below );
slider->setTickInterval( MAX_REFRESH_TIMEOUT/10 ); slider->setTickInterval( MAX_REFRESH_TIMEOUT/10 );
slider->setValue( MAX_REFRESH_TIMEOUT - refreshTimeout ); slider->setValue( MAX_REFRESH_TIMEOUT - refreshTimeout );
connect( slider, TQT_SIGNAL( valueChanged( int ) ), connect( slider, TQ_SIGNAL( valueChanged( int ) ),
TQT_SLOT( slotRefreshTimeout( int ) ) ); TQ_SLOT( slotRefreshTimeout( int ) ) );
tl1->addWidget(slider); tl1->addWidget(slider);
tl1->addStretch(); tl1->addStretch();

@ -133,7 +133,7 @@ kLinesSetup::kLinesSetup(TQWidget *parent, const char *name)
sb->setMinimumSize(120, 20); sb->setMinimumSize(120, 20);
sb->setTickmarks(TQSlider::Below); sb->setTickmarks(TQSlider::Below);
sb->setTickInterval(32); sb->setTickInterval(32);
connect(sb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotLength(int))); connect(sb, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotLength(int)));
tl1->addWidget(sb); tl1->addWidget(sb);
label=new TQLabel(i18n("Speed:"), main); label=new TQLabel(i18n("Speed:"), main);
@ -143,31 +143,31 @@ kLinesSetup::kLinesSetup(TQWidget *parent, const char *name)
sb->setMinimumSize(120, 20); sb->setMinimumSize(120, 20);
sb->setTickmarks(TQSlider::Below); sb->setTickmarks(TQSlider::Below);
sb->setTickInterval(10); sb->setTickInterval(10);
connect( sb, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotSpeed( int ) ) ); connect( sb, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotSpeed( int ) ) );
tl1->addWidget(sb); tl1->addWidget(sb);
label=new TQLabel(i18n("Beginning:"), main); label=new TQLabel(i18n("Beginning:"), main);
tl1->addWidget(label); tl1->addWidget(label);
colorPush0=new KColorButton(colstart, main); colorPush0=new KColorButton(colstart, main);
connect(colorPush0, TQT_SIGNAL(changed(const TQColor &)), connect(colorPush0, TQ_SIGNAL(changed(const TQColor &)),
TQT_SLOT(slotColstart(const TQColor &))); TQ_SLOT(slotColstart(const TQColor &)));
tl1->addWidget(colorPush0); tl1->addWidget(colorPush0);
label=new TQLabel(i18n("Middle:"), main); label=new TQLabel(i18n("Middle:"), main);
tl1->addWidget(label); tl1->addWidget(label);
colorPush1=new KColorButton(colmid, main); colorPush1=new KColorButton(colmid, main);
connect(colorPush1, TQT_SIGNAL(changed(const TQColor &)), connect(colorPush1, TQ_SIGNAL(changed(const TQColor &)),
TQT_SLOT(slotColmid(const TQColor &))); TQ_SLOT(slotColmid(const TQColor &)));
tl1->addWidget(colorPush1); tl1->addWidget(colorPush1);
label=new TQLabel(i18n("End:"), main); label=new TQLabel(i18n("End:"), main);
tl1->addWidget(label); tl1->addWidget(label);
colorPush2=new KColorButton(colend, main); colorPush2=new KColorButton(colend, main);
connect(colorPush2, TQT_SIGNAL(changed(const TQColor &)), connect(colorPush2, TQ_SIGNAL(changed(const TQColor &)),
TQT_SLOT(slotColend(const TQColor &))); TQ_SLOT(slotColend(const TQColor &)));
tl1->addWidget(colorPush2); tl1->addWidget(colorPush2);
tl1->addStretch(); tl1->addStretch();
@ -283,7 +283,7 @@ kLinesSaver::kLinesSaver( WId id ) : KScreenSaver( id ){
initialiseColor(); initialiseColor();
initialiseLines(); initialiseLines();
timer.start(speed); timer.start(speed);
connect(&timer, TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout())); connect(&timer, TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()));
} }
kLinesSaver::~kLinesSaver(){ kLinesSaver::~kLinesSaver(){

@ -86,7 +86,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name )
sps->setMinimumSize( 120, 20 ); sps->setMinimumSize( 120, 20 );
sps->setTickmarks(TQSlider::Below); sps->setTickmarks(TQSlider::Below);
sps->setTickInterval(150); sps->setTickInterval(150);
connect( sps, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotSpeed( int ) ) ); connect( sps, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotSpeed( int ) ) );
tl1->addWidget(sps); tl1->addWidget(sps);
label = new TQLabel( i18n("Epoch:"), main ); label = new TQLabel( i18n("Epoch:"), main );
@ -96,7 +96,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name )
eps->setMinimumSize( 120, 20 ); eps->setMinimumSize( 120, 20 );
eps->setTickmarks(TQSlider::Below); eps->setTickmarks(TQSlider::Below);
eps->setTickInterval(3000); eps->setTickInterval(3000);
connect( eps, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotEpoch( int ) ) ); connect( eps, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotEpoch( int ) ) );
tl1->addWidget(eps); tl1->addWidget(eps);
label = new TQLabel( i18n("Color rate:"), main ); label = new TQLabel( i18n("Color rate:"), main );
@ -106,7 +106,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name )
crs->setMinimumSize( 120, 20 ); crs->setMinimumSize( 120, 20 );
crs->setTickmarks(TQSlider::Below); crs->setTickmarks(TQSlider::Below);
crs->setTickInterval(10); crs->setTickInterval(10);
connect( crs, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotCRate( int ) ) ); connect( crs, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotCRate( int ) ) );
tl1->addWidget(crs); tl1->addWidget(crs);
label = new TQLabel( i18n("Rotation Z:"), main ); label = new TQLabel( i18n("Rotation Z:"), main );
@ -116,7 +116,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name )
zrs->setMinimumSize( 120, 20 ); zrs->setMinimumSize( 120, 20 );
zrs->setTickmarks(TQSlider::Below); zrs->setTickmarks(TQSlider::Below);
zrs->setTickInterval(36); zrs->setTickInterval(36);
connect( zrs, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotZRot( int ) ) ); connect( zrs, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotZRot( int ) ) );
tl1->addWidget(zrs); tl1->addWidget(zrs);
label = new TQLabel( i18n("Rotation Y:"), main ); label = new TQLabel( i18n("Rotation Y:"), main );
@ -126,7 +126,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name )
yrs->setMinimumSize( 120, 20 ); yrs->setMinimumSize( 120, 20 );
yrs->setTickmarks(TQSlider::Below); yrs->setTickmarks(TQSlider::Below);
yrs->setTickInterval(36); yrs->setTickInterval(36);
connect( yrs, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotYRot( int ) ) ); connect( yrs, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotYRot( int ) ) );
tl1->addWidget(yrs); tl1->addWidget(yrs);
label = new TQLabel( i18n("Rotation X:"), main ); label = new TQLabel( i18n("Rotation X:"), main );
@ -136,7 +136,7 @@ KLorenzSetup::KLorenzSetup( TQWidget *parent, const char *name )
xrs->setMinimumSize( 120, 20 ); xrs->setMinimumSize( 120, 20 );
xrs->setTickmarks(TQSlider::Below); xrs->setTickmarks(TQSlider::Below);
xrs->setTickInterval(36); xrs->setTickInterval(36);
connect( xrs, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotXRot( int ) ) ); connect( xrs, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotXRot( int ) ) );
tl1->addWidget(xrs); tl1->addWidget(xrs);
preview = new TQWidget( main ); preview = new TQWidget( main );
@ -446,7 +446,7 @@ KLorenzSaver::KLorenzSaver( WId id ) : KScreenSaver( id )
newEpoch(); newEpoch();
timer.start( 10 ); timer.start( 10 );
connect( &timer, TQT_SIGNAL( timeout() ), TQT_SLOT( drawOnce() ) ); connect( &timer, TQ_SIGNAL( timeout() ), TQ_SLOT( drawOnce() ) );
} }
KLorenzSaver::~KLorenzSaver() KLorenzSaver::~KLorenzSaver()

@ -379,7 +379,7 @@ KPendulumSaver::KPendulumSaver(WId id) :
// set up and start cyclic timer // set up and start cyclic timer
timer = new TQTimer(this); timer = new TQTimer(this);
timer->start(deltaT, TRUE); timer->start(deltaT, TRUE);
connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(doTimeStep())); connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(doTimeStep()));
} }
KPendulumSaver::~KPendulumSaver() KPendulumSaver::~KPendulumSaver()
@ -754,8 +754,8 @@ KPendulumSetup::KPendulumSetup(TQWidget* parent, const char* name)
// if the preview area is resized it emmits the resized() event which is // if the preview area is resized it emmits the resized() event which is
// caught by the saver. The embedded GlArea is resized to fit into the // caught by the saver. The embedded GlArea is resized to fit into the
// preview area. // preview area.
connect(preview, TQT_SIGNAL(resized(TQResizeEvent*)), connect(preview, TQ_SIGNAL(resized(TQResizeEvent*)),
saver, TQT_SLOT(resizeGlArea(TQResizeEvent*))); saver, TQ_SLOT(resizeGlArea(TQResizeEvent*)));
} }
KPendulumSetup::~KPendulumSetup() KPendulumSetup::~KPendulumSetup()

@ -71,7 +71,7 @@ kPolygonSetup::kPolygonSetup( TQWidget *parent, const char *name )
sb->setMinimumSize( 90, 20 ); sb->setMinimumSize( 90, 20 );
sb->setTickmarks(TQSlider::Below); sb->setTickmarks(TQSlider::Below);
sb->setTickInterval(10); sb->setTickInterval(10);
connect( sb, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotLength( int ) ) ); connect( sb, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotLength( int ) ) );
tl1->addWidget(sb); tl1->addWidget(sb);
label = new TQLabel( i18n("Vertices:"), main ); label = new TQLabel( i18n("Vertices:"), main );
@ -81,7 +81,7 @@ kPolygonSetup::kPolygonSetup( TQWidget *parent, const char *name )
sb->setMinimumSize( 90, 20 ); sb->setMinimumSize( 90, 20 );
sb->setTickmarks(TQSlider::Below); sb->setTickmarks(TQSlider::Below);
sb->setTickInterval(2); sb->setTickInterval(2);
connect( sb, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotVertices( int ) ) ); connect( sb, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotVertices( int ) ) );
tl1->addWidget(sb); tl1->addWidget(sb);
label = new TQLabel( i18n("Speed:"), main ); label = new TQLabel( i18n("Speed:"), main );
@ -91,7 +91,7 @@ kPolygonSetup::kPolygonSetup( TQWidget *parent, const char *name )
sb->setMinimumSize( 90, 20 ); sb->setMinimumSize( 90, 20 );
sb->setTickmarks(TQSlider::Below); sb->setTickmarks(TQSlider::Below);
sb->setTickInterval(10); sb->setTickInterval(10);
connect( sb, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotSpeed( int ) ) ); connect( sb, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotSpeed( int ) ) );
tl1->addWidget(sb); tl1->addWidget(sb);
tl1->addStretch(); tl1->addStretch();
@ -205,7 +205,7 @@ kPolygonSaver::kPolygonSaver( WId id ) : KScreenSaver( id )
initialisePolygons(); initialisePolygons();
timer.start( speed ); timer.start( speed );
connect( &timer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotTimeout() ) ); connect( &timer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotTimeout() ) );
} }
kPolygonSaver::~kPolygonSaver() kPolygonSaver::~kPolygonSaver()

@ -491,7 +491,7 @@ KRotationSaver::KRotationSaver(WId id)
timer = new TQTimer(this); timer = new TQTimer(this);
timer->start(deltaT, TRUE); timer->start(deltaT, TRUE);
connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(doTimeStep())); connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(doTimeStep()));
} }
KRotationSaver::~KRotationSaver() KRotationSaver::~KRotationSaver()
@ -754,8 +754,8 @@ KRotationSetup::KRotationSetup(TQWidget* parent, const char* name)
// if the preview area is resized it emmits the resized() event which is // if the preview area is resized it emmits the resized() event which is
// caught by the saver. The embedded GlArea is resized to fit into the // caught by the saver. The embedded GlArea is resized to fit into the
// preview area. // preview area.
connect(preview, TQT_SIGNAL(resized(TQResizeEvent*)), connect(preview, TQ_SIGNAL(resized(TQResizeEvent*)),
saver, TQT_SLOT(resizeGlArea(TQResizeEvent*))); saver, TQ_SLOT(resizeGlArea(TQResizeEvent*)));
} }
KRotationSetup::~KRotationSetup() KRotationSetup::~KRotationSetup()

@ -149,7 +149,7 @@ KScienceSaver::KScienceSaver( WId id, bool s, bool gP )
do_refresh( TQRect ( 0, 0, width(), height() ) ); do_refresh( TQRect ( 0, 0, width(), height() ) );
} }
connect( &timer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotTimeout() ) ); connect( &timer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotTimeout() ) );
timer.start( SCI_MAX_SPEED - speed[mode] ); timer.start( SCI_MAX_SPEED - speed[mode] );
} }
@ -870,26 +870,26 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name )
c->insertItem( modeInfo[i].name ); c->insertItem( modeInfo[i].name );
c->setCurrentItem( mode ); c->setCurrentItem( mode );
c->setFixedHeight( 5 * c->fontMetrics().height() ); c->setFixedHeight( 5 * c->fontMetrics().height() );
connect( c, TQT_SIGNAL( highlighted( int ) ), TQT_SLOT( slotMode( int ) ) ); connect( c, TQ_SIGNAL( highlighted( int ) ), TQ_SLOT( slotMode( int ) ) );
ltm->addWidget( c ); ltm->addWidget( c );
// inverse // inverse
TQCheckBox *cbox = checkInverse = new TQCheckBox( i18n("Inverse"), main ); TQCheckBox *cbox = checkInverse = new TQCheckBox( i18n("Inverse"), main );
cbox->setEnabled( modeInfo[mode].inverseEnable ); cbox->setEnabled( modeInfo[mode].inverseEnable );
cbox->setChecked( inverse[mode] ); cbox->setChecked( inverse[mode] );
connect( cbox, TQT_SIGNAL( clicked() ), TQT_SLOT( slotInverse() ) ); connect( cbox, TQ_SIGNAL( clicked() ), TQ_SLOT( slotInverse() ) );
ltm->addWidget( cbox ); ltm->addWidget( cbox );
// gravity // gravity
cbox = checkGravity = new TQCheckBox( i18n("Gravity"), main ); cbox = checkGravity = new TQCheckBox( i18n("Gravity"), main );
cbox->setChecked( gravity[mode] ); cbox->setChecked( gravity[mode] );
connect( cbox, TQT_SIGNAL( clicked() ), TQT_SLOT( slotGravity() ) ); connect( cbox, TQ_SIGNAL( clicked() ), TQ_SLOT( slotGravity() ) );
ltm->addWidget( cbox ); ltm->addWidget( cbox );
// hide background // hide background
cbox = checkHideBG = new TQCheckBox( i18n("Hide background"), main ); cbox = checkHideBG = new TQCheckBox( i18n("Hide background"), main );
cbox->setChecked( hideBG[mode] ); cbox->setChecked( hideBG[mode] );
connect( cbox, TQT_SIGNAL( clicked() ), TQT_SLOT( slotHideBG() ) ); connect( cbox, TQ_SIGNAL( clicked() ), TQ_SLOT( slotHideBG() ) );
ltm->addWidget( cbox ); ltm->addWidget( cbox );
ltm->addStretch(); ltm->addStretch();
@ -902,12 +902,12 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name )
slideSize->setMinimumSize( 90, 20 ); slideSize->setMinimumSize( 90, 20 );
slideSize->setTickmarks(TQSlider::Below); slideSize->setTickmarks(TQSlider::Below);
slideSize->setTickInterval(5); slideSize->setTickInterval(5);
connect( slideSize, TQT_SIGNAL( sliderMoved( int ) ), connect( slideSize, TQ_SIGNAL( sliderMoved( int ) ),
TQT_SLOT( slotSize( int ) ) ); TQ_SLOT( slotSize( int ) ) );
connect( slideSize, TQT_SIGNAL( sliderPressed() ), connect( slideSize, TQ_SIGNAL( sliderPressed() ),
TQT_SLOT( slotSliderPressed() ) ); TQ_SLOT( slotSliderPressed() ) );
connect( slideSize, TQT_SIGNAL( sliderReleased() ), connect( slideSize, TQ_SIGNAL( sliderReleased() ),
TQT_SLOT( slotSliderReleased() ) ); TQ_SLOT( slotSliderReleased() ) );
ltc->addWidget( slideSize ); ltc->addWidget( slideSize );
@ -920,12 +920,12 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name )
slideIntensity->setMinimumSize( 90, 20 ); slideIntensity->setMinimumSize( 90, 20 );
slideIntensity->setTickmarks(TQSlider::Below); slideIntensity->setTickmarks(TQSlider::Below);
slideIntensity->setTickInterval(1); slideIntensity->setTickInterval(1);
connect( slideIntensity, TQT_SIGNAL( sliderMoved( int ) ), connect( slideIntensity, TQ_SIGNAL( sliderMoved( int ) ),
TQT_SLOT( slotIntensity( int )) ); TQ_SLOT( slotIntensity( int )) );
connect( slideIntensity, TQT_SIGNAL( sliderPressed() ), connect( slideIntensity, TQ_SIGNAL( sliderPressed() ),
TQT_SLOT( slotSliderPressed() ) ); TQ_SLOT( slotSliderPressed() ) );
connect( slideIntensity, TQT_SIGNAL( sliderReleased() ), connect( slideIntensity, TQ_SIGNAL( sliderReleased() ),
TQT_SLOT( slotSliderReleased() ) ); TQ_SLOT( slotSliderReleased() ) );
ltc->addWidget( slideIntensity ); ltc->addWidget( slideIntensity );
// speed // speed
@ -937,8 +937,8 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name )
slideSpeed->setMinimumSize( 90, 20 ); slideSpeed->setMinimumSize( 90, 20 );
slideSpeed->setTickmarks(TQSlider::Below); slideSpeed->setTickmarks(TQSlider::Below);
slideSpeed->setTickInterval(10); slideSpeed->setTickInterval(10);
connect( slideSpeed, TQT_SIGNAL( sliderMoved( int ) ), connect( slideSpeed, TQ_SIGNAL( sliderMoved( int ) ),
TQT_SLOT( slotSpeed( int ) ) ); TQ_SLOT( slotSpeed( int ) ) );
ltc->addWidget( slideSpeed ); ltc->addWidget( slideSpeed );
// motion // motion
@ -953,8 +953,8 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name )
slideMoveX->setMinimumSize( 40, 20 ); slideMoveX->setMinimumSize( 40, 20 );
slideMoveX->setTickmarks(TQSlider::Below); slideMoveX->setTickmarks(TQSlider::Below);
slideMoveX->setTickInterval(5); slideMoveX->setTickInterval(5);
connect( slideMoveX, TQT_SIGNAL( sliderMoved( int ) ), connect( slideMoveX, TQ_SIGNAL( sliderMoved( int ) ),
TQT_SLOT( slotMoveX( int ) ) ); TQ_SLOT( slotMoveX( int ) ) );
ltcm->addWidget( slideMoveX ); ltcm->addWidget( slideMoveX );
slideMoveY = new TQSlider(0, SCI_MAX_MOVE, 5, moveY[mode], slideMoveY = new TQSlider(0, SCI_MAX_MOVE, 5, moveY[mode],
@ -962,8 +962,8 @@ KScienceSetup::KScienceSetup( TQWidget *parent, const char *name )
slideMoveY->setMinimumSize( 40, 20 ); slideMoveY->setMinimumSize( 40, 20 );
slideMoveY->setTickmarks(TQSlider::Below); slideMoveY->setTickmarks(TQSlider::Below);
slideMoveY->setTickInterval(5); slideMoveY->setTickInterval(5);
connect( slideMoveY, TQT_SIGNAL( sliderMoved( int ) ), connect( slideMoveY, TQ_SIGNAL( sliderMoved( int ) ),
TQT_SLOT( slotMoveY( int ) ) ); TQ_SLOT( slotMoveY( int ) ) );
ltcm->addWidget( slideMoveY ); ltcm->addWidget( slideMoveY );
ltc->addStretch(); ltc->addStretch();

@ -92,7 +92,7 @@ kSlideShowSaver::kSlideShowSaver( WId id ): KScreenSaver(id)
mEffectRunning = false; mEffectRunning = false;
mTimer.start(10, true); mTimer.start(10, true);
connect(&mTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout())); connect(&mTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()));
TQDesktopWidget *d = TQApplication::desktop(); TQDesktopWidget *d = TQApplication::desktop();
if( geometry() == d->geometry() && d->numScreens() > 1) if( geometry() == d->geometry() && d->numScreens() > 1)
@ -939,10 +939,10 @@ kSlideShowSetup::kSlideShowSetup(TQWidget *aParent, const char *aName)
mSaver = new kSlideShowSaver(cfg->mPreview->winId()); mSaver = new kSlideShowSaver(cfg->mPreview->winId());
cfg->mDirChooser->setMode(KFile::Directory | KFile::ExistingOnly); cfg->mDirChooser->setMode(KFile::Directory | KFile::ExistingOnly);
connect(cfg->mDirChooser, TQT_SIGNAL(returnPressed(const TQString &)), connect(cfg->mDirChooser, TQ_SIGNAL(returnPressed(const TQString &)),
TQT_SLOT(slotDirSelected(const TQString &))); TQ_SLOT(slotDirSelected(const TQString &)));
connect(cfg->mDirChooser, TQT_SIGNAL(urlSelected(const TQString &)), connect(cfg->mDirChooser, TQ_SIGNAL(urlSelected(const TQString &)),
TQT_SLOT(slotDirSelected(const TQString &))); TQ_SLOT(slotDirSelected(const TQString &)));
readSettings(); readSettings();
} }

@ -35,7 +35,7 @@ Screen::Screen(AASaver* widget): m_widget(widget)
// Setup animation timer. // Setup animation timer.
TQTimer* timer = new TQTimer(this); TQTimer* timer = new TQTimer(this);
connect(timer, SIGNAL(timeout()), SLOT(doAnimate())); connect(timer, TQ_SIGNAL(timeout()), TQ_SLOT(doAnimate()));
timer->start(msPerTick()); timer->start(msPerTick());
} }

@ -66,11 +66,11 @@ KWaveSetup::KWaveSetup( TQWidget *parent, const char *name )
preview->show(); // otherwise saver does not get correct size preview->show(); // otherwise saver does not get correct size
saver = new KWaveSaver( preview->winId() ); saver = new KWaveSaver( preview->winId() );
connect( PushButton1, TQT_SIGNAL( clicked() ), TQT_SLOT( slotOkPressed() ) ); connect( PushButton1, TQ_SIGNAL( clicked() ), TQ_SLOT( slotOkPressed() ) );
connect( PushButton2, TQT_SIGNAL( clicked() ), TQT_SLOT( reject() ) ); connect( PushButton2, TQ_SIGNAL( clicked() ), TQ_SLOT( reject() ) );
connect( PushButton3, TQT_SIGNAL( clicked() ), TQT_SLOT( aboutPressed() ) ); connect( PushButton3, TQ_SIGNAL( clicked() ), TQ_SLOT( aboutPressed() ) );
connect( SpinBox1, TQT_SIGNAL( valueChanged(int)), saver, TQT_SLOT( updateSize(int))); connect( SpinBox1, TQ_SIGNAL( valueChanged(int)), saver, TQ_SLOT( updateSize(int)));
connect( RadioButton1, TQT_SIGNAL( toggled(bool)), saver, TQT_SLOT( doStars(bool))); connect( RadioButton1, TQ_SIGNAL( toggled(bool)), saver, TQ_SLOT( doStars(bool)));
} }
@ -122,7 +122,7 @@ KWaveSaver::KWaveSaver( WId id ) : KScreenSaver( id )
wave = new Wave(); wave = new Wave();
embed(wave); embed(wave);
wave->show(); wave->show();
connect( timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(blank()) );; connect( timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(blank()) );;
} }
KWaveSaver::~KWaveSaver() KWaveSaver::~KWaveSaver()

@ -171,16 +171,16 @@ bool KXSConfigDialog::create()
item->read( config ); item->read( config );
TQWidget *i = dynamic_cast<TQWidget*>(item); TQWidget *i = dynamic_cast<TQWidget*>(item);
if (i) { if (i) {
connect( i, TQT_SIGNAL(changed()), TQT_SLOT(slotChanged()) ); connect( i, TQ_SIGNAL(changed()), TQ_SLOT(slotChanged()) );
} }
} }
mPreviewProc = new TDEProcess; mPreviewProc = new TDEProcess;
connect(mPreviewProc, TQT_SIGNAL(processExited(TDEProcess *)), connect(mPreviewProc, TQ_SIGNAL(processExited(TDEProcess *)),
TQT_SLOT(slotPreviewExited(TDEProcess *))); TQ_SLOT(slotPreviewExited(TDEProcess *)));
mPreviewTimer = new TQTimer(this); mPreviewTimer = new TQTimer(this);
connect(mPreviewTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotNewPreview())); connect(mPreviewTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotNewPreview()));
mPreview = new TQWidget(plainPage()); mPreview = new TQWidget(plainPage());
mPreview->setFixedSize(250, 200); mPreview->setFixedSize(250, 200);

@ -40,7 +40,7 @@ KXSRangeControl::KXSRangeControl(TQWidget *parent, const TQString &name,
TQLabel *label = new TQLabel(mLabel, this); TQLabel *label = new TQLabel(mLabel, this);
l->add(label); l->add(label);
mSlider = new TQSlider(mMinimum, mMaximum, 10, mValue, TQt::Horizontal, this); mSlider = new TQSlider(mMinimum, mMaximum, 10, mValue, TQt::Horizontal, this);
connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int))); connect(mSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotValueChanged(int)));
l->add(mSlider); l->add(mSlider);
} }
@ -56,7 +56,7 @@ KXSRangeControl::KXSRangeControl(TQWidget *parent, const TQString &name,
} }
mSpinBox = new TQSpinBox(mMinimum, mMaximum, 1, this); mSpinBox = new TQSpinBox(mMinimum, mMaximum, 1, this);
mSpinBox->setValue(mValue); mSpinBox->setValue(mValue);
connect(mSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int))); connect(mSpinBox, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotValueChanged(int)));
hb->add(mSpinBox); hb->add(mSpinBox);
} else { } else {
TQString lowLabel = attr.value("_low-label"); TQString lowLabel = attr.value("_low-label");
@ -72,7 +72,7 @@ KXSRangeControl::KXSRangeControl(TQWidget *parent, const TQString &name,
hb->addWidget(l); hb->addWidget(l);
} }
mSlider = new TQSlider(mMinimum, mMaximum, 10, mValue, TQt::Horizontal, this); mSlider = new TQSlider(mMinimum, mMaximum, 10, mValue, TQt::Horizontal, this);
connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int))); connect(mSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotValueChanged(int)));
hb->add(mSlider); hb->add(mSlider);
if (!highLabel.isEmpty()){ if (!highLabel.isEmpty()){
TQLabel *l = new TQLabel(i18n(highLabel.utf8()), this); TQLabel *l = new TQLabel(i18n(highLabel.utf8()), this);
@ -108,7 +108,7 @@ KXSDoubleRangeControl::KXSDoubleRangeControl(TQWidget *parent,
int value = int((mValue - mMinimum) * 100 / (mMaximum - mMinimum)); int value = int((mValue - mMinimum) * 100 / (mMaximum - mMinimum));
mSlider = new TQSlider(0, 100, 10, value, TQt::Horizontal, this); mSlider = new TQSlider(0, 100, 10, value, TQt::Horizontal, this);
connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int))); connect(mSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotValueChanged(int)));
l->add(mSlider); l->add(mSlider);
} }
@ -130,7 +130,7 @@ KXSDoubleRangeControl::KXSDoubleRangeControl(TQWidget *parent,
} }
int value = int((mValue - mMinimum) * 100 / (mMaximum - mMinimum)); int value = int((mValue - mMinimum) * 100 / (mMaximum - mMinimum));
mSlider = new TQSlider(0, 100, 10, value, TQt::Horizontal, this); mSlider = new TQSlider(0, 100, 10, value, TQt::Horizontal, this);
connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int))); connect(mSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotValueChanged(int)));
hb->add(mSlider); hb->add(mSlider);
if (!highLabel.isEmpty()){ if (!highLabel.isEmpty()){
TQLabel *l = new TQLabel(i18n(highLabel.utf8()), this); TQLabel *l = new TQLabel(i18n(highLabel.utf8()), this);
@ -158,7 +158,7 @@ KXSCheckBoxControl::KXSCheckBoxControl(TQWidget *parent, const TQString &name,
{ {
setText(mLabel); setText(mLabel);
setChecked(mValue); setChecked(mValue);
connect(this, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotToggled(bool))); connect(this, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotToggled(bool)));
} }
KXSCheckBoxControl::KXSCheckBoxControl(TQWidget *parent, const TQString &name, KXSCheckBoxControl::KXSCheckBoxControl(TQWidget *parent, const TQString &name,
@ -167,7 +167,7 @@ KXSCheckBoxControl::KXSCheckBoxControl(TQWidget *parent, const TQString &name,
{ {
setText(i18n(mLabel.utf8())); setText(i18n(mLabel.utf8()));
setChecked(mValue); setChecked(mValue);
connect(this, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotToggled(bool))); connect(this, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotToggled(bool)));
} }
void KXSCheckBoxControl::slotToggled(bool state) void KXSCheckBoxControl::slotToggled(bool state)
@ -194,7 +194,7 @@ KXSDropListControl::KXSDropListControl(TQWidget *parent, const TQString &name,
for(uint i=0; i < mOptions.count(); i++) for(uint i=0; i < mOptions.count(); i++)
mCombo->insertItem( i18n(mOptions[i].utf8()) ); mCombo->insertItem( i18n(mOptions[i].utf8()) );
mCombo->setCurrentItem(mValue); mCombo->setCurrentItem(mValue);
connect(mCombo, TQT_SIGNAL(activated(int)), TQT_SLOT(slotActivated(int))); connect(mCombo, TQ_SIGNAL(activated(int)), TQ_SLOT(slotActivated(int)));
l->add(mCombo); l->add(mCombo);
} }
@ -206,7 +206,7 @@ KXSDropListControl::KXSDropListControl(TQWidget *parent, const TQString &name,
TQLabel *label = new TQLabel(i18n(mLabel.utf8()), this); TQLabel *label = new TQLabel(i18n(mLabel.utf8()), this);
l->add(label); l->add(label);
mCombo = new TQComboBox(this); mCombo = new TQComboBox(this);
connect(mCombo, TQT_SIGNAL(activated(int)), TQT_SLOT(slotActivated(int))); connect(mCombo, TQ_SIGNAL(activated(int)), TQ_SLOT(slotActivated(int)));
l->add(mCombo); l->add(mCombo);
} }
@ -239,7 +239,7 @@ KXSLineEditControl::KXSLineEditControl(TQWidget *parent, const TQString &name,
TQLabel *label = new TQLabel(mLabel, this); TQLabel *label = new TQLabel(mLabel, this);
l->add(label); l->add(label);
mEdit = new TQLineEdit(this); mEdit = new TQLineEdit(this);
connect(mEdit, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(textChanged(const TQString &))); connect(mEdit, TQ_SIGNAL(textChanged(const TQString &)), TQ_SLOT(textChanged(const TQString &)));
l->add(mEdit); l->add(mEdit);
} }
@ -251,7 +251,7 @@ KXSLineEditControl::KXSLineEditControl(TQWidget *parent, const TQString &name,
TQLabel *label = new TQLabel(i18n(mLabel.utf8()), this); TQLabel *label = new TQLabel(i18n(mLabel.utf8()), this);
l->add(label); l->add(label);
mEdit = new TQLineEdit(this); mEdit = new TQLineEdit(this);
connect(mEdit, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(textChanged(const TQString &))); connect(mEdit, TQ_SIGNAL(textChanged(const TQString &)), TQ_SLOT(textChanged(const TQString &)));
l->add(mEdit); l->add(mEdit);
} }
@ -276,7 +276,7 @@ KXSFileControl::KXSFileControl(TQWidget *parent, const TQString &name,
TQLabel *label = new TQLabel(mLabel, this); TQLabel *label = new TQLabel(mLabel, this);
l->add(label); l->add(label);
mEdit = new TQLineEdit(this); mEdit = new TQLineEdit(this);
connect(mEdit, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(textChanged(const TQString &))); connect(mEdit, TQ_SIGNAL(textChanged(const TQString &)), TQ_SLOT(textChanged(const TQString &)));
l->add(mEdit); l->add(mEdit);
} }
@ -289,10 +289,10 @@ KXSFileControl::KXSFileControl(TQWidget *parent, const TQString &name,
l->add(label); l->add(label);
TQHBoxLayout *hb = new TQHBoxLayout(l); TQHBoxLayout *hb = new TQHBoxLayout(l);
mEdit = new TQLineEdit(this); mEdit = new TQLineEdit(this);
connect(mEdit, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(textChanged(const TQString &))); connect(mEdit, TQ_SIGNAL(textChanged(const TQString &)), TQ_SLOT(textChanged(const TQString &)));
hb->add(mEdit); hb->add(mEdit);
TQPushButton *pb = new TQPushButton( "...", this ); TQPushButton *pb = new TQPushButton( "...", this );
connect( pb, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectFile()) ); connect( pb, TQ_SIGNAL(clicked()), this, TQ_SLOT(selectFile()) );
hb->addWidget(pb); hb->addWidget(pb);
} }

@ -140,7 +140,7 @@ KPartSaver::KPartSaver( WId id )
next( m_random ); next( m_random );
m_timer = new TQTimer( this ); m_timer = new TQTimer( this );
m_timer->start( m_delay*1000, true ); m_timer->start( m_delay*1000, true );
connect( m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(timeout()) ); connect( m_timer, TQ_SIGNAL(timeout()), TQ_SLOT(timeout()) );
} }
} }
} }
@ -272,20 +272,20 @@ void KPartSaver::next( bool random )
SaverConfig::SaverConfig( TQWidget* parent, const char* name ) SaverConfig::SaverConfig( TQWidget* parent, const char* name )
: ConfigWidget( parent, name, true ) : ConfigWidget( parent, name, true )
{ {
connect( m_ok, TQT_SIGNAL(clicked()), TQT_SLOT(apply()) ); connect( m_ok, TQ_SIGNAL(clicked()), TQ_SLOT(apply()) );
connect( m_ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()) ); connect( m_ok, TQ_SIGNAL(clicked()), TQ_SLOT(accept()) );
connect( m_cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()) ); connect( m_cancel, TQ_SIGNAL(clicked()), TQ_SLOT(reject()) );
connect( m_multiple, TQT_SIGNAL(toggled(bool)), m_delayLabel, TQT_SLOT(setEnabled(bool)) ); connect( m_multiple, TQ_SIGNAL(toggled(bool)), m_delayLabel, TQ_SLOT(setEnabled(bool)) );
connect( m_multiple, TQT_SIGNAL(toggled(bool)), m_delay, TQT_SLOT(setEnabled(bool)) ); connect( m_multiple, TQ_SIGNAL(toggled(bool)), m_delay, TQ_SLOT(setEnabled(bool)) );
connect( m_multiple, TQT_SIGNAL(toggled(bool)), m_secondsLabel, TQT_SLOT(setEnabled(bool)) ); connect( m_multiple, TQ_SIGNAL(toggled(bool)), m_secondsLabel, TQ_SLOT(setEnabled(bool)) );
connect( m_multiple, TQT_SIGNAL(toggled(bool)), m_random, TQT_SLOT(setEnabled(bool)) ); connect( m_multiple, TQ_SIGNAL(toggled(bool)), m_random, TQ_SLOT(setEnabled(bool)) );
connect( m_files, TQT_SIGNAL(selectionChanged()), TQT_SLOT(select()) ); connect( m_files, TQ_SIGNAL(selectionChanged()), TQ_SLOT(select()) );
connect( m_add, TQT_SIGNAL(clicked()), TQT_SLOT(add()) ); connect( m_add, TQ_SIGNAL(clicked()), TQ_SLOT(add()) );
connect( m_remove, TQT_SIGNAL(clicked()), TQT_SLOT(remove()) ); connect( m_remove, TQ_SIGNAL(clicked()), TQ_SLOT(remove()) );
connect( m_up, TQT_SIGNAL(clicked()), TQT_SLOT(up()) ); connect( m_up, TQ_SIGNAL(clicked()), TQ_SLOT(up()) );
connect( m_down, TQT_SIGNAL(clicked()), TQT_SLOT(down()) ); connect( m_down, TQ_SIGNAL(clicked()), TQ_SLOT(down()) );
m_up->setIconSet( SmallIconSet("go-up") ); m_up->setIconSet( SmallIconSet("go-up") );
m_down->setIconSet( SmallIconSet("go-down") ); m_down->setIconSet( SmallIconSet("go-down") );

@ -509,7 +509,7 @@ kSpaceSaver::kSpaceSaver( Drawable drawable ) : kScreenSaver( drawable )
initSpace( mDrawable ); initSpace( mDrawable );
timer.start( speed ); timer.start( speed );
connect( &timer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotTimeout() ) ); connect( &timer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotTimeout() ) );
} }
kSpaceSaver::~kSpaceSaver() kSpaceSaver::~kSpaceSaver()
@ -597,7 +597,7 @@ kSpaceSetup::kSpaceSetup( TQWidget *parent, const char *name )
vb->addWidget( slider ); vb->addWidget( slider );
slider->setTickmarks(TQSlider::Below); slider->setTickmarks(TQSlider::Below);
slider->setTickInterval(10); slider->setTickInterval(10);
connect( slider, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotSpeed( int ) ) ); connect( slider, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotSpeed( int ) ) );
label = new TQLabel( i18n("Warp interval:"), page ); label = new TQLabel( i18n("Warp interval:"), page );
vb->addWidget( label ); vb->addWidget( label );
@ -606,7 +606,7 @@ kSpaceSetup::kSpaceSetup( TQWidget *parent, const char *name )
vb->addWidget( slider ); vb->addWidget( slider );
slider->setTickmarks(TQSlider::Below); slider->setTickmarks(TQSlider::Below);
slider->setTickInterval(3); slider->setTickInterval(3);
connect( slider, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotWarp( int ) ) ); connect( slider, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( slotWarp( int ) ) );
vb->addStrut( 150 ); vb->addStrut( 150 );
vb->addStretch(); vb->addStretch();

@ -272,7 +272,7 @@ kSwarmSaver::kSwarmSaver( Drawable drawable ) : kScreenSaver( drawable )
initswarm( mDrawable, rnd ); initswarm( mDrawable, rnd );
timer.start( speed ); timer.start( speed );
connect( &timer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotTimeout() ) ); connect( &timer, TQ_SIGNAL( timeout() ), TQ_SLOT( slotTimeout() ) );
} }
kSwarmSaver::~kSwarmSaver() kSwarmSaver::~kSwarmSaver()
@ -334,8 +334,8 @@ kSwarmSetup::kSwarmSetup( TQWidget *parent, const char *name )
slider->setMinimumSize( 120, 20 ); slider->setMinimumSize( 120, 20 );
slider->setTickmarks(TQSlider::Below); slider->setTickmarks(TQSlider::Below);
slider->setTickInterval(10); slider->setTickInterval(10);
connect( slider, TQT_SIGNAL( valueChanged( int ) ), connect( slider, TQ_SIGNAL( valueChanged( int ) ),
TQT_SLOT( slotSpeed( int ) ) ); TQ_SLOT( slotSpeed( int ) ) );
left->addWidget(slider); left->addWidget(slider);
label = new TQLabel( i18n("Number of bees:"), main ); label = new TQLabel( i18n("Number of bees:"), main );
@ -346,8 +346,8 @@ kSwarmSetup::kSwarmSetup( TQWidget *parent, const char *name )
slider->setMinimumSize( 120, 20 ); slider->setMinimumSize( 120, 20 );
slider->setTickmarks(TQSlider::Below); slider->setTickmarks(TQSlider::Below);
slider->setTickInterval(20); slider->setTickInterval(20);
connect( slider, TQT_SIGNAL( valueChanged( int ) ), connect( slider, TQ_SIGNAL( valueChanged( int ) ),
TQT_SLOT( slotLevels( int ) ) ); TQ_SLOT( slotLevels( int ) ) );
left->addWidget(slider); left->addWidget(slider);
left->addStretch(); left->addStretch();

@ -329,8 +329,8 @@ void CdeClient::addClientButtons( const TQString& s )
if ( ! button[BtnMenu] ) if ( ! button[BtnMenu] )
{ {
button[BtnMenu] = new CdeButton( this, "menu", BtnMenu, i18n("Menu"), TQt::LeftButton|TQt::RightButton ); button[BtnMenu] = new CdeButton( this, "menu", BtnMenu, i18n("Menu"), TQt::LeftButton|TQt::RightButton );
connect( button[BtnMenu], TQT_SIGNAL(pressed()), TQT_SLOT(menuButtonPressed()) ); connect( button[BtnMenu], TQ_SIGNAL(pressed()), TQ_SLOT(menuButtonPressed()) );
connect( button[BtnMenu], TQT_SIGNAL(released()), TQT_SLOT(menuButtonReleased()) ); connect( button[BtnMenu], TQ_SIGNAL(released()), TQ_SLOT(menuButtonReleased()) );
titleLayout->addWidget( button[BtnMenu] ); titleLayout->addWidget( button[BtnMenu] );
} }
break; break;
@ -341,7 +341,7 @@ void CdeClient::addClientButtons( const TQString& s )
{ {
button[BtnHelp] = new CdeButton( this, "help", BtnHelp, i18n("Help") ); button[BtnHelp] = new CdeButton( this, "help", BtnHelp, i18n("Help") );
connect(button[BtnHelp], connect(button[BtnHelp],
TQT_SIGNAL(clicked()), TQT_SLOT(showContextHelp())); TQ_SIGNAL(clicked()), TQ_SLOT(showContextHelp()));
titleLayout->addWidget( button[BtnHelp] ); titleLayout->addWidget( button[BtnHelp] );
} }
break; break;
@ -352,7 +352,7 @@ void CdeClient::addClientButtons( const TQString& s )
{ {
button[BtnIconify] = new CdeButton( this, "iconify", BtnIconify, i18n("Minimize") ); button[BtnIconify] = new CdeButton( this, "iconify", BtnIconify, i18n("Minimize") );
connect(button[BtnIconify], connect(button[BtnIconify],
TQT_SIGNAL(clicked()), TQT_SLOT(minimize())); TQ_SIGNAL(clicked()), TQ_SLOT(minimize()));
titleLayout->addWidget( button[BtnIconify] ); titleLayout->addWidget( button[BtnIconify] );
} }
break; break;
@ -362,8 +362,8 @@ void CdeClient::addClientButtons( const TQString& s )
if ( (! button[BtnMax] ) && isMaximizable() ) if ( (! button[BtnMax] ) && isMaximizable() )
{ {
button[BtnMax] = new CdeButton(this, "maximize", BtnMax, i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton); button[BtnMax] = new CdeButton(this, "maximize", BtnMax, i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton);
connect(button[BtnMax], TQT_SIGNAL(clicked()), connect(button[BtnMax], TQ_SIGNAL(clicked()),
TQT_SLOT(maximizeButtonClicked())); TQ_SLOT(maximizeButtonClicked()));
titleLayout->addWidget( button[BtnMax] ); titleLayout->addWidget( button[BtnMax] );
} }
break; break;
@ -373,7 +373,7 @@ void CdeClient::addClientButtons( const TQString& s )
if ( !button[BtnClose] && isCloseable()) if ( !button[BtnClose] && isCloseable())
{ {
button[BtnClose] = new CdeButton(this, "close", BtnClose, i18n("Close")); button[BtnClose] = new CdeButton(this, "close", BtnClose, i18n("Close"));
connect( button[BtnClose], TQT_SIGNAL( clicked()), TQT_SLOT(closeWindow()) ); connect( button[BtnClose], TQ_SIGNAL( clicked()), TQ_SLOT(closeWindow()) );
titleLayout->addWidget( button[BtnClose] ); titleLayout->addWidget( button[BtnClose] );
} }
// Add onAlldesktops button and spacers // Add onAlldesktops button and spacers

@ -54,9 +54,9 @@ CdeConfig::CdeConfig( TDEConfig* conf, TQWidget* parent )
load( conf ); load( conf );
// Ensure we track user changes properly // Ensure we track user changes properly
connect( cbColorBorder, TQT_SIGNAL(clicked()), TQT_SLOT(slotSelectionChanged()) ); connect( cbColorBorder, TQ_SIGNAL(clicked()), TQ_SLOT(slotSelectionChanged()) );
// connect( cbTitlebarButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotSelectionChanged()) ); // connect( cbTitlebarButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotSelectionChanged()) );
connect( bgAlign, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotSelectionChanged(int)) ); connect( bgAlign, TQ_SIGNAL(clicked(int)), TQ_SLOT(slotSelectionChanged(int)) );
// Make the widgets visible in twindecoration // Make the widgets visible in twindecoration
groupBox->show(); groupBox->show();

@ -73,8 +73,8 @@ GlowConfigDialog::GlowConfigDialog( TDEConfig * conf, TQWidget * parent )
_theme_list_view->setResizeMode(TQListView::AllColumns); _theme_list_view->setResizeMode(TQListView::AllColumns);
main_group_boxLayout->addWidget (_theme_list_view); main_group_boxLayout->addWidget (_theme_list_view);
TQObject::connect (_theme_list_view, TQT_SIGNAL(selectionChanged()), TQObject::connect (_theme_list_view, TQ_SIGNAL(selectionChanged()),
this, TQT_SLOT(slotThemeListViewSelectionChanged())); this, TQ_SLOT(slotThemeListViewSelectionChanged()));
slotLoadThemeList(); slotLoadThemeList();
_button_glow_color_group_box = new TQGroupBox( _button_glow_color_group_box = new TQGroupBox(
@ -121,14 +121,14 @@ GlowConfigDialog::GlowConfigDialog( TDEConfig * conf, TQWidget * parent )
_titleButtonMapper = new TQSignalMapper(this); _titleButtonMapper = new TQSignalMapper(this);
for( uint i=0; i<_titleButtonList.size(); i++ ) { for( uint i=0; i<_titleButtonList.size(); i++ ) {
_titleButtonMapper->setMapping(_titleButtonList[i], i); _titleButtonMapper->setMapping(_titleButtonList[i], i);
connect(_titleButtonList[i], TQT_SIGNAL(clicked()),_titleButtonMapper, TQT_SLOT(map())); connect(_titleButtonList[i], TQ_SIGNAL(clicked()),_titleButtonMapper, TQ_SLOT(map()));
} }
connect(_titleButtonMapper, TQT_SIGNAL(mapped(int)),this, TQT_SLOT(slotTitleButtonClicked(int))); connect(_titleButtonMapper, TQ_SIGNAL(mapped(int)),this, TQ_SLOT(slotTitleButtonClicked(int)));
_colorButton = new KColorButton(_button_glow_color_group_box); _colorButton = new KColorButton(_button_glow_color_group_box);
_colorButton->setEnabled(false); _colorButton->setEnabled(false);
connect(_colorButton, TQT_SIGNAL(changed(const TQColor&)), connect(_colorButton, TQ_SIGNAL(changed(const TQColor&)),
this, TQT_SLOT(slotColorButtonChanged(const TQColor&))); this, TQ_SLOT(slotColorButtonChanged(const TQColor&)));
colorHBoxLayout->addItem(new TQSpacerItem( colorHBoxLayout->addItem(new TQSpacerItem(
200, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum)); 200, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum));
@ -156,8 +156,8 @@ GlowConfigDialog::GlowConfigDialog( TDEConfig * conf, TQWidget * parent )
_titlebarGradientTypeComboBox->insertItem(gradPixmap, i); _titlebarGradientTypeComboBox->insertItem(gradPixmap, i);
} }
connect(_titlebarGradientTypeComboBox, TQT_SIGNAL(activated(int)), connect(_titlebarGradientTypeComboBox, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(slotTitlebarGradientTypeChanged(int))); this, TQ_SLOT(slotTitlebarGradientTypeChanged(int)));
titlebarGradientTypeLayout->addWidget( titlebarGradientTypeLayout->addWidget(
new TQLabel(i18n("Titlebar gradient:"), _main_group_box)); new TQLabel(i18n("Titlebar gradient:"), _main_group_box));
titlebarGradientTypeLayout->addWidget(_titlebarGradientTypeComboBox, 0, TQt::AlignLeft); titlebarGradientTypeLayout->addWidget(_titlebarGradientTypeComboBox, 0, TQt::AlignLeft);
@ -167,8 +167,8 @@ GlowConfigDialog::GlowConfigDialog( TDEConfig * conf, TQWidget * parent )
_showResizeHandleCheckBox = new TQCheckBox( _showResizeHandleCheckBox = new TQCheckBox(
i18n("Show resize handle"), _main_group_box); i18n("Show resize handle"), _main_group_box);
connect(_showResizeHandleCheckBox, TQT_SIGNAL(clicked()), connect(_showResizeHandleCheckBox, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotResizeHandleCheckBoxChanged())); this, TQ_SLOT(slotResizeHandleCheckBoxChanged()));
main_group_boxLayout->addWidget(_showResizeHandleCheckBox); main_group_boxLayout->addWidget(_showResizeHandleCheckBox);
// load config and update user interface // load config and update user interface

@ -90,7 +90,7 @@ GlowButton::GlowButton(TQWidget *parent, const char *name,
m_pixmapName = TQString(); m_pixmapName = TQString();
m_timer = new TQTimer(this); m_timer = new TQTimer(this);
connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout())); connect(m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimeout()));
m_pos = 0; m_pos = 0;
m_timerStatus = Stop; m_timerStatus = Stop;

@ -654,31 +654,31 @@ void GlowClient::createButtons()
m_stickyButton = factory->createGlowButton(widget(), m_stickyButton = factory->createGlowButton(widget(),
"StickyButton", isOnAllDesktops()?i18n("Not on all desktops"):i18n("On all desktops"), TQt::LeftButton|TQt::RightButton); "StickyButton", isOnAllDesktops()?i18n("Not on all desktops"):i18n("On all desktops"), TQt::LeftButton|TQt::RightButton);
m_stickyButton->setFixedSize(size); m_stickyButton->setFixedSize(size);
connect(m_stickyButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(toggleOnAllDesktops())); connect(m_stickyButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(toggleOnAllDesktops()));
m_buttonList.insert(m_buttonList.end(), m_stickyButton); m_buttonList.insert(m_buttonList.end(), m_stickyButton);
m_helpButton = factory->createGlowButton(widget(), m_helpButton = factory->createGlowButton(widget(),
"HelpButton", i18n("Help")); "HelpButton", i18n("Help"));
m_helpButton->setFixedSize(size); m_helpButton->setFixedSize(size);
connect(m_helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(showContextHelp())); connect(m_helpButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(showContextHelp()));
m_buttonList.insert(m_buttonList.end(), m_helpButton); m_buttonList.insert(m_buttonList.end(), m_helpButton);
m_minimizeButton = factory->createGlowButton(widget(), m_minimizeButton = factory->createGlowButton(widget(),
"IconifyButton", i18n("Minimize")); "IconifyButton", i18n("Minimize"));
m_minimizeButton->setFixedSize(size); m_minimizeButton->setFixedSize(size);
connect(m_minimizeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(minimize())); connect(m_minimizeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(minimize()));
m_buttonList.insert(m_buttonList.end(), m_minimizeButton); m_buttonList.insert(m_buttonList.end(), m_minimizeButton);
m_maximizeButton=factory->createGlowButton(widget(), m_maximizeButton=factory->createGlowButton(widget(),
"MaximizeButton", i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton); "MaximizeButton", i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton);
m_maximizeButton->setFixedSize(size); m_maximizeButton->setFixedSize(size);
connect(m_maximizeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMaximize())); connect(m_maximizeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotMaximize()));
m_buttonList.insert(m_buttonList.end(), m_maximizeButton); m_buttonList.insert(m_buttonList.end(), m_maximizeButton);
m_closeButton = factory->createGlowButton(widget(), m_closeButton = factory->createGlowButton(widget(),
"CloseButton", i18n("Close")); "CloseButton", i18n("Close"));
m_closeButton->setFixedSize(size); m_closeButton->setFixedSize(size);
connect(m_closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(closeWindow())); connect(m_closeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(closeWindow()));
m_buttonList.insert(m_buttonList.end(), m_closeButton); m_buttonList.insert(m_buttonList.end(), m_closeButton);
} }

@ -112,20 +112,20 @@ IceWMConfig::IceWMConfig( TDEConfig* conf, TQWidget* parent )
load( conf ); load( conf );
// Ensure we track user changes properly // Ensure we track user changes properly
connect( themeListBox, TQT_SIGNAL(selectionChanged()), connect( themeListBox, TQ_SIGNAL(selectionChanged()),
this, TQT_SLOT(slotSelectionChanged()) ); this, TQ_SLOT(slotSelectionChanged()) );
connect( urlLabel, TQT_SIGNAL(leftClickedURL(const TQString&)), connect( urlLabel, TQ_SIGNAL(leftClickedURL(const TQString&)),
this, TQT_SLOT(callURL(const TQString&))); this, TQ_SLOT(callURL(const TQString&)));
connect( cbThemeTitleTextColors, TQT_SIGNAL(clicked()), connect( cbThemeTitleTextColors, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotSelectionChanged()) ); this, TQ_SLOT(slotSelectionChanged()) );
connect( cbTitleBarOnTop, TQT_SIGNAL(clicked()), connect( cbTitleBarOnTop, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotSelectionChanged()) ); this, TQ_SLOT(slotSelectionChanged()) );
connect( cbShowMenuButtonIcon, TQT_SIGNAL(clicked()), connect( cbShowMenuButtonIcon, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotSelectionChanged()) ); this, TQ_SLOT(slotSelectionChanged()) );
// Create the theme directory (if not found) ... and obtain the path as we do so. // Create the theme directory (if not found) ... and obtain the path as we do so.
localThemeString = TDEGlobal::dirs()->saveLocation("data", "twin"); localThemeString = TDEGlobal::dirs()->saveLocation("data", "twin");
@ -135,9 +135,9 @@ IceWMConfig::IceWMConfig( TDEConfig* conf, TQWidget* parent )
// Watch the icewm theme directory for theme additions/removals // Watch the icewm theme directory for theme additions/removals
KDirWatch::self()->addDir(localThemeString); KDirWatch::self()->addDir(localThemeString);
connect( KDirWatch::self(), TQT_SIGNAL(dirty(const TQString&)), this, TQT_SLOT(findIceWMThemes()) ); connect( KDirWatch::self(), TQ_SIGNAL(dirty(const TQString&)), this, TQ_SLOT(findIceWMThemes()) );
connect( KDirWatch::self(), TQT_SIGNAL(created(const TQString&)), this, TQT_SLOT(findIceWMThemes()) ); connect( KDirWatch::self(), TQ_SIGNAL(created(const TQString&)), this, TQ_SLOT(findIceWMThemes()) );
connect( KDirWatch::self(), TQT_SIGNAL(deleted(const TQString&)), this, TQT_SLOT(findIceWMThemes()) ); connect( KDirWatch::self(), TQ_SIGNAL(deleted(const TQString&)), this, TQ_SLOT(findIceWMThemes()) );
// Set the konqui link url // Set the konqui link url
TQString urlThemeString = TQString("file://") + localThemeString; TQString urlThemeString = TQString("file://") + localThemeString;

@ -982,10 +982,10 @@ void IceWMClient::addClientButtons( const TQString& s )
button[BtnSysMenu] = new IceWMButton(this, "menu", button[BtnSysMenu] = new IceWMButton(this, "menu",
&menuButtonPix, false, i18n("Menu")); &menuButtonPix, false, i18n("Menu"));
connect( button[BtnSysMenu], TQT_SIGNAL(pressed()), connect( button[BtnSysMenu], TQ_SIGNAL(pressed()),
this, TQT_SLOT(menuButtonPressed())); this, TQ_SLOT(menuButtonPressed()));
connect( button[BtnSysMenu], TQT_SIGNAL(released()), connect( button[BtnSysMenu], TQ_SIGNAL(released()),
this, TQT_SLOT(menuButtonReleased())); this, TQ_SLOT(menuButtonReleased()));
hb->addWidget( button[BtnSysMenu] ); hb->addWidget( button[BtnSysMenu] );
} }
break; break;
@ -996,8 +996,8 @@ void IceWMClient::addClientButtons( const TQString& s )
button[BtnClose] = new IceWMButton(this, "close", button[BtnClose] = new IceWMButton(this, "close",
&closePix, false, i18n("Close")); &closePix, false, i18n("Close"));
hb->addWidget( button[BtnClose] ); hb->addWidget( button[BtnClose] );
connect( button[BtnClose], TQT_SIGNAL(clicked()), connect( button[BtnClose], TQ_SIGNAL(clicked()),
this, TQT_SLOT(closeWindow())); this, TQ_SLOT(closeWindow()));
} }
break; break;
@ -1007,8 +1007,8 @@ void IceWMClient::addClientButtons( const TQString& s )
button[BtnMaximize] = new IceWMButton(this, "maximize", button[BtnMaximize] = new IceWMButton(this, "maximize",
&maximizePix, false, i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton); &maximizePix, false, i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton);
hb->addWidget( button[BtnMaximize] ); hb->addWidget( button[BtnMaximize] );
connect( button[BtnMaximize], TQT_SIGNAL(clicked()), connect( button[BtnMaximize], TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotMaximize())); this, TQ_SLOT(slotMaximize()));
} }
break; break;
@ -1019,8 +1019,8 @@ void IceWMClient::addClientButtons( const TQString& s )
button[BtnMinimize] = new IceWMButton(this, "minimize", button[BtnMinimize] = new IceWMButton(this, "minimize",
&minimizePix, false, i18n("Minimize")); &minimizePix, false, i18n("Minimize"));
hb->addWidget( button[BtnMinimize] ); hb->addWidget( button[BtnMinimize] );
connect( button[BtnMinimize], TQT_SIGNAL(clicked()), connect( button[BtnMinimize], TQ_SIGNAL(clicked()),
this, TQT_SLOT(minimize())); this, TQ_SLOT(minimize()));
} }
break; break;
@ -1038,8 +1038,8 @@ void IceWMClient::addClientButtons( const TQString& s )
isSetShade() ? &rolldownPix : &rollupPix, isSetShade() ? &rolldownPix : &rollupPix,
false, i18n("Rollup")); false, i18n("Rollup"));
hb->addWidget( button[BtnRollup] ); hb->addWidget( button[BtnRollup] );
connect( button[BtnRollup], TQT_SIGNAL(clicked()), connect( button[BtnRollup], TQ_SIGNAL(clicked()),
this, TQT_SLOT(toggleShade())); this, TQ_SLOT(toggleShade()));
} }
break; break;
@ -1051,8 +1051,8 @@ void IceWMClient::addClientButtons( const TQString& s )
&depthPix, true, isOnAllDesktops()?i18n("Not on all desktops"):i18n("On all desktops")); &depthPix, true, isOnAllDesktops()?i18n("Not on all desktops"):i18n("On all desktops"));
button[BtnDepth]->turnOn( isOnAllDesktops() ); button[BtnDepth]->turnOn( isOnAllDesktops() );
hb->addWidget( button[BtnDepth] ); hb->addWidget( button[BtnDepth] );
connect( button[BtnDepth], TQT_SIGNAL(clicked()), connect( button[BtnDepth], TQ_SIGNAL(clicked()),
this, TQT_SLOT(toggleOnAllDesktops())); this, TQ_SLOT(toggleOnAllDesktops()));
} }
break; break;
} }

@ -312,7 +312,7 @@ void StdClient::addButtons(TQBoxLayout *hb, const TQString& s)
button[ButtonMenu]->setIconSet(isActive() ? *menu_pix : *dis_menu_pix); button[ButtonMenu]->setIconSet(isActive() ? *menu_pix : *dis_menu_pix);
else else
button[ButtonMenu]->setIconSet( icon().pixmap( TQIconSet::Small, TQIconSet::Normal )); button[ButtonMenu]->setIconSet( icon().pixmap( TQIconSet::Small, TQIconSet::Normal ));
connect( button[0], TQT_SIGNAL( pressed() ), this, TQT_SLOT( menuButtonPressed() ) ); connect( button[0], TQ_SIGNAL( pressed() ), this, TQ_SLOT( menuButtonPressed() ) );
hb->addWidget(button[ButtonMenu]); hb->addWidget(button[ButtonMenu]);
} }
break; break;
@ -325,7 +325,7 @@ void StdClient::addButtons(TQBoxLayout *hb, const TQString& s)
button[ButtonSticky]->setCursor(ArrowCursor); button[ButtonSticky]->setCursor(ArrowCursor);
button[ButtonSticky]->setIconSet(isOnAllDesktops() ? isActive() ? *pindown_pix : *dis_pindown_pix : button[ButtonSticky]->setIconSet(isOnAllDesktops() ? isActive() ? *pindown_pix : *dis_pindown_pix :
isActive() ? *pinup_pix : *dis_pinup_pix ); isActive() ? *pinup_pix : *dis_pinup_pix );
connect( button[ButtonSticky], TQT_SIGNAL( clicked() ), this, ( TQT_SLOT( toggleOnAllDesktops() ) ) ); connect( button[ButtonSticky], TQ_SIGNAL( clicked() ), this, ( TQ_SLOT( toggleOnAllDesktops() ) ) );
hb->addWidget(button[ButtonSticky]); hb->addWidget(button[ButtonSticky]);
} }
break; break;
@ -335,7 +335,7 @@ void StdClient::addButtons(TQBoxLayout *hb, const TQString& s)
button[ButtonHelp] = new TQToolButton( widget(), 0 ); button[ButtonHelp] = new TQToolButton( widget(), 0 );
TQToolTip::add( button[ButtonHelp], i18n("Help") ); TQToolTip::add( button[ButtonHelp], i18n("Help") );
button[ButtonHelp]->setIconSet( isActive() ? *question_mark_pix : *dis_question_mark_pix); button[ButtonHelp]->setIconSet( isActive() ? *question_mark_pix : *dis_question_mark_pix);
connect( button[ButtonHelp], TQT_SIGNAL( clicked() ), this, ( TQT_SLOT( showContextHelp() ) ) ); connect( button[ButtonHelp], TQ_SIGNAL( clicked() ), this, ( TQ_SLOT( showContextHelp() ) ) );
button[ButtonHelp]->setCursor(ArrowCursor); button[ButtonHelp]->setCursor(ArrowCursor);
hb->addWidget(button[ButtonHelp]); hb->addWidget(button[ButtonHelp]);
} }
@ -347,7 +347,7 @@ void StdClient::addButtons(TQBoxLayout *hb, const TQString& s)
TQToolTip::add( button[ButtonMinimize], i18n("Minimize") ); TQToolTip::add( button[ButtonMinimize], i18n("Minimize") );
button[ButtonMinimize]->setCursor(ArrowCursor); button[ButtonMinimize]->setCursor(ArrowCursor);
button[ButtonMinimize]->setIconSet(isActive() ? *minimize_pix : *dis_minimize_pix); button[ButtonMinimize]->setIconSet(isActive() ? *minimize_pix : *dis_minimize_pix);
connect( button[ButtonMinimize], TQT_SIGNAL( clicked() ), this, ( TQT_SLOT( minimize() ) ) ); connect( button[ButtonMinimize], TQ_SIGNAL( clicked() ), this, ( TQ_SLOT( minimize() ) ) );
hb->addWidget(button[ButtonMinimize]); hb->addWidget(button[ButtonMinimize]);
} }
break; break;
@ -359,8 +359,8 @@ void StdClient::addButtons(TQBoxLayout *hb, const TQString& s)
TQToolTip::add( button[ButtonMaximize], max?i18n("Restore"):i18n("Maximize") ); TQToolTip::add( button[ButtonMaximize], max?i18n("Restore"):i18n("Maximize") );
button[ButtonMaximize]->setCursor(ArrowCursor); button[ButtonMaximize]->setCursor(ArrowCursor);
button[ButtonMaximize]->setIconSet( max?(isActive() ? *normalize_pix : *dis_normalize_pix):(isActive() ? *maximize_pix : *dis_maximize_pix) ); button[ButtonMaximize]->setIconSet( max?(isActive() ? *normalize_pix : *dis_normalize_pix):(isActive() ? *maximize_pix : *dis_maximize_pix) );
connect( button[ButtonMaximize], TQT_SIGNAL( clicked(ButtonState) ), connect( button[ButtonMaximize], TQ_SIGNAL( clicked(ButtonState) ),
this, ( TQT_SLOT( maxButtonClicked(ButtonState) ) ) ); this, ( TQ_SLOT( maxButtonClicked(ButtonState) ) ) );
hb->addWidget(button[ButtonMaximize]); hb->addWidget(button[ButtonMaximize]);
} }
break; break;
@ -371,7 +371,7 @@ void StdClient::addButtons(TQBoxLayout *hb, const TQString& s)
TQToolTip::add( button[ButtonClose], i18n("Close") ); TQToolTip::add( button[ButtonClose], i18n("Close") );
button[ButtonClose]->setCursor(ArrowCursor); button[ButtonClose]->setCursor(ArrowCursor);
button[ButtonClose]->setIconSet(isActive() ? *close_pix : *dis_close_pix); button[ButtonClose]->setIconSet(isActive() ? *close_pix : *dis_close_pix);
connect( button[ButtonClose], TQT_SIGNAL( clicked() ), this, ( TQT_SLOT( closeWindow() ) ) ); connect( button[ButtonClose], TQ_SIGNAL( clicked() ), this, ( TQ_SLOT( closeWindow() ) ) );
hb->addWidget(button[ButtonClose]); hb->addWidget(button[ButtonClose]);
} }
break; break;
@ -615,7 +615,7 @@ void StdToolClient::init()
closeBtn = new TQToolButton( widget(), 0 ); closeBtn = new TQToolButton( widget(), 0 );
TQToolTip::add( closeBtn, i18n("Close") ); TQToolTip::add( closeBtn, i18n("Close") );
connect( closeBtn, TQT_SIGNAL( clicked() ), this, ( TQT_SLOT( closeWindow() ) ) ); connect( closeBtn, TQ_SIGNAL( clicked() ), this, ( TQ_SLOT( closeWindow() ) ) );
closeBtn->setFixedSize( 13, 13); closeBtn->setFixedSize( 13, 13);
reset( -1U ); reset( -1U );

@ -110,7 +110,7 @@ public:
ThreeButtonButton ( TQWidget *parent = 0, const char* name = 0 ) ThreeButtonButton ( TQWidget *parent = 0, const char* name = 0 )
: TQToolButton( parent, name ) : TQToolButton( parent, name )
{ {
connect( this, TQT_SIGNAL( clicked() ), this, TQT_SLOT( handleClicked() ) ); connect( this, TQ_SIGNAL( clicked() ), this, TQ_SLOT( handleClicked() ) );
setCursor( arrowCursor ); setCursor( arrowCursor );
} }
~ThreeButtonButton () {} ~ThreeButtonButton () {}

@ -481,8 +481,8 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec)
new NextButton(this, "maximize", maximize_bits, 10, 10, new NextButton(this, "maximize", maximize_bits, 10, 10,
i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton); i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton);
titleLayout->addWidget( button[MAXIMIZE_IDX] ); titleLayout->addWidget( button[MAXIMIZE_IDX] );
connect( button[MAXIMIZE_IDX], TQT_SIGNAL(clicked()), connect( button[MAXIMIZE_IDX], TQ_SIGNAL(clicked()),
this, TQT_SLOT(maximizeButtonClicked()) ); this, TQ_SLOT(maximizeButtonClicked()) );
} }
break; break;
@ -491,8 +491,8 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec)
button[HELP_IDX] = new NextButton(this, button[HELP_IDX] = new NextButton(this,
"help", question_bits, 10, 10, i18n("Help")); "help", question_bits, 10, 10, i18n("Help"));
titleLayout->addWidget( button[HELP_IDX] ); titleLayout->addWidget( button[HELP_IDX] );
connect( button[HELP_IDX], TQT_SIGNAL(clicked()), connect( button[HELP_IDX], TQ_SIGNAL(clicked()),
this, TQT_SLOT(showContextHelp()) ); this, TQ_SLOT(showContextHelp()) );
} }
break; break;
@ -502,8 +502,8 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec)
new NextButton(this, "iconify", iconify_bits, 10, 10, new NextButton(this, "iconify", iconify_bits, 10, 10,
i18n("Minimize")); i18n("Minimize"));
titleLayout->addWidget( button[ICONIFY_IDX] ); titleLayout->addWidget( button[ICONIFY_IDX] );
connect( button[ICONIFY_IDX], TQT_SIGNAL(clicked()), connect( button[ICONIFY_IDX], TQ_SIGNAL(clicked()),
this, TQT_SLOT(minimize()) ); this, TQ_SLOT(minimize()) );
} }
break; break;
@ -512,16 +512,16 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec)
new NextButton(this, "menu", NULL, 10, 10, i18n("Menu"), TQt::LeftButton|TQt::RightButton); new NextButton(this, "menu", NULL, 10, 10, i18n("Menu"), TQt::LeftButton|TQt::RightButton);
titleLayout->addWidget( button[MENU_IDX] ); titleLayout->addWidget( button[MENU_IDX] );
// NOTE DIFFERENCE: capture pressed(), not clicked() // NOTE DIFFERENCE: capture pressed(), not clicked()
connect( button[MENU_IDX], TQT_SIGNAL(pressed()), connect( button[MENU_IDX], TQ_SIGNAL(pressed()),
this, TQT_SLOT(menuButtonPressed()) ); this, TQ_SLOT(menuButtonPressed()) );
break; break;
case 'L': case 'L':
button[SHADE_IDX] = button[SHADE_IDX] =
new NextButton(this, "shade", NULL, 0, 0, i18n("Shade")); new NextButton(this, "shade", NULL, 0, 0, i18n("Shade"));
titleLayout->addWidget( button[SHADE_IDX] ); titleLayout->addWidget( button[SHADE_IDX] );
connect( button[SHADE_IDX], TQT_SIGNAL(clicked()), connect( button[SHADE_IDX], TQ_SIGNAL(clicked()),
this, TQT_SLOT(shadeClicked()) ); this, TQ_SLOT(shadeClicked()) );
// NOTE DIFFERENCE: set the pixmap separately (2 states) // NOTE DIFFERENCE: set the pixmap separately (2 states)
shadeChange(); shadeChange();
break; break;
@ -530,8 +530,8 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec)
button[STICKY_IDX] = button[STICKY_IDX] =
new NextButton(this, "sticky", NULL, 0, 0, i18n("On all desktops")); new NextButton(this, "sticky", NULL, 0, 0, i18n("On all desktops"));
titleLayout->addWidget( button[STICKY_IDX] ); titleLayout->addWidget( button[STICKY_IDX] );
connect( button[STICKY_IDX], TQT_SIGNAL(clicked()), connect( button[STICKY_IDX], TQ_SIGNAL(clicked()),
this, TQT_SLOT(toggleOnAllDesktops()) ); this, TQ_SLOT(toggleOnAllDesktops()) );
// NOTE DIFFERENCE: set the pixmap separately (2 states) // NOTE DIFFERENCE: set the pixmap separately (2 states)
desktopChange(); desktopChange();
break; break;
@ -539,20 +539,20 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec)
case 'F': case 'F':
button[ABOVE_IDX] = new NextButton(this, "above", NULL, 0, 0, ""); button[ABOVE_IDX] = new NextButton(this, "above", NULL, 0, 0, "");
titleLayout->addWidget( button[ABOVE_IDX] ); titleLayout->addWidget( button[ABOVE_IDX] );
connect( button[ABOVE_IDX], TQT_SIGNAL(clicked()), connect( button[ABOVE_IDX], TQ_SIGNAL(clicked()),
this, TQT_SLOT(aboveClicked()) ); this, TQ_SLOT(aboveClicked()) );
connect(this, TQT_SIGNAL(keepAboveChanged(bool)), connect(this, TQ_SIGNAL(keepAboveChanged(bool)),
TQT_SLOT(keepAboveChange(bool))); TQ_SLOT(keepAboveChange(bool)));
keepAboveChange(keepAbove()); keepAboveChange(keepAbove());
break; break;
case 'B': case 'B':
button[BELOW_IDX] = new NextButton(this, "below", NULL, 0, 0, ""); button[BELOW_IDX] = new NextButton(this, "below", NULL, 0, 0, "");
titleLayout->addWidget( button[BELOW_IDX] ); titleLayout->addWidget( button[BELOW_IDX] );
connect( button[BELOW_IDX], TQT_SIGNAL(clicked()), connect( button[BELOW_IDX], TQ_SIGNAL(clicked()),
this, TQT_SLOT(belowClicked()) ); this, TQ_SLOT(belowClicked()) );
connect(this, TQT_SIGNAL(keepBelowChanged(bool)), connect(this, TQ_SIGNAL(keepBelowChanged(bool)),
TQT_SLOT(keepBelowChange(bool))); TQ_SLOT(keepBelowChange(bool)));
keepBelowChange(keepBelow()); keepBelowChange(keepBelow());
break; break;
@ -562,8 +562,8 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec)
new NextButton(this, "close", close_bits, 10, 10, new NextButton(this, "close", close_bits, 10, 10,
i18n("Close")); i18n("Close"));
titleLayout->addWidget(button[CLOSE_IDX]); titleLayout->addWidget(button[CLOSE_IDX]);
connect(button[CLOSE_IDX], TQT_SIGNAL(clicked()), connect(button[CLOSE_IDX], TQ_SIGNAL(clicked()),
this, TQT_SLOT(closeWindow())); this, TQ_SLOT(closeWindow()));
} }
break; break;
@ -574,8 +574,8 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec)
i18n("Resize")); i18n("Resize"));
titleLayout->addWidget(button[RESIZE_IDX]); titleLayout->addWidget(button[RESIZE_IDX]);
// NOTE DIFFERENCE: capture pressed(), not clicked() // NOTE DIFFERENCE: capture pressed(), not clicked()
connect(button[RESIZE_IDX], TQT_SIGNAL(pressed()), connect(button[RESIZE_IDX], TQ_SIGNAL(pressed()),
this, TQT_SLOT(resizePressed())); this, TQ_SLOT(resizePressed()));
} }
break; break;
case '_': case '_':

@ -593,9 +593,9 @@ void Manager::createTitle()
{ {
case 'S': // Sticky case 'S': // Sticky
tb = new StickyButton(widget()); tb = new StickyButton(widget());
connect(this, TQT_SIGNAL(stickyChanged(bool)), connect(this, TQ_SIGNAL(stickyChanged(bool)),
tb, TQT_SLOT(setOn(bool))); tb, TQ_SLOT(setOn(bool)));
connect(tb, TQT_SIGNAL(toggleSticky()), this, TQT_SLOT(slotToggleSticky())); connect(tb, TQ_SIGNAL(toggleSticky()), this, TQ_SLOT(slotToggleSticky()));
emit(stickyChanged(isOnAllDesktops())); emit(stickyChanged(isOnAllDesktops()));
break; break;
@ -603,7 +603,7 @@ void Manager::createTitle()
if (providesContextHelp()) if (providesContextHelp())
{ {
tb = new HelpButton(widget()); tb = new HelpButton(widget());
connect(tb, TQT_SIGNAL(help()), this, TQT_SLOT(showContextHelp())); connect(tb, TQ_SIGNAL(help()), this, TQ_SLOT(showContextHelp()));
} }
break; break;
@ -611,7 +611,7 @@ void Manager::createTitle()
if (isMinimizable()) if (isMinimizable())
{ {
tb = new IconifyButton(widget()); tb = new IconifyButton(widget());
connect(tb, TQT_SIGNAL(iconify()), this, TQT_SLOT(minimize())); connect(tb, TQ_SIGNAL(iconify()), this, TQ_SLOT(minimize()));
} }
break; break;
@ -619,29 +619,29 @@ void Manager::createTitle()
if (isMaximizable()) if (isMaximizable())
{ {
tb = new MaximiseButton(widget()); tb = new MaximiseButton(widget());
connect(tb, TQT_SIGNAL(maximizeClicked(ButtonState)), connect(tb, TQ_SIGNAL(maximizeClicked(ButtonState)),
this, TQT_SLOT(slotMaximizeClicked(ButtonState))); this, TQ_SLOT(slotMaximizeClicked(ButtonState)));
connect(this, TQT_SIGNAL(maximizeChanged(bool)), connect(this, TQ_SIGNAL(maximizeChanged(bool)),
tb, TQT_SLOT(setOn(bool))); tb, TQ_SLOT(setOn(bool)));
emit(maximizeChanged(maximizeMode() == MaximizeFull)); emit(maximizeChanged(maximizeMode() == MaximizeFull));
} }
break; break;
case 'F': // Above case 'F': // Above
tb = new AboveButton(widget()); tb = new AboveButton(widget());
connect(tb, TQT_SIGNAL(above()), this, TQT_SLOT(slotAbove())); connect(tb, TQ_SIGNAL(above()), this, TQ_SLOT(slotAbove()));
break; break;
case 'B': // Lower case 'B': // Lower
tb = new LowerButton(widget()); tb = new LowerButton(widget());
connect(tb, TQT_SIGNAL(lower()), this, TQT_SLOT(slotLower())); connect(tb, TQ_SIGNAL(lower()), this, TQ_SLOT(slotLower()));
break; break;
case 'X': // Close case 'X': // Close
if (isCloseable()) if (isCloseable())
{ {
tb = new CloseButton(widget()); tb = new CloseButton(widget());
connect(tb, TQT_SIGNAL(closeWindow()), this, TQT_SLOT(closeWindow())); connect(tb, TQ_SIGNAL(closeWindow()), this, TQ_SLOT(closeWindow()));
} }
break; break;
@ -652,7 +652,7 @@ void Manager::createTitle()
if (tb != NULL) if (tb != NULL)
{ {
connect(this, TQT_SIGNAL(activeChanged(bool)), tb, TQT_SLOT(setActive(bool))); connect(this, TQ_SIGNAL(activeChanged(bool)), tb, TQ_SLOT(setActive(bool)));
buttonList->append(tb); buttonList->append(tb);
} }
} }

@ -41,20 +41,20 @@ smoothblendConfig::smoothblendConfig(TDEConfig* config, TQWidget* parent)
load(config_); load(config_);
// setup the connections for title align // setup the connections for title align
connect(dialog_->titlealign, TQT_SIGNAL(clicked(int)),this, TQT_SLOT(selectionChanged(int))); connect(dialog_->titlealign, TQ_SIGNAL(clicked(int)),this, TQ_SLOT(selectionChanged(int)));
// setup the connections for corner rounding // setup the connections for corner rounding
connect(dialog_->roundCorners, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); connect(dialog_->roundCorners, TQ_SIGNAL(stateChanged(int)),this,TQ_SLOT(selectionChanged(int)));
// setup title shadow // setup title shadow
connect(dialog_->titleshadow, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); connect(dialog_->titleshadow, TQ_SIGNAL(stateChanged(int)),this,TQ_SLOT(selectionChanged(int)));
// setup button actions // setup button actions
connect(dialog_->animatebuttons, TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(selectionChanged(int))); connect(dialog_->animatebuttons, TQ_SIGNAL(stateChanged(int)),this,TQ_SLOT(selectionChanged(int)));
connect(dialog_->btnComboBox, TQT_SIGNAL(activated(int)),this,TQT_SLOT(selectionChanged(int))); connect(dialog_->btnComboBox, TQ_SIGNAL(activated(int)),this,TQ_SLOT(selectionChanged(int)));
// setup the connections for spin boxes // setup the connections for spin boxes
connect(dialog_->titlesize, TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(selectionChanged(int))); connect(dialog_->titlesize, TQ_SIGNAL(valueChanged(int)),this,TQ_SLOT(selectionChanged(int)));
connect(dialog_->buttonsize, TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(selectionChanged(int))); connect(dialog_->buttonsize, TQ_SIGNAL(valueChanged(int)),this,TQ_SLOT(selectionChanged(int)));
connect(dialog_->framesize, TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(selectionChanged(int))); connect(dialog_->framesize, TQ_SIGNAL(valueChanged(int)),this,TQ_SLOT(selectionChanged(int)));
// double click the menu // double click the menu
connect(dialog_->menuClose, TQT_SIGNAL(stateChanged(int)),this, TQT_SLOT(selectionChanged(int))); connect(dialog_->menuClose, TQ_SIGNAL(stateChanged(int)),this, TQ_SLOT(selectionChanged(int)));
} }
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

@ -178,9 +178,9 @@ smoothblendButton::smoothblendButton(smoothblendClient *parent, const char *name
setToggleButton(toggle); setToggleButton(toggle);
//button animation setup //button animation setup
animTmr = new TQTimer(this); animTmr = new TQTimer(this);
connect(animTmr, TQT_SIGNAL(timeout() ), this, TQT_SLOT(animate() ) ); connect(animTmr, TQ_SIGNAL(timeout() ), this, TQ_SLOT(animate() ) );
connect(this, TQT_SIGNAL(pressed() ), this, TQT_SLOT(buttonClicked() ) ); connect(this, TQ_SIGNAL(pressed() ), this, TQ_SLOT(buttonClicked() ) );
connect(this, TQT_SIGNAL(released() ), this, TQT_SLOT(buttonReleased() ) ); connect(this, TQ_SIGNAL(released() ), this, TQ_SLOT(buttonReleased() ) );
animProgress = 0; animProgress = 0;
m_clicked=false; m_clicked=false;
} }
@ -697,8 +697,8 @@ void smoothblendClient::_resetLayout()
mainLayout_->addItem( bottomSpacer_ ); mainLayout_->addItem( bottomSpacer_ );
// connections // connections
connect(this, TQT_SIGNAL(keepAboveChanged(bool)), TQT_SLOT(keepAboveChange(bool))); connect(this, TQ_SIGNAL(keepAboveChanged(bool)), TQ_SLOT(keepAboveChange(bool)));
connect(this, TQT_SIGNAL(keepBelowChanged(bool)), TQT_SLOT(keepBelowChange(bool))); connect(this, TQ_SIGNAL(keepBelowChanged(bool)), TQ_SLOT(keepBelowChange(bool)));
} }
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
@ -715,8 +715,8 @@ void smoothblendClient::addButtons(TQBoxLayout *layout, const TQString& s, int b
if (!button[ButtonMenu]) { if (!button[ButtonMenu]) {
button[ButtonMenu] = button[ButtonMenu] =
new smoothblendButton(this, "splat.png", i18n("Menu"),ButtonMenu,button_size); new smoothblendButton(this, "splat.png", i18n("Menu"),ButtonMenu,button_size);
connect(button[ButtonMenu], TQT_SIGNAL(pressed()), this, TQT_SLOT(menuButtonPressed())); connect(button[ButtonMenu], TQ_SIGNAL(pressed()), this, TQ_SLOT(menuButtonPressed()));
connect(button[ButtonMenu], TQT_SIGNAL(released()), this, TQT_SLOT(menuButtonReleased())); connect(button[ButtonMenu], TQ_SIGNAL(released()), this, TQ_SLOT(menuButtonReleased()));
layout->addWidget(button[ButtonMenu]); layout->addWidget(button[ButtonMenu]);
if (n < s.length()-1) layout->addSpacing(1); if (n < s.length()-1) layout->addSpacing(1);
} }
@ -731,8 +731,8 @@ void smoothblendClient::addButtons(TQBoxLayout *layout, const TQString& s, int b
} }
button[ButtonSticky] = button[ButtonSticky] =
new smoothblendButton(this, "circle.png", tip, ButtonSticky, button_size, true); new smoothblendButton(this, "circle.png", tip, ButtonSticky, button_size, true);
connect(button[ButtonSticky], TQT_SIGNAL(clicked()), connect(button[ButtonSticky], TQ_SIGNAL(clicked()),
this, TQT_SLOT(toggleOnAllDesktops())); this, TQ_SLOT(toggleOnAllDesktops()));
layout->addWidget(button[ButtonSticky]); layout->addWidget(button[ButtonSticky]);
if (n < s.length()-1) layout->addSpacing(1); if (n < s.length()-1) layout->addSpacing(1);
} }
@ -742,8 +742,8 @@ void smoothblendClient::addButtons(TQBoxLayout *layout, const TQString& s, int b
if ((!button[ButtonHelp]) && providesContextHelp()) { if ((!button[ButtonHelp]) && providesContextHelp()) {
button[ButtonHelp] = button[ButtonHelp] =
new smoothblendButton(this, "help.png", i18n("Help"), ButtonHelp, button_size); new smoothblendButton(this, "help.png", i18n("Help"), ButtonHelp, button_size);
connect(button[ButtonHelp], TQT_SIGNAL(clicked()), connect(button[ButtonHelp], TQ_SIGNAL(clicked()),
this, TQT_SLOT(showContextHelp())); this, TQ_SLOT(showContextHelp()));
layout->addWidget(button[ButtonHelp]); layout->addWidget(button[ButtonHelp]);
if (n < s.length()-1) layout->addSpacing(1); if (n < s.length()-1) layout->addSpacing(1);
} }
@ -753,8 +753,8 @@ void smoothblendClient::addButtons(TQBoxLayout *layout, const TQString& s, int b
if ((!button[ButtonMin]) && isMinimizable()) { if ((!button[ButtonMin]) && isMinimizable()) {
button[ButtonMin] = button[ButtonMin] =
new smoothblendButton(this, "minimize.png", i18n("Minimize"), ButtonMin, button_size); new smoothblendButton(this, "minimize.png", i18n("Minimize"), ButtonMin, button_size);
connect(button[ButtonMin], TQT_SIGNAL(clicked()), connect(button[ButtonMin], TQ_SIGNAL(clicked()),
this, TQT_SLOT(minimize())); this, TQ_SLOT(minimize()));
layout->addWidget(button[ButtonMin]); layout->addWidget(button[ButtonMin]);
if (n < s.length()-1) layout->addSpacing(1); if (n < s.length()-1) layout->addSpacing(1);
} }
@ -769,8 +769,8 @@ void smoothblendClient::addButtons(TQBoxLayout *layout, const TQString& s, int b
} }
button[ButtonMax] = button[ButtonMax] =
new smoothblendButton(this, "maximize.png", tip, ButtonMax, button_size, true); new smoothblendButton(this, "maximize.png", tip, ButtonMax, button_size, true);
connect(button[ButtonMax], TQT_SIGNAL(clicked()), connect(button[ButtonMax], TQ_SIGNAL(clicked()),
this, TQT_SLOT(maxButtonPressed())); this, TQ_SLOT(maxButtonPressed()));
layout->addWidget(button[ButtonMax]); layout->addWidget(button[ButtonMax]);
if (n < s.length()-1) layout->addSpacing(1); if (n < s.length()-1) layout->addSpacing(1);
} }
@ -780,8 +780,8 @@ void smoothblendClient::addButtons(TQBoxLayout *layout, const TQString& s, int b
if ((!button[ButtonClose]) && isCloseable()) { if ((!button[ButtonClose]) && isCloseable()) {
button[ButtonClose] = button[ButtonClose] =
new smoothblendButton(this, "close.png", i18n("Close"), ButtonClose, button_size); new smoothblendButton(this, "close.png", i18n("Close"), ButtonClose, button_size);
connect(button[ButtonClose], TQT_SIGNAL(clicked()), connect(button[ButtonClose], TQ_SIGNAL(clicked()),
this, TQT_SLOT(closeWindow())); this, TQ_SLOT(closeWindow()));
layout->addWidget(button[ButtonClose]); layout->addWidget(button[ButtonClose]);
if (n < s.length()-1) layout->addSpacing(1); if (n < s.length()-1) layout->addSpacing(1);
} }
@ -792,8 +792,8 @@ void smoothblendClient::addButtons(TQBoxLayout *layout, const TQString& s, int b
button[ButtonAbove] = button[ButtonAbove] =
new smoothblendButton(this, "keep_above.png", new smoothblendButton(this, "keep_above.png",
i18n("Keep Above Others"), ButtonAbove, button_size, true); i18n("Keep Above Others"), ButtonAbove, button_size, true);
connect(button[ButtonAbove], TQT_SIGNAL(clicked()), connect(button[ButtonAbove], TQ_SIGNAL(clicked()),
this, TQT_SLOT(aboveButtonPressed())); this, TQ_SLOT(aboveButtonPressed()));
layout->addWidget(button[ButtonAbove]); layout->addWidget(button[ButtonAbove]);
if (n < s.length()-1) layout->addSpacing(1); if (n < s.length()-1) layout->addSpacing(1);
} }
@ -804,8 +804,8 @@ void smoothblendClient::addButtons(TQBoxLayout *layout, const TQString& s, int b
button[ButtonBelow] = button[ButtonBelow] =
new smoothblendButton(this, "keep_below.png", new smoothblendButton(this, "keep_below.png",
i18n("Keep Below Others"), ButtonBelow, button_size, true); i18n("Keep Below Others"), ButtonBelow, button_size, true);
connect(button[ButtonBelow], TQT_SIGNAL(clicked()), connect(button[ButtonBelow], TQ_SIGNAL(clicked()),
this, TQT_SLOT(belowButtonPressed())); this, TQ_SLOT(belowButtonPressed()));
layout->addWidget(button[ButtonBelow]); layout->addWidget(button[ButtonBelow]);
if (n < s.length()-1) layout->addSpacing(1); if (n < s.length()-1) layout->addSpacing(1);
} }
@ -820,8 +820,8 @@ void smoothblendClient::addButtons(TQBoxLayout *layout, const TQString& s, int b
} }
button[ButtonShade] = button[ButtonShade] =
new smoothblendButton(this, "shade.png", tip, ButtonShade, button_size, true); new smoothblendButton(this, "shade.png", tip, ButtonShade, button_size, true);
connect(button[ButtonShade], TQT_SIGNAL(clicked()), connect(button[ButtonShade], TQ_SIGNAL(clicked()),
this, TQT_SLOT(shadeButtonPressed())); this, TQ_SLOT(shadeButtonPressed()));
layout->addWidget(button[ButtonShade]); layout->addWidget(button[ButtonShade]);
if (n < s.length()-1) layout->addSpacing(1); if (n < s.length()-1) layout->addSpacing(1);
} }

@ -351,7 +351,7 @@ void SystemClient::addButtons(TQBoxLayout *hb, const TQString& s)
case 'X': // Close button case 'X': // Close button
if ((!button[ButtonClose]) && isCloseable()) { if ((!button[ButtonClose]) && isCloseable()) {
button[ButtonClose] = new SystemButton(this, "close", NULL, i18n("Close")); button[ButtonClose] = new SystemButton(this, "close", NULL, i18n("Close"));
connect( button[ButtonClose], TQT_SIGNAL( clicked() ), this, ( TQT_SLOT( closeWindow() ) ) ); connect( button[ButtonClose], TQ_SIGNAL( clicked() ), this, ( TQ_SLOT( closeWindow() ) ) );
hb->addWidget(button[ButtonClose]); hb->addWidget(button[ButtonClose]);
hb->addSpacing(1); hb->addSpacing(1);
} }
@ -364,7 +364,7 @@ void SystemClient::addButtons(TQBoxLayout *hb, const TQString& s)
button[ButtonSticky]->setBitmap(unsticky_bits); button[ButtonSticky]->setBitmap(unsticky_bits);
else else
button[ButtonSticky]->setBitmap(sticky_bits); button[ButtonSticky]->setBitmap(sticky_bits);
connect( button[ButtonSticky], TQT_SIGNAL( clicked() ), this, ( TQT_SLOT( toggleOnAllDesktops() ) ) ); connect( button[ButtonSticky], TQ_SIGNAL( clicked() ), this, ( TQ_SLOT( toggleOnAllDesktops() ) ) );
hb->addWidget(button[ButtonSticky]); hb->addWidget(button[ButtonSticky]);
hb->addSpacing(1); hb->addSpacing(1);
} }
@ -373,7 +373,7 @@ void SystemClient::addButtons(TQBoxLayout *hb, const TQString& s)
case 'I': // Minimize button case 'I': // Minimize button
if ((!button[ButtonMinimize]) && isMinimizable()) { if ((!button[ButtonMinimize]) && isMinimizable()) {
button[ButtonMinimize] = new SystemButton(this, "iconify", iconify_bits, i18n("Minimize")); button[ButtonMinimize] = new SystemButton(this, "iconify", iconify_bits, i18n("Minimize"));
connect( button[ButtonMinimize], TQT_SIGNAL( clicked() ), this, ( TQT_SLOT( minimize() ) ) ); connect( button[ButtonMinimize], TQ_SIGNAL( clicked() ), this, ( TQ_SLOT( minimize() ) ) );
hb->addWidget(button[ButtonMinimize]); hb->addWidget(button[ButtonMinimize]);
hb->addSpacing(1); hb->addSpacing(1);
} }
@ -390,7 +390,7 @@ void SystemClient::addButtons(TQBoxLayout *hb, const TQString& s)
} }
else else
button[ButtonMaximize] = new SystemButton(this, "maximize", maximize_bits, i18n("Maximize")); button[ButtonMaximize] = new SystemButton(this, "maximize", maximize_bits, i18n("Maximize"));
connect( button[ButtonMaximize], TQT_SIGNAL( clicked() ), this, ( TQT_SLOT( maxButtonClicked() ) ) ); connect( button[ButtonMaximize], TQ_SIGNAL( clicked() ), this, ( TQ_SLOT( maxButtonClicked() ) ) );
hb->addWidget(button[ButtonMaximize]); hb->addWidget(button[ButtonMaximize]);
hb->addSpacing(1); hb->addSpacing(1);
} }
@ -399,7 +399,7 @@ void SystemClient::addButtons(TQBoxLayout *hb, const TQString& s)
case 'H': // Help button case 'H': // Help button
if ((!button[ButtonHelp]) && providesContextHelp()) { if ((!button[ButtonHelp]) && providesContextHelp()) {
button[ButtonHelp] = new SystemButton(this, "help", question_bits, i18n("Help")); button[ButtonHelp] = new SystemButton(this, "help", question_bits, i18n("Help"));
connect( button[ButtonHelp], TQT_SIGNAL( clicked() ), this, ( TQT_SLOT( showContextHelp() ) ) ); connect( button[ButtonHelp], TQ_SIGNAL( clicked() ), this, ( TQ_SLOT( showContextHelp() ) ) );
hb->addWidget(button[ButtonHelp]); hb->addWidget(button[ButtonHelp]);
hb->addSpacing(1); hb->addSpacing(1);
} }

Loading…
Cancel
Save