diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
commit | f4fae92b6768541e2952173c3d4b09040f95bf7e (patch) | |
tree | d8c5d93232235cd635f3310b4d95490df181ba2d /kontact/plugins/summary/summaryview_part.cpp | |
parent | 125c0a08265b75a133644d3b55f47e37c919f45d (diff) | |
download | tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip |
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kontact/plugins/summary/summaryview_part.cpp')
-rw-r--r-- | kontact/plugins/summary/summaryview_part.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kontact/plugins/summary/summaryview_part.cpp b/kontact/plugins/summary/summaryview_part.cpp index 0b22f853b..e7c161ea1 100644 --- a/kontact/plugins/summary/summaryview_part.cpp +++ b/kontact/plugins/summary/summaryview_part.cpp @@ -58,7 +58,7 @@ #include "summaryview_part.h" #include "broadcaststatus.h" -using KPIM::BroadcastStatus; +using KPIM::BroadcasStatus; namespace Kontact { @@ -80,7 +80,7 @@ SummaryViewPart::SummaryViewPart( Kontact::Core *core, const char*, connect( kapp, TQT_SIGNAL( kdisplayPaletteChanged() ), TQT_SLOT( slotAdjustPalette() ) ); slotAdjustPalette(); - setDate( TQDate::currentDate() ); + setDate( TQDate::tqcurrentDate() ); connect( mCore, TQT_SIGNAL( dayChanged( const TQDate& ) ), TQT_SLOT( setDate( const TQDate& ) ) ); @@ -137,7 +137,7 @@ void SummaryViewPart::updateWidgets() const KPIM::Identity &id = idm.defaultIdentity(); TQString currentUser = i18n( "Summary for %1" ).arg( id.fullName() ); - mUsernameLabel->setText( TQString::fromLatin1( "<b>%1</b>" ).arg( currentUser ) ); + mUsernameLabel->setText( TQString::tqfromLatin1( "<b>%1</b>" ).arg( currentUser ) ); mSummaries.clear(); @@ -177,12 +177,12 @@ void SummaryViewPart::updateWidgets() mSummaries.insert( plugin->identifier(), summary ); connect( summary, TQT_SIGNAL( message( const TQString& ) ), - BroadcastStatus::instance(), TQT_SLOT( setStatusMsg( const TQString& ) ) ); + BroadcasStatus::instance(), TQT_SLOT( seStatusMsg( const TQString& ) ) ); connect( summary, TQT_SIGNAL( summaryWidgetDropped( TQWidget*, TQWidget*, int ) ), this, TQT_SLOT( summaryWidgetMoved( TQWidget*, TQWidget*, int ) ) ); - if ( !mLeftColumnSummaries.contains( plugin->identifier() ) && - !mRightColumnSummaries.contains( plugin->identifier() ) ) { + if ( !mLeftColumnSummaries.tqcontains( plugin->identifier() ) && + !mRightColumnSummaries.tqcontains( plugin->identifier() ) ) { mLeftColumnSummaries.append( plugin->identifier() ); } @@ -214,11 +214,11 @@ void SummaryViewPart::updateWidgets() TQFrame *vline = new TQFrame( mFrame ); vline->setFrameStyle( TQFrame::VLine | TQFrame::Plain ); - TQHBoxLayout *layout = new TQHBoxLayout( mFrame ); + TQHBoxLayout *tqlayout = new TQHBoxLayout( mFrame ); - mLeftColumn = new TQVBoxLayout( layout, KDialog::spacingHint() ); - layout->addWidget( vline ); - mRightColumn = new TQVBoxLayout( layout, KDialog::spacingHint() ); + mLeftColumn = new TQVBoxLayout( tqlayout, KDialog::spacingHint() ); + tqlayout->addWidget( vline ); + mRightColumn = new TQVBoxLayout( tqlayout, KDialog::spacingHint() ); TQStringList::Iterator strIt; @@ -241,7 +241,7 @@ void SummaryViewPart::updateWidgets() mRightColumn->addStretch(); } -void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, int alignment ) +void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, int tqalignment ) { if ( target == widget ) return; @@ -266,17 +266,17 @@ void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, in if ( target == mFrame ) { int pos = 0; - if ( alignment & Qt::AlignTop ) + if ( tqalignment & Qt::AlignTop ) pos = 0; - if ( alignment & Qt::AlignLeft ) { - if ( alignment & Qt::AlignBottom ) + if ( tqalignment & Qt::AlignLeft ) { + if ( tqalignment & Qt::AlignBottom ) pos = mLeftColumnSummaries.count(); mLeftColumn->insertWidget( pos, widget ); mLeftColumnSummaries.insert( mLeftColumnSummaries.at( pos ), widgetName( widget ) ); } else { - if ( alignment & Qt::AlignBottom ) + if ( tqalignment & Qt::AlignBottom ) pos = mRightColumnSummaries.count(); mRightColumn->insertWidget( pos, widget ); @@ -288,7 +288,7 @@ void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, in int targetPos = mLeftColumn->findWidget( target ); if ( targetPos != -1 ) { - if ( alignment == Qt::AlignBottom ) + if ( tqalignment == Qt::AlignBottom ) targetPos++; mLeftColumn->insertWidget( targetPos, widget ); @@ -296,7 +296,7 @@ void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, in } else { targetPos = mRightColumn->findWidget( target ); - if ( alignment == Qt::AlignBottom ) + if ( tqalignment == Qt::AlignBottom ) targetPos++; mRightColumn->insertWidget( targetPos, widget ); @@ -346,7 +346,7 @@ TQStringList SummaryViewPart::configModules() const TQStringList cm = it.data()->configModules(); TQStringList::ConstIterator strIt; for ( strIt = cm.begin(); strIt != cm.end(); ++strIt ) - if ( !(*strIt).isEmpty() && !modules.contains( *strIt ) ) + if ( !(*strIt).isEmpty() && !modules.tqcontains( *strIt ) ) modules.append( *strIt ); } @@ -374,7 +374,7 @@ void SummaryViewPart::initGUI( Kontact::Core *core ) mUsernameLabel = new TQLabel( mMainWidget ); hbl->addWidget( mUsernameLabel ); mDateLabel = new TQLabel( mMainWidget ); - mDateLabel->setAlignment( AlignRight ); + mDateLabel->tqsetAlignment( AlignRight ); hbl->addWidget( mDateLabel ); TQFrame *hline = new TQFrame( mMainWidget ); |