diff options
Diffstat (limited to 'libtdepim/sendsmsdialog.cpp')
-rw-r--r-- | libtdepim/sendsmsdialog.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libtdepim/sendsmsdialog.cpp b/libtdepim/sendsmsdialog.cpp index 218f9617d..1d62e8f55 100644 --- a/libtdepim/sendsmsdialog.cpp +++ b/libtdepim/sendsmsdialog.cpp @@ -20,8 +20,8 @@ Boston, MA 02110-1301, USA. */ #include <tqlabel.h> -#include <tqlayout.h> -#include <tqtextedit.h> +#include <layout.h> +#include <textedit.h> #include <klocale.h> @@ -32,19 +32,19 @@ SendSMSDialog::SendSMSDialog( const TQString &recipientName, TQWidget *parent, c { TQWidget *page = plainPage(); - TQGridLayout *tqlayout = new TQGridLayout( page, 3, 3, marginHint(), spacingHint() ); + TQGridLayout *layout = new TQGridLayout( page, 3, 3, marginHint(), spacingHint() ); - tqlayout->addWidget( new TQLabel( i18n( "Message" ), page ), 0, 0 ); + layout->addWidget( new TQLabel( i18n( "Message" ), page ), 0, 0 ); mMessageLength = new TQLabel( "0/160", page ); - mMessageLength->tqsetAlignment( TQt::AlignRight ); - tqlayout->addWidget( mMessageLength, 0, 2 ); + mMessageLength->setAlignment( TQt::AlignRight ); + layout->addWidget( mMessageLength, 0, 2 ); mText = new TQTextEdit( page ); - tqlayout->addMultiCellWidget( mText, 1, 1, 0, 2 ); + layout->addMultiCellWidget( mText, 1, 1, 0, 2 ); - tqlayout->addWidget( new TQLabel( i18n( "Recipient:" ), page ), 2, 0 ); - tqlayout->addWidget( new TQLabel( recipientName, page ), 2, 2 ); + layout->addWidget( new TQLabel( i18n( "Recipient:" ), page ), 2, 0 ); + layout->addWidget( new TQLabel( recipientName, page ), 2, 2 ); setButtonText( Ok, i18n( "Send" ) ); @@ -68,13 +68,13 @@ void SendSMSDialog::updateMessageLength() int length = mText->length(); if( length > 480 ) - mMessageLength->setText( TQString( "%1/%2 (%3)" ).tqarg( length ).tqarg( 500 ).tqarg( 4 ) ); + mMessageLength->setText( TQString( "%1/%2 (%3)" ).arg( length ).arg( 500 ).arg( 4 ) ); else if( length > 320 ) - mMessageLength->setText( TQString( "%1/%2 (%3)" ).tqarg( length ).tqarg( 480 ).tqarg( 3 ) ); + mMessageLength->setText( TQString( "%1/%2 (%3)" ).arg( length ).arg( 480 ).arg( 3 ) ); else if( length > 160 ) - mMessageLength->setText( TQString( "%1/%2 (%3)" ).tqarg( length ).tqarg( 320 ).tqarg( 2 ) ); + mMessageLength->setText( TQString( "%1/%2 (%3)" ).arg( length ).arg( 320 ).arg( 2 ) ); else - mMessageLength->setText( TQString( "%1/%2" ).tqarg( length ).tqarg( 160 ) ); + mMessageLength->setText( TQString( "%1/%2" ).arg( length ).arg( 160 ) ); } void SendSMSDialog::updateButtons() |