summaryrefslogtreecommitdiffstats
path: root/kmail/recipientseditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/recipientseditor.cpp')
-rw-r--r--kmail/recipientseditor.cpp258
1 files changed, 129 insertions, 129 deletions
diff --git a/kmail/recipientseditor.cpp b/kmail/recipientseditor.cpp
index 62e11b904..5ca2d7355 100644
--- a/kmail/recipientseditor.cpp
+++ b/kmail/recipientseditor.cpp
@@ -39,16 +39,16 @@
#include <kiconloader.h>
#include <kmessagebox.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qscrollview.h>
-#include <qcombobox.h>
-#include <qhbox.h>
-#include <qtimer.h>
-#include <qpushbutton.h>
-#include <qstylesheet.h>
-
-Recipient::Recipient( const QString &email, Recipient::Type type )
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqscrollview.h>
+#include <tqcombobox.h>
+#include <tqhbox.h>
+#include <tqtimer.h>
+#include <tqpushbutton.h>
+#include <tqstylesheet.h>
+
+Recipient::Recipient( const TQString &email, Recipient::Type type )
: mEmail( email ), mType( type )
{
}
@@ -63,12 +63,12 @@ Recipient::Type Recipient::type() const
return mType;
}
-void Recipient::setEmail( const QString &email )
+void Recipient::setEmail( const TQString &email )
{
mEmail = email;
}
-QString Recipient::email() const
+TQString Recipient::email() const
{
return mEmail;
}
@@ -88,12 +88,12 @@ Recipient::Type Recipient::idToType( int id )
return static_cast<Type>( id );
}
-QString Recipient::typeLabel() const
+TQString Recipient::typeLabel() const
{
return typeLabel( mType );
}
-QString Recipient::typeLabel( Recipient::Type type )
+TQString Recipient::typeLabel( Recipient::Type type )
{
switch( type ) {
case To:
@@ -109,9 +109,9 @@ QString Recipient::typeLabel( Recipient::Type type )
return i18n("<Undefined RecipientType>");
}
-QStringList Recipient::allTypeLabels()
+TQStringList Recipient::allTypeLabels()
{
- QStringList types;
+ TQStringList types;
types.append( typeLabel( To ) );
types.append( typeLabel( Cc ) );
types.append( typeLabel( Bcc ) );
@@ -119,19 +119,19 @@ QStringList Recipient::allTypeLabels()
}
-RecipientComboBox::RecipientComboBox( QWidget *parent )
- : QComboBox( parent )
+RecipientComboBox::RecipientComboBox( TQWidget *parent )
+ : TQComboBox( parent )
{
}
-void RecipientComboBox::keyPressEvent( QKeyEvent *ev )
+void RecipientComboBox::keyPressEvent( TQKeyEvent *ev )
{
if ( ev->key() == Key_Right ) emit rightPressed();
- else QComboBox::keyPressEvent( ev );
+ else TQComboBox::keyPressEvent( ev );
}
-void RecipientLineEdit::keyPressEvent( QKeyEvent *ev )
+void RecipientLineEdit::keyPressEvent( TQKeyEvent *ev )
{
if ( ev->key() == Key_Backspace && text().isEmpty() ) {
ev->accept();
@@ -145,40 +145,40 @@ void RecipientLineEdit::keyPressEvent( QKeyEvent *ev )
}
}
-RecipientLine::RecipientLine( QWidget *parent )
- : QWidget( parent ), mRecipientsCount( 0 ), mModified( false )
+RecipientLine::RecipientLine( TQWidget *parent )
+ : TQWidget( parent ), mRecipientsCount( 0 ), mModified( false )
{
- QBoxLayout *topLayout = new QHBoxLayout( this );
+ TQBoxLayout *topLayout = new TQHBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
- QStringList recipientTypes = Recipient::allTypeLabels();
+ TQStringList recipientTypes = Recipient::allTypeLabels();
mCombo = new RecipientComboBox( this );
mCombo->insertStringList( recipientTypes );
topLayout->addWidget( mCombo );
- QToolTip::add( mCombo, i18n("Select type of recipient") );
+ TQToolTip::add( mCombo, i18n("Select type of recipient") );
mEdit = new RecipientLineEdit( this );
topLayout->addWidget( mEdit );
- connect( mEdit, SIGNAL( returnPressed() ), SLOT( slotReturnPressed() ) );
- connect( mEdit, SIGNAL( deleteMe() ), SLOT( slotPropagateDeletion() ) );
- connect( mEdit, SIGNAL( textChanged( const QString & ) ),
- SLOT( analyzeLine( const QString & ) ) );
- connect( mEdit, SIGNAL( focusUp() ), SLOT( slotFocusUp() ) );
- connect( mEdit, SIGNAL( focusDown() ), SLOT( slotFocusDown() ) );
- connect( mEdit, SIGNAL( rightPressed() ), SIGNAL( rightPressed() ) );
+ connect( mEdit, TQT_SIGNAL( returnPressed() ), TQT_SLOT( slotReturnPressed() ) );
+ connect( mEdit, TQT_SIGNAL( deleteMe() ), TQT_SLOT( slotPropagateDeletion() ) );
+ connect( mEdit, TQT_SIGNAL( textChanged( const TQString & ) ),
+ TQT_SLOT( analyzeLine( const TQString & ) ) );
+ connect( mEdit, TQT_SIGNAL( focusUp() ), TQT_SLOT( slotFocusUp() ) );
+ connect( mEdit, TQT_SIGNAL( focusDown() ), TQT_SLOT( slotFocusDown() ) );
+ connect( mEdit, TQT_SIGNAL( rightPressed() ), TQT_SIGNAL( rightPressed() ) );
- connect( mEdit, SIGNAL( leftPressed() ), mCombo, SLOT( setFocus() ) );
- connect( mCombo, SIGNAL( rightPressed() ), mEdit, SLOT( setFocus() ) );
+ connect( mEdit, TQT_SIGNAL( leftPressed() ), mCombo, TQT_SLOT( setFocus() ) );
+ connect( mCombo, TQT_SIGNAL( rightPressed() ), mEdit, TQT_SLOT( setFocus() ) );
- connect( mCombo, SIGNAL( activated ( int ) ),
- this, SLOT( slotTypeModified() ) );
+ connect( mCombo, TQT_SIGNAL( activated ( int ) ),
+ this, TQT_SLOT( slotTypeModified() ) );
- mRemoveButton = new QPushButton( this );
+ mRemoveButton = new TQPushButton( this );
mRemoveButton->setIconSet( KApplication::reverseLayout() ? SmallIconSet("locationbar_erase") : SmallIconSet( "clear_left" ) );
topLayout->addWidget( mRemoveButton );
- connect( mRemoveButton, SIGNAL( clicked() ), SLOT( slotPropagateDeletion() ) );
- QToolTip::add( mRemoveButton, i18n("Remove recipient line") );
+ connect( mRemoveButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotPropagateDeletion() ) );
+ TQToolTip::add( mRemoveButton, i18n("Remove recipient line") );
}
void RecipientLine::slotFocusUp()
@@ -198,9 +198,9 @@ void RecipientLine::slotTypeModified()
emit typeModified( this );
}
-void RecipientLine::analyzeLine( const QString &text )
+void RecipientLine::analyzeLine( const TQString &text )
{
- QStringList r = KPIM::splitEmailAddrList( text );
+ TQStringList r = KPIM::splitEmailAddrList( text );
if ( int( r.count() ) != mRecipientsCount ) {
mRecipientsCount = r.count();
emit countChanged();
@@ -218,7 +218,7 @@ void RecipientLine::setRecipient( const Recipient &rec )
mCombo->setCurrentItem( Recipient::typeToId( rec.type() ) );
}
-void RecipientLine::setRecipient( const QString &email )
+void RecipientLine::setRecipient( const TQString &email )
{
setRecipient( Recipient( email ) );
}
@@ -275,7 +275,7 @@ void RecipientLine::slotPropagateDeletion()
emit deleteLine( this );
}
-void RecipientLine::keyPressEvent( QKeyEvent *ev )
+void RecipientLine::keyPressEvent( TQKeyEvent *ev )
{
if ( ev->key() == Key_Up ) {
emit upPressed( this );
@@ -293,14 +293,14 @@ int RecipientLine::setComboWidth( int w )
return w;
}
-void RecipientLine::fixTabOrder( QWidget *previous )
+void RecipientLine::fixTabOrder( TQWidget *previous )
{
setTabOrder( previous, mCombo );
setTabOrder( mCombo, mEdit );
setTabOrder( mEdit, mRemoveButton );
}
-QWidget *RecipientLine::tabOut() const
+TQWidget *RecipientLine::tabOut() const
{
return mRemoveButton;
}
@@ -318,8 +318,8 @@ void RecipientLine::setRemoveLineButtonEnabled( bool b )
// ------------ RecipientsView ---------------------
-RecipientsView::RecipientsView( QWidget *parent )
- : QScrollView( parent ), mCurDelLine( 0 ),
+RecipientsView::RecipientsView( TQWidget *parent )
+ : TQScrollView( parent ), mCurDelLine( 0 ),
mLineHeight( 0 ), mFirstColumnWidth( 0 ),
mModified( false )
{
@@ -328,8 +328,8 @@ RecipientsView::RecipientsView( QWidget *parent )
setLineWidth( 0 );
addLine();
- setResizePolicy( QScrollView::Manual );
- setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
+ setResizePolicy( TQScrollView::Manual );
+ setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding );
viewport()->setPaletteBackgroundColor( paletteBackgroundColor() );
}
@@ -355,20 +355,20 @@ RecipientLine *RecipientsView::addLine()
addChild( line, 0, mLines.count() * mLineHeight );
line->mEdit->setCompletionMode( mCompletionMode );
line->show();
- connect( line, SIGNAL( returnPressed( RecipientLine * ) ),
- SLOT( slotReturnPressed( RecipientLine * ) ) );
- connect( line, SIGNAL( upPressed( RecipientLine * ) ),
- SLOT( slotUpPressed( RecipientLine * ) ) );
- connect( line, SIGNAL( downPressed( RecipientLine * ) ),
- SLOT( slotDownPressed( RecipientLine * ) ) );
- connect( line, SIGNAL( rightPressed() ), SIGNAL( focusRight() ) );
- connect( line, SIGNAL( deleteLine( RecipientLine * ) ),
- SLOT( slotDecideLineDeletion( RecipientLine * ) ) );
- connect( line, SIGNAL( countChanged() ), SLOT( calculateTotal() ) );
- connect( line, SIGNAL( typeModified( RecipientLine * ) ),
- SLOT( slotTypeModified( RecipientLine * ) ) );
- connect( line->mEdit, SIGNAL( completionModeChanged( KGlobalSettings::Completion ) ),
- SLOT( setCompletionMode( KGlobalSettings::Completion ) ) );
+ connect( line, TQT_SIGNAL( returnPressed( RecipientLine * ) ),
+ TQT_SLOT( slotReturnPressed( RecipientLine * ) ) );
+ connect( line, TQT_SIGNAL( upPressed( RecipientLine * ) ),
+ TQT_SLOT( slotUpPressed( RecipientLine * ) ) );
+ connect( line, TQT_SIGNAL( downPressed( RecipientLine * ) ),
+ TQT_SLOT( slotDownPressed( RecipientLine * ) ) );
+ connect( line, TQT_SIGNAL( rightPressed() ), TQT_SIGNAL( focusRight() ) );
+ connect( line, TQT_SIGNAL( deleteLine( RecipientLine * ) ),
+ TQT_SLOT( slotDecideLineDeletion( RecipientLine * ) ) );
+ connect( line, TQT_SIGNAL( countChanged() ), TQT_SLOT( calculateTotal() ) );
+ connect( line, TQT_SIGNAL( typeModified( RecipientLine * ) ),
+ TQT_SLOT( slotTypeModified( RecipientLine * ) ) );
+ connect( line->mEdit, TQT_SIGNAL( completionModeChanged( KGlobalSettings::Completion ) ),
+ TQT_SLOT( setCompletionMode( KGlobalSettings::Completion ) ) );
if ( mLines.last() ) {
if ( mLines.count() == 1 ) {
@@ -480,7 +480,7 @@ void RecipientsView::slotDecideLineDeletion( RecipientLine *line )
line->clear();
} else {
mCurDelLine = line;
- QTimer::singleShot( 0, this, SLOT( slotDeleteLine( ) ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotDeleteLine( ) ) );
}
}
@@ -536,7 +536,7 @@ void RecipientsView::resizeView()
parentWidget()->layout()->activate();
emit sizeHintChanged();
- QTimer::singleShot( 0, this, SLOT(moveCompletionPopup()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(moveCompletionPopup()) );
}
void RecipientsView::activateLine( RecipientLine *line )
@@ -545,7 +545,7 @@ void RecipientsView::activateLine( RecipientLine *line )
ensureVisible( 0, childY( line ) );
}
-void RecipientsView::viewportResizeEvent ( QResizeEvent *ev )
+void RecipientsView::viewportResizeEvent ( TQResizeEvent *ev )
{
for( uint i = 0; i < mLines.count(); ++i ) {
mLines.at( i )->resize( ev->size().width(), mLineHeight );
@@ -553,25 +553,25 @@ void RecipientsView::viewportResizeEvent ( QResizeEvent *ev )
ensureVisible( 0, mLines.count() * mLineHeight );
}
-QSize RecipientsView::sizeHint() const
+TQSize RecipientsView::sizeHint() const
{
- return QSize( 200, mLineHeight * mLines.count() );
+ return TQSize( 200, mLineHeight * mLines.count() );
}
-QSize RecipientsView::minimumSizeHint() const
+TQSize RecipientsView::minimumSizeHint() const
{
int height;
uint numLines = 5;
if ( mLines.count() < numLines ) height = mLineHeight * mLines.count();
else height = mLineHeight * numLines;
- return QSize( 200, height );
+ return TQSize( 200, height );
}
Recipient::List RecipientsView::recipients() const
{
Recipient::List recipients;
- QPtrListIterator<RecipientLine> it( mLines );
+ TQPtrListIterator<RecipientLine> it( mLines );
RecipientLine *line;
while( ( line = it.current() ) ) {
if ( !line->recipient().isEmpty() ) {
@@ -590,7 +590,7 @@ void RecipientsView::setCompletionMode ( KGlobalSettings::Completion mode )
return;
mCompletionMode = mode;
- QPtrListIterator<RecipientLine> it( mLines );
+ TQPtrListIterator<RecipientLine> it( mLines );
RecipientLine *line;
while( ( line = it.current() ) ) {
line->mEdit->blockSignals( true );
@@ -601,11 +601,11 @@ void RecipientsView::setCompletionMode ( KGlobalSettings::Completion mode )
emit completionModeChanged( mode ); //report change to RecipientsEditor
}
-void RecipientsView::removeRecipient( const QString & recipient,
+void RecipientsView::removeRecipient( const TQString & recipient,
Recipient::Type type )
{
// search a line which matches recipient and type
- QPtrListIterator<RecipientLine> it( mLines );
+ TQPtrListIterator<RecipientLine> it( mLines );
RecipientLine *line;
while( ( line = it.current() ) ) {
if ( ( line->recipient().email() == recipient ) &&
@@ -623,7 +623,7 @@ bool RecipientsView::isModified()
if ( mModified )
return true;
- QPtrListIterator<RecipientLine> it( mLines );
+ TQPtrListIterator<RecipientLine> it( mLines );
RecipientLine *line;
while( ( line = it.current() ) ) {
if ( line->isModified() ) {
@@ -639,7 +639,7 @@ void RecipientsView::clearModified()
{
mModified = false;
- QPtrListIterator<RecipientLine> it( mLines );
+ TQPtrListIterator<RecipientLine> it( mLines );
RecipientLine *line;
while( ( line = it.current() ) ) {
line->clearModified();
@@ -671,7 +671,7 @@ int RecipientsView::setFirstColumnWidth( int w )
{
mFirstColumnWidth = w;
- QPtrListIterator<RecipientLine> it( mLines );
+ TQPtrListIterator<RecipientLine> it( mLines );
RecipientLine *line;
while( ( line = it.current() ) ) {
mFirstColumnWidth = line->setComboWidth( mFirstColumnWidth );
@@ -696,25 +696,25 @@ void RecipientsView::moveCompletionPopup()
}
-RecipientsToolTip::RecipientsToolTip( RecipientsView *view, QWidget *parent )
- : QToolTip( parent ), mView( view )
+RecipientsToolTip::RecipientsToolTip( RecipientsView *view, TQWidget *parent )
+ : TQToolTip( parent ), mView( view )
{
}
-QString RecipientsToolTip::line( const Recipient &r )
+TQString RecipientsToolTip::line( const Recipient &r )
{
- QString txt = r.email();
+ TQString txt = r.email();
- return "&nbsp;&nbsp;" + QStyleSheet::escape( txt ) + "<br/>";
+ return "&nbsp;&nbsp;" + TQStyleSheet::escape( txt ) + "<br/>";
}
-void RecipientsToolTip::maybeTip( const QPoint & p )
+void RecipientsToolTip::maybeTip( const TQPoint & p )
{
- QString text = "<qt>";
+ TQString text = "<qt>";
- QString to;
- QString cc;
- QString bcc;
+ TQString to;
+ TQString cc;
+ TQString bcc;
Recipient::List recipients = mView->recipients();
Recipient::List::ConstIterator it;
@@ -740,21 +740,21 @@ void RecipientsToolTip::maybeTip( const QPoint & p )
text.append( "</qt>" );
- QRect geometry( p + QPoint( 2, 2 ), QPoint( 400, 100 ) );
+ TQRect geometry( p + TQPoint( 2, 2 ), TQPoint( 400, 100 ) );
- tip( QRect( p.x() - 20, p.y() - 20, 40, 40 ), text, geometry );
+ tip( TQRect( p.x() - 20, p.y() - 20, 40, 40 ), text, geometry );
}
-SideWidget::SideWidget( RecipientsView *view, QWidget *parent )
- : QWidget( parent ), mView( view ), mRecipientPicker( 0 )
+SideWidget::SideWidget( RecipientsView *view, TQWidget *parent )
+ : TQWidget( parent ), mView( view ), mRecipientPicker( 0 )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
topLayout->addStretch( 1 );
- mTotalLabel = new QLabel( this );
+ mTotalLabel = new TQLabel( this );
mTotalLabel->setAlignment( AlignCenter );
topLayout->addWidget( mTotalLabel );
mTotalLabel->hide();
@@ -763,18 +763,18 @@ SideWidget::SideWidget( RecipientsView *view, QWidget *parent )
new RecipientsToolTip( view, mTotalLabel );
- mDistributionListButton = new QPushButton( i18n("Save List..."), this );
+ mDistributionListButton = new TQPushButton( i18n("Save List..."), this );
topLayout->addWidget( mDistributionListButton );
mDistributionListButton->hide();
- connect( mDistributionListButton, SIGNAL( clicked() ),
- SIGNAL( saveDistributionList() ) );
- QToolTip::add( mDistributionListButton,
+ connect( mDistributionListButton, TQT_SIGNAL( clicked() ),
+ TQT_SIGNAL( saveDistributionList() ) );
+ TQToolTip::add( mDistributionListButton,
i18n("Save recipients as distribution list") );
- mSelectButton = new QPushButton( i18n("Se&lect..."), this );
+ mSelectButton = new TQPushButton( i18n("Se&lect..."), this );
topLayout->addWidget( mSelectButton );
- connect( mSelectButton, SIGNAL( clicked() ), SLOT( pickRecipient() ) );
- QToolTip::add( mSelectButton, i18n("Select recipients from address book") );
+ connect( mSelectButton, TQT_SIGNAL( clicked() ), TQT_SLOT( pickRecipient() ) );
+ TQToolTip::add( mSelectButton, i18n("Select recipients from address book") );
}
SideWidget::~SideWidget()
@@ -787,8 +787,8 @@ RecipientsPicker* SideWidget::picker() const
// hacks to allow picker() to be const in the presence of lazy loading
SideWidget *non_const_this = const_cast<SideWidget*>( this );
mRecipientPicker = new RecipientsPicker( non_const_this );
- connect( mRecipientPicker, SIGNAL( pickedRecipient( const Recipient & ) ),
- non_const_this, SIGNAL( pickedRecipient( const Recipient & ) ) );
+ connect( mRecipientPicker, TQT_SIGNAL( pickedRecipient( const Recipient & ) ),
+ non_const_this, TQT_SIGNAL( pickedRecipient( const Recipient & ) ) );
mPickerPositioner = new KWindowPositioner( non_const_this, mRecipientPicker );
}
return mRecipientPicker;
@@ -806,7 +806,7 @@ void SideWidget::setTotal( int recipients, int lines )
" lines: " << lines << endl;
#endif
- QString labelText;
+ TQString labelText;
if ( recipients == 0 ) labelText = i18n("No recipients");
else labelText = i18n("1 recipient","%n recipients", recipients );
mTotalLabel->setText( labelText );
@@ -821,7 +821,7 @@ void SideWidget::setTotal( int recipients, int lines )
void SideWidget::pickRecipient()
{
#if 0
- QString rec = KInputDialog::getText( "Pick Recipient",
+ TQString rec = KInputDialog::getText( "Pick Recipient",
"Email address of recipient" );
if ( !rec.isEmpty() ) emit pickedRecipient( rec );
#else
@@ -835,33 +835,33 @@ void SideWidget::pickRecipient()
}
-RecipientsEditor::RecipientsEditor( QWidget *parent )
- : QWidget( parent ), mModified( false )
+RecipientsEditor::RecipientsEditor( TQWidget *parent )
+ : TQWidget( parent ), mModified( false )
{
- QBoxLayout *topLayout = new QHBoxLayout( this );
+ TQBoxLayout *topLayout = new TQHBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
mRecipientsView = new RecipientsView( this );
topLayout->addWidget( mRecipientsView );
- connect( mRecipientsView, SIGNAL( focusUp() ), SIGNAL( focusUp() ) );
- connect( mRecipientsView, SIGNAL( focusDown() ), SIGNAL( focusDown() ) );
- connect( mRecipientsView, SIGNAL( completionModeChanged( KGlobalSettings::Completion ) ),
- SIGNAL( completionModeChanged( KGlobalSettings::Completion ) ) );
+ connect( mRecipientsView, TQT_SIGNAL( focusUp() ), TQT_SIGNAL( focusUp() ) );
+ connect( mRecipientsView, TQT_SIGNAL( focusDown() ), TQT_SIGNAL( focusDown() ) );
+ connect( mRecipientsView, TQT_SIGNAL( completionModeChanged( KGlobalSettings::Completion ) ),
+ TQT_SIGNAL( completionModeChanged( KGlobalSettings::Completion ) ) );
mSideWidget = new SideWidget( mRecipientsView, this );
topLayout->addWidget( mSideWidget );
- connect( mSideWidget, SIGNAL( pickedRecipient( const Recipient & ) ),
- SLOT( slotPickedRecipient( const Recipient & ) ) );
- connect( mSideWidget, SIGNAL( saveDistributionList() ),
- SLOT( saveDistributionList() ) );
+ connect( mSideWidget, TQT_SIGNAL( pickedRecipient( const Recipient & ) ),
+ TQT_SLOT( slotPickedRecipient( const Recipient & ) ) );
+ connect( mSideWidget, TQT_SIGNAL( saveDistributionList() ),
+ TQT_SLOT( saveDistributionList() ) );
- connect( mRecipientsView, SIGNAL( totalChanged( int, int ) ),
- mSideWidget, SLOT( setTotal( int, int ) ) );
- connect( mRecipientsView, SIGNAL( focusRight() ),
- mSideWidget, SLOT( setFocus() ) );
+ connect( mRecipientsView, TQT_SIGNAL( totalChanged( int, int ) ),
+ mSideWidget, TQT_SLOT( setTotal( int, int ) ) );
+ connect( mRecipientsView, TQT_SIGNAL( focusRight() ),
+ mSideWidget, TQT_SLOT( setFocus() ) );
- connect( mRecipientsView, SIGNAL(sizeHintChanged()),
- SIGNAL(sizeHintChanged()) );
+ connect( mRecipientsView, TQT_SIGNAL(sizeHintChanged()),
+ TQT_SIGNAL(sizeHintChanged()) );
}
RecipientsEditor::~RecipientsEditor()
@@ -899,15 +899,15 @@ Recipient::List RecipientsEditor::recipients() const
return mRecipientsView->recipients();
}
-void RecipientsEditor::setRecipientString( const QString &str,
+void RecipientsEditor::setRecipientString( const TQString &str,
Recipient::Type type )
{
clear();
int count = 1;
- QStringList r = KPIM::splitEmailAddrList( str );
- QStringList::ConstIterator it;
+ TQStringList r = KPIM::splitEmailAddrList( str );
+ TQStringList::ConstIterator it;
for( it = r.begin(); it != r.end(); ++it ) {
if ( count++ > GlobalSettings::self()->maximumRecipients() ) {
KMessageBox::sorry( this,
@@ -920,9 +920,9 @@ void RecipientsEditor::setRecipientString( const QString &str,
}
}
-QString RecipientsEditor::recipientString( Recipient::Type type )
+TQString RecipientsEditor::recipientString( Recipient::Type type )
{
- QString str;
+ TQString str;
Recipient::List recipients = mRecipientsView->recipients();
Recipient::List::ConstIterator it;
@@ -936,7 +936,7 @@ QString RecipientsEditor::recipientString( Recipient::Type type )
return str;
}
-void RecipientsEditor::addRecipient( const QString & recipient,
+void RecipientsEditor::addRecipient( const TQString & recipient,
Recipient::Type type )
{
RecipientLine *line = mRecipientsView->emptyLine();
@@ -944,7 +944,7 @@ void RecipientsEditor::addRecipient( const QString & recipient,
line->setRecipient( Recipient( recipient, type ) );
}
-void RecipientsEditor::removeRecipient( const QString & recipient,
+void RecipientsEditor::removeRecipient( const TQString & recipient,
Recipient::Type type )
{
mRecipientsView->removeRecipient( recipient, type );