diff options
author | Timothy Pearson <[email protected]> | 2013-01-24 13:49:30 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-24 13:49:30 -0600 |
commit | a9bde819f2b421dcc44741156e75eca4bb5fb4f4 (patch) | |
tree | d087071b1e8fcf79698938efec19f8e48bab0799 /kontact/plugins/specialdates | |
parent | 5c4a80ead2b1fe57dc6a8c29d0368792344cd61e (diff) | |
download | tdepim-a9bde819f2b421dcc44741156e75eca4bb5fb4f4.tar.gz tdepim-a9bde819f2b421dcc44741156e75eca4bb5fb4f4.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kontact/plugins/specialdates')
-rw-r--r-- | kontact/plugins/specialdates/sdsummarywidget.cpp | 18 |
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() ) ) { |