summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/summary/summaryview_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins/summary/summaryview_part.cpp')
-rw-r--r--kontact/plugins/summary/summaryview_part.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kontact/plugins/summary/summaryview_part.cpp b/kontact/plugins/summary/summaryview_part.cpp
index d65228cd1..93f48d667 100644
--- a/kontact/plugins/summary/summaryview_part.cpp
+++ b/kontact/plugins/summary/summaryview_part.cpp
@@ -23,7 +23,7 @@
#include <tqframe.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqtimer.h>
#include <dcopclient.h>
@@ -80,7 +80,7 @@ SummaryViewPart::SummaryViewPart( Kontact::Core *core, const char*,
connect( kapp, TQT_SIGNAL( kdisplayPaletteChanged() ), TQT_SLOT( slotAdjustPalette() ) );
slotAdjustPalette();
- setDate( TQDate::tqcurrentDate() );
+ setDate( TQDate::currentDate() );
connect( mCore, TQT_SIGNAL( dayChanged( const TQDate& ) ),
TQT_SLOT( setDate( const TQDate& ) ) );
@@ -136,8 +136,8 @@ void SummaryViewPart::updateWidgets()
KPIM::IdentityManager idm( true, this );
const KPIM::Identity &id = idm.defaultIdentity();
- TQString currentUser = i18n( "Summary for %1" ).tqarg( id.fullName() );
- mUsernameLabel->setText( TQString::tqfromLatin1( "<b>%1</b>" ).tqarg( currentUser ) );
+ TQString currentUser = i18n( "Summary for %1" ).arg( id.fullName() );
+ mUsernameLabel->setText( TQString::fromLatin1( "<b>%1</b>" ).arg( currentUser ) );
mSummaries.clear();
@@ -214,11 +214,11 @@ void SummaryViewPart::updateWidgets()
TQFrame *vline = new TQFrame( mFrame );
vline->setFrameStyle( TQFrame::VLine | TQFrame::Plain );
- TQHBoxLayout *tqlayout = new TQHBoxLayout( mFrame );
+ TQHBoxLayout *layout = new TQHBoxLayout( mFrame );
- mLeftColumn = new TQVBoxLayout( tqlayout, KDialog::spacingHint() );
- tqlayout->addWidget( vline );
- mRightColumn = new TQVBoxLayout( tqlayout, KDialog::spacingHint() );
+ mLeftColumn = new TQVBoxLayout( layout, KDialog::spacingHint() );
+ layout->addWidget( vline );
+ mRightColumn = new TQVBoxLayout( layout, KDialog::spacingHint() );
TQStringList::Iterator strIt;
@@ -241,7 +241,7 @@ void SummaryViewPart::updateWidgets()
mRightColumn->addStretch();
}
-void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, int tqalignment )
+void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, int alignment )
{
if ( target == widget )
return;
@@ -266,17 +266,17 @@ void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, in
if ( target == mFrame ) {
int pos = 0;
- if ( tqalignment & TQt::AlignTop )
+ if ( alignment & TQt::AlignTop )
pos = 0;
- if ( tqalignment & TQt::AlignLeft ) {
- if ( tqalignment & TQt::AlignBottom )
+ if ( alignment & TQt::AlignLeft ) {
+ if ( alignment & TQt::AlignBottom )
pos = mLeftColumnSummaries.count();
mLeftColumn->insertWidget( pos, widget );
mLeftColumnSummaries.insert( mLeftColumnSummaries.at( pos ), widgetName( widget ) );
} else {
- if ( tqalignment & TQt::AlignBottom )
+ if ( alignment & TQt::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 ( tqalignment == TQt::AlignBottom )
+ if ( alignment == TQt::AlignBottom )
targetPos++;
mLeftColumn->insertWidget( targetPos, widget );
@@ -296,7 +296,7 @@ void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, in
} else {
targetPos = mRightColumn->findWidget( target );
- if ( tqalignment == TQt::AlignBottom )
+ if ( alignment == TQt::AlignBottom )
targetPos++;
mRightColumn->insertWidget( targetPos, widget );
@@ -311,13 +311,13 @@ void SummaryViewPart::slotTextChanged()
void SummaryViewPart::slotAdjustPalette()
{
- mMainWidget->setPaletteBackgroundColor( kapp->tqpalette().active().base() );
+ mMainWidget->setPaletteBackgroundColor( kapp->palette().active().base() );
}
void SummaryViewPart::setDate( const TQDate& newDate )
{
TQString date( "<b>%1</b>" );
- date = date.tqarg( KGlobal::locale()->formatDate( newDate ) );
+ date = date.arg( KGlobal::locale()->formatDate( newDate ) );
mDateLabel->setText( date );
}
@@ -374,7 +374,7 @@ void SummaryViewPart::initGUI( Kontact::Core *core )
mUsernameLabel = new TQLabel( mMainWidget );
hbl->addWidget( mUsernameLabel );
mDateLabel = new TQLabel( mMainWidget );
- mDateLabel->tqsetAlignment( AlignRight );
+ mDateLabel->setAlignment( AlignRight );
hbl->addWidget( mDateLabel );
TQFrame *hline = new TQFrame( mMainWidget );