diff options
Diffstat (limited to 'ksmserver/shutdowndlg.cpp')
| -rw-r--r-- | ksmserver/shutdowndlg.cpp | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/ksmserver/shutdowndlg.cpp b/ksmserver/shutdowndlg.cpp index c401ed56e..3df6870b7 100644 --- a/ksmserver/shutdowndlg.cpp +++ b/ksmserver/shutdowndlg.cpp @@ -7,7 +7,7 @@ Copyright (C) 2000 Matthias Ettrich <ettrich@kde.org>  #include "shutdowndlg.h"  #include <tqapplication.h> -#include <layout.h> +#include <tqlayout.h>  #include <tqgroupbox.h>  #include <tqvbuttongroup.h>  #include <tqlabel.h> @@ -650,7 +650,7 @@ KSMShutdownDlg::KSMShutdownDlg( TQWidget* parent,      TQFrame* frame = new TQFrame( this );      frame->setFrameStyle( TQFrame::StyledPanel | TQFrame::Raised ); -    frame->setLineWidth( tqstyle().pixelMetric( TQStyle::PM_DefaultFrameWidth, frame ) ); +    frame->setLineWidth( tqstyle().tqpixelMetric( TQStyle::PM_DefaultFrameWidth, frame ) );  	// we need to set the minimum size for the logout box, since it  	// gets too small if there isn't all options available  	frame->setMinimumWidth(400); @@ -691,7 +691,7 @@ KSMShutdownDlg::KSMShutdownDlg( TQWidget* parent,  	{  		// first line of buttons  		hbuttonbox = new TQHBoxLayout( hbox, factor * KDialog::spacingHint() ); -		hbuttonbox->setAlignment( Qt::AlignHCenter ); +		hbuttonbox->tqsetAlignment( Qt::AlignHCenter );  		// End session  		FlatButton* btnLogout = new FlatButton( frame );  		btnLogout->setTextLabel( TQString("&") + i18n("Log out"), false ); @@ -711,12 +711,12 @@ KSMShutdownDlg::KSMShutdownDlg( TQWidget* parent,  		hbox->addWidget( lfrm, AlignCenter );  		buttonlay = new TQVBoxLayout( hbox, factor * KDialog::spacingHint() ); -		buttonlay->setAlignment( Qt::AlignHCenter ); +		buttonlay->tqsetAlignment( Qt::AlignHCenter );  		TQLabel* icon = new TQLabel( lfrm );  		icon->setPixmap( UserIcon( "shutdownkonq" ) ); -		lfrm->setFixedSize( icon->sizeHint()); -		icon->setFixedSize( icon->sizeHint()); +		lfrm->setFixedSize( icon->tqsizeHint()); +		icon->setFixedSize( icon->tqsizeHint());  		buttonlay->addStretch( 1 );  		// End session @@ -832,7 +832,7 @@ KSMShutdownDlg::KSMShutdownDlg( TQWidget* parent,  			// bottom buttons  			TQHBoxLayout* hbuttonbox2 = new TQHBoxLayout( vbox, factor * KDialog::spacingHint() ); -			hbuttonbox2->setAlignment( Qt::AlignHCenter ); +			hbuttonbox2->tqsetAlignment( Qt::AlignHCenter );  			// Reboot  			FlatButton* btnReboot = new FlatButton( frame ); @@ -882,7 +882,7 @@ KSMShutdownDlg::KSMShutdownDlg( TQWidget* parent,  			// cancel buttonbox  			TQHBoxLayout* hbuttonbox3 = new TQHBoxLayout( vbox, factor * KDialog::spacingHint() ); -			hbuttonbox3->setAlignment( Qt::AlignRight ); +			hbuttonbox3->tqsetAlignment( Qt::AlignRight );  			// Back to Desktop  			KSMPushButton* btnBack = new KSMPushButton( KStdGuiItem::cancel(), frame ); @@ -969,7 +969,7 @@ KSMShutdownDlg::KSMShutdownDlg( TQWidget* parent,  		{  			// cancel buttonbox  			TQHBoxLayout* hbuttonbox3 = new TQHBoxLayout( vbox, factor * KDialog::spacingHint() ); -			hbuttonbox3->setAlignment( Qt::AlignRight ); +			hbuttonbox3->tqsetAlignment( Qt::AlignRight );  			// Back to Desktop  			KSMPushButton* btnBack = new KSMPushButton( KStdGuiItem::cancel(), frame ); @@ -1100,7 +1100,7 @@ bool KSMShutdownDlg::confirmShutdown( bool maysd, KApplication::ShutdownType& sd                                              maysd, sdtype );      // Show dialog (will save the background in showEvent) -    TQSize sh = l->sizeHint(); +    TQSize sh = l->tqsizeHint();      TQRect rect = KGlobalSettings::desktopGeometry(TQCursor::pos());      l->move(rect.x() + (rect.width() - sh.width())/2, @@ -1230,7 +1230,7 @@ bool KSMDelayedMessageBox::showTicker( KApplication::ShutdownType sdtype, const  {      kapp->enableStyles();      KSMDelayedMessageBox msg( sdtype, bootOption, confirmDelay ); -    TQSize sh = msg.sizeHint(); +    TQSize sh = msg.tqsizeHint();      TQRect rect = KGlobalSettings::desktopGeometry(TQCursor::pos());      msg.move(rect.x() + (rect.width() - sh.width())/2, | 
