summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/specialdates
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins/specialdates')
-rw-r--r--kontact/plugins/specialdates/sdsummarywidget.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kontact/plugins/specialdates/sdsummarywidget.cpp b/kontact/plugins/specialdates/sdsummarywidget.cpp
index 1b8475080..a36989304 100644
--- a/kontact/plugins/specialdates/sdsummarywidget.cpp
+++ b/kontact/plugins/specialdates/sdsummarywidget.cpp
@@ -84,7 +84,7 @@ SDSummaryWidget::SDSummaryWidget( Kontact::Plugin *plugin, TQWidget *parent,
// Create the Summary Layout
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
- TQPixmap icon = KGlobal::iconLoader()->loadIcon( "cookie",
+ TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "cookie",
KIcon::Desktop, KIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "Special Dates" ) );
@@ -226,8 +226,8 @@ void SDSummaryWidget::updateView()
TQLabel *label = 0;
// No reason to show the date year
- TQString savefmt = KGlobal::locale()->dateFormat();
- KGlobal::locale()->setDateFormat( KGlobal::locale()->
+ TQString savefmt = TDEGlobal::locale()->dateFormat();
+ TDEGlobal::locale()->setDateFormat( TDEGlobal::locale()->
dateFormat().replace( 'Y', ' ' ) );
// Search for Birthdays and Anniversaries in the Addressbook
@@ -424,7 +424,7 @@ void SDSummaryWidget::updateView()
}
label = new TQLabel( this );
if ( icon_img.isNull() ) {
- label->setPixmap( KGlobal::iconLoader()->loadIcon( icon_name,
+ label->setPixmap( TDEGlobal::iconLoader()->loadIcon( icon_name,
KIcon::Small ) );
} else {
label->setPixmap( icon_img );
@@ -446,13 +446,13 @@ void SDSummaryWidget::updateView()
} else if ( (*addrIt).daysTo == 1 ) {
datestr = i18n( "Tomorrow" );
} else {
- datestr = KGlobal::locale()->formatDate( sD );
+ datestr = TDEGlobal::locale()->formatDate( sD );
}
// Print the date span for multiday, floating events, for the
// first day of the event only.
if ( (*addrIt).span > 1 ) {
TQString endstr =
- KGlobal::locale()->formatDate( sD.addDays( (*addrIt).span - 1 ) );
+ TDEGlobal::locale()->formatDate( sD.addDays( (*addrIt).span - 1 ) );
datestr += " -\n " + endstr;
}
@@ -550,7 +550,7 @@ void SDSummaryWidget::updateView()
for ( label = mLabels.first(); label; label = mLabels.next() )
label->show();
- KGlobal::locale()->setDateFormat( savefmt );
+ TDEGlobal::locale()->setDateFormat( savefmt );
}
void SDSummaryWidget::mailContact( const TQString &uid )
@@ -575,9 +575,9 @@ void SDSummaryWidget::viewContact( const TQString &uid )
void SDSummaryWidget::popupMenu( const TQString &uid )
{
KPopupMenu popup( this );
- popup.insertItem( KGlobal::iconLoader()->loadIcon( "kmail", KIcon::Small ),
+ popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "kmail", KIcon::Small ),
i18n( "Send &Mail" ), 0 );
- popup.insertItem( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Small ),
+ popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Small ),
i18n( "View &Contact" ), 1 );
switch ( popup.exec( TQCursor::pos() ) ) {