From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kaddressbook/distributionlistentryview.cpp | 64 +++++++++++++++--------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'kaddressbook/distributionlistentryview.cpp') diff --git a/kaddressbook/distributionlistentryview.cpp b/kaddressbook/distributionlistentryview.cpp index 2db13f808..8e421a760 100644 --- a/kaddressbook/distributionlistentryview.cpp +++ b/kaddressbook/distributionlistentryview.cpp @@ -12,55 +12,55 @@ #include #include -#include -#include -#include -#include -#include -#include -#include - -KAB::DistributionListEntryView::DistributionListEntryView( KAB::Core* core, QWidget* parent ) : QWidget( parent ), m_core( core ), m_emailGroup( 0 ) +#include +#include +#include +#include +#include +#include +#include + +KAB::DistributionListEntryView::DistributionListEntryView( KAB::Core* core, TQWidget* parent ) : TQWidget( parent ), m_core( core ), m_emailGroup( 0 ) { - m_mainLayout = new QVBoxLayout( this ); + m_mainLayout = new TQVBoxLayout( this ); m_mainLayout->setSpacing( KDialog::spacingHint() ); m_mainLayout->setMargin( KDialog::marginHint() ); - QBoxLayout* headerLayout = new QHBoxLayout; + TQBoxLayout* headerLayout = new QHBoxLayout; headerLayout->setSpacing( KDialog::spacingHint() * 3 ); - m_imageLabel = new QLabel( this ); + m_imageLabel = new TQLabel( this ); m_imageLabel->setAutoResize( true ); headerLayout->addWidget( m_imageLabel, 0, Qt::AlignTop ); - m_addresseeLabel = new QLabel( this ); + m_addresseeLabel = new TQLabel( this ); headerLayout->addWidget( m_addresseeLabel, 0, Qt::AlignTop ); headerLayout->addStretch(); m_mainLayout->addItem( headerLayout ); - QBoxLayout* distLayout = new QHBoxLayout; + TQBoxLayout* distLayout = new QHBoxLayout; distLayout->setSpacing( KDialog::spacingHint() ); - QLabel* distLabel = new QLabel( this ); + TQLabel* distLabel = new TQLabel( this ); distLabel->setText( i18n( "Distribution list:" ) ); distLabel->setAlignment( Qt::SingleLine ); distLayout->addWidget( distLabel ); m_distListLabel = new KURLLabel( this ); distLabel->setBuddy( m_distListLabel ); - connect( m_distListLabel, SIGNAL( leftClickedURL( const QString& ) ), - this, SIGNAL( distributionListClicked( const QString& ) ) ); + connect( m_distListLabel, TQT_SIGNAL( leftClickedURL( const TQString& ) ), + this, TQT_SIGNAL( distributionListClicked( const TQString& ) ) ); distLayout->addWidget( m_distListLabel ); distLayout->addStretch(); m_mainLayout->addItem( distLayout ); - QLabel* emailLabel = new QLabel( this ); + TQLabel* emailLabel = new TQLabel( this ); emailLabel->setText( i18n( "Email address to use in this list:" ) ); emailLabel->setAlignment( Qt::SingleLine ); m_mainLayout->addWidget( emailLabel ); - QBoxLayout* emailLayout = new QHBoxLayout; + TQBoxLayout* emailLayout = new QHBoxLayout; emailLayout->setSpacing( KDialog::spacingHint() ); emailLayout->addSpacing( 30 ); @@ -69,9 +69,9 @@ KAB::DistributionListEntryView::DistributionListEntryView( KAB::Core* core, QWid emailLayout->addStretch(); m_mainLayout->addItem( emailLayout ); - QBoxLayout* resourceLayout = new QHBoxLayout; + TQBoxLayout* resourceLayout = new QHBoxLayout; resourceLayout->setSpacing( KDialog::spacingHint() ); - m_resourceLabel = new QLabel( this ); + m_resourceLabel = new TQLabel( this ); resourceLayout->addWidget( m_resourceLabel ); resourceLayout->addStretch(); @@ -81,7 +81,7 @@ KAB::DistributionListEntryView::DistributionListEntryView( KAB::Core* core, QWid void KAB::DistributionListEntryView::emailButtonClicked( int id ) { - const QString email = m_idToEmail[ id ]; + const TQString email = m_idToEmail[ id ]; if ( m_entry.email == email ) return; m_list.removeEntry( m_entry.addressee, m_entry.email ); @@ -103,34 +103,34 @@ void KAB::DistributionListEntryView::setEntry( const KPIM::DistributionList& lis delete m_emailGroup; m_emailGroup = 0; - QPixmap pixmap; + TQPixmap pixmap; pixmap.convertFromImage( m_entry.addressee.photo().data() ); m_imageLabel->setPixmap( pixmap.isNull() ? KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) : pixmap ); m_addresseeLabel->setText( i18n( "Formatted name, role, organization", "

%1

%2
%3

" ).arg( m_entry.addressee.formattedName(), m_entry.addressee.role(), m_entry.addressee.organization() ) ); m_distListLabel->setURL( m_list.name() ); m_distListLabel->setText( m_list.name() ); - m_resourceLabel->setText( i18n( "Address book: %1" ).arg( m_entry.addressee.resource() ? m_entry.addressee.resource()->resourceName() : QString() ) ); + m_resourceLabel->setText( i18n( "Address book: %1" ).arg( m_entry.addressee.resource() ? m_entry.addressee.resource()->resourceName() : TQString() ) ); m_resourceLabel->setAlignment( Qt::SingleLine ); - m_emailGroup = new QVButtonGroup( this ); + m_emailGroup = new TQVButtonGroup( this ); m_emailGroup->setFlat( true ); m_emailGroup->setExclusive( true ); - m_emailGroup->setFrameShape( QFrame::NoFrame ); + m_emailGroup->setFrameShape( TQFrame::NoFrame ); - const QString preferred = m_entry.email.isNull() ? m_entry.addressee.preferredEmail() : m_entry.email; - const QStringList mails = m_entry.addressee.emails(); + const TQString preferred = m_entry.email.isNull() ? m_entry.addressee.preferredEmail() : m_entry.email; + const TQStringList mails = m_entry.addressee.emails(); m_idToEmail.clear(); - for ( QStringList::ConstIterator it = mails.begin(); it != mails.end(); ++it ) + for ( TQStringList::ConstIterator it = mails.begin(); it != mails.end(); ++it ) { - QRadioButton* button = new QRadioButton( m_emailGroup ); + TQRadioButton* button = new TQRadioButton( m_emailGroup ); button->setText( *it ); m_idToEmail.insert( m_emailGroup->insert( button ), *it ); if ( *it == preferred ) button->setChecked( true ); button->setShown( true ); } - connect( m_emailGroup, SIGNAL( clicked( int ) ), - this, SLOT( emailButtonClicked( int ) ) ); + connect( m_emailGroup, TQT_SIGNAL( clicked( int ) ), + this, TQT_SLOT( emailButtonClicked( int ) ) ); m_radioLayout->addWidget( m_emailGroup, 0, 0 ); m_emailGroup->setShown( true ); m_mainLayout->invalidate(); -- cgit v1.2.1