Rename KIcon to enhance compatibility with KDE4

pull/21/head
Timothy Pearson 12 years ago
parent 656055dae6
commit b97ee238f8

@ -42,7 +42,7 @@ namespace Akregator {
AddFeedWidget::AddFeedWidget(TQWidget *parent, const char *name) AddFeedWidget::AddFeedWidget(TQWidget *parent, const char *name)
: AddFeedWidgetBase(parent, name) : AddFeedWidgetBase(parent, name)
{ {
pixmapLabel1->setPixmap(kapp->iconLoader()->loadIcon( "package_network",KIcon::Desktop,KIcon::SizeHuge, KIcon::DefaultState, 0, true)); pixmapLabel1->setPixmap(kapp->iconLoader()->loadIcon( "package_network",TDEIcon::Desktop,TDEIcon::SizeHuge, TDEIcon::DefaultState, 0, true));
statusLabel->setText(TQString()); statusLabel->setText(TQString());
} }

@ -247,7 +247,7 @@ View::View( Part *part, TQWidget *parent, ActionManagerImpl* actionManager, cons
m_listTabWidget->setViewMode(ListTabWidget::single); m_listTabWidget->setViewMode(ListTabWidget::single);
m_feedListView = new NodeListView( this, "feedtree" ); m_feedListView = new NodeListView( this, "feedtree" );
m_listTabWidget->addView(m_feedListView, i18n("Feeds"), TDEGlobal::iconLoader()->loadIcon("folder", KIcon::Small)); m_listTabWidget->addView(m_feedListView, i18n("Feeds"), TDEGlobal::iconLoader()->loadIcon("folder", TDEIcon::Small));
connect(m_feedListView, TQT_SIGNAL(signalContextMenu(TDEListView*, TreeNode*, const TQPoint&)), this, TQT_SLOT(slotFeedTreeContextMenu(TDEListView*, TreeNode*, const TQPoint&))); connect(m_feedListView, TQT_SIGNAL(signalContextMenu(TDEListView*, TreeNode*, const TQPoint&)), this, TQT_SLOT(slotFeedTreeContextMenu(TDEListView*, TreeNode*, const TQPoint&)));
@ -256,7 +256,7 @@ View::View( Part *part, TQWidget *parent, ActionManagerImpl* actionManager, cons
TreeNode*, Folder*))); TreeNode*, Folder*)));
m_tagNodeListView = new NodeListView(this); m_tagNodeListView = new NodeListView(this);
m_listTabWidget->addView(m_tagNodeListView, i18n("Tags"), TDEGlobal::iconLoader()->loadIcon("rss_tag", KIcon::Small)); m_listTabWidget->addView(m_tagNodeListView, i18n("Tags"), TDEGlobal::iconLoader()->loadIcon("rss_tag", TDEIcon::Small));
connect(m_tagNodeListView, TQT_SIGNAL(signalContextMenu(TDEListView*, TreeNode*, const TQPoint&)), this, TQT_SLOT(slotFeedTreeContextMenu(TDEListView*, TreeNode*, const TQPoint&))); connect(m_tagNodeListView, TQT_SIGNAL(signalContextMenu(TDEListView*, TreeNode*, const TQPoint&)), this, TQT_SLOT(slotFeedTreeContextMenu(TDEListView*, TreeNode*, const TQPoint&)));

@ -84,12 +84,12 @@ void FeedItem::nodeChanged()
TQPixmap FeedItem::errorPixmap() TQPixmap FeedItem::errorPixmap()
{ {
return TDEGlobal::iconLoader()->loadIcon("error", KIcon::Small); return TDEGlobal::iconLoader()->loadIcon("error", TDEIcon::Small);
} }
TQPixmap FeedItem::defaultPixmap() TQPixmap FeedItem::defaultPixmap()
{ {
return TDEGlobal::iconLoader()->loadIcon("txt", KIcon::Small); return TDEGlobal::iconLoader()->loadIcon("txt", TDEIcon::Small);
} }
void FeedItem::initialize(Feed* node) void FeedItem::initialize(Feed* node)

@ -892,8 +892,8 @@ void NodeListView::slotFeedFetchStarted(Feed* feed)
TreeNodeItem* item = findNodeItem(feed); TreeNodeItem* item = findNodeItem(feed);
if (item) if (item)
{ {
KIconEffect iconEffect; TDEIconEffect iconEffect;
TQPixmap tempIcon = iconEffect.apply(feed->favicon(), KIcon::Small, KIcon::DisabledState); TQPixmap tempIcon = iconEffect.apply(feed->favicon(), TDEIcon::Small, TDEIcon::DisabledState);
item->setPixmap(0, tempIcon); item->setPixmap(0, tempIcon);
} }
} }

@ -56,7 +56,7 @@ FolderItem::FolderItem(TDEListView* parent, TreeNodeItem* after, Folder* node) :
void FolderItem::initialize(Folder* node) void FolderItem::initialize(Folder* node)
{ {
setOpen(node->isOpen()); setOpen(node->isOpen());
setPixmap ( 0, TDEGlobal::iconLoader()->loadIcon("folder", KIcon::Small) ); setPixmap ( 0, TDEGlobal::iconLoader()->loadIcon("folder", TDEIcon::Small) );
if (node) if (node)
setText(0, node->title()); setText(0, node->title());
} }

@ -84,7 +84,7 @@ SearchBar::SearchBar(TQWidget* parent, const char* name) : TQHBox(parent, name),
statusLabel->setText( i18n("Status:") ); statusLabel->setText( i18n("Status:") );
d->searchCombo = new KComboBox(this, "searchcombo"); d->searchCombo = new KComboBox(this, "searchcombo");
TQPixmap iconAll = TDEGlobal::iconLoader()->loadIcon("exec", KIcon::Small); TQPixmap iconAll = TDEGlobal::iconLoader()->loadIcon("exec", TDEIcon::Small);
TQPixmap iconNew(locate("data", "akregator/pics/kmmsgnew.png")); TQPixmap iconNew(locate("data", "akregator/pics/kmmsgnew.png"));
TQPixmap iconUnread(locate("data", "akregator/pics/kmmsgunseen.png")); TQPixmap iconUnread(locate("data", "akregator/pics/kmmsgunseen.png"));
TQPixmap iconKeep(locate("data", "akregator/pics/kmmsgflag.png")); TQPixmap iconKeep(locate("data", "akregator/pics/kmmsgflag.png"));

@ -316,7 +316,7 @@ void TabWidget::initiateDrag(int tab)
KURL::List lst; KURL::List lst;
lst.append( frame->part()->url() ); lst.append( frame->part()->url() );
KURLDrag* drag = new KURLDrag( lst, this ); KURLDrag* drag = new KURLDrag( lst, this );
drag->setPixmap( KMimeType::pixmapForURL( lst.first(), 0, KIcon::Small ) ); drag->setPixmap( KMimeType::pixmapForURL( lst.first(), 0, TDEIcon::Small ) );
drag->dragCopy(); drag->dragCopy();
} }
} }

@ -62,13 +62,13 @@ void TagNodeItem::initialize(TagNode* node)
if (node) if (node)
{ {
setText(0, node->title()); setText(0, node->title());
setPixmap ( 0, TDEGlobal::iconLoader()->loadIcon(node->icon(), KIcon::Small) ); setPixmap ( 0, TDEGlobal::iconLoader()->loadIcon(node->icon(), TDEIcon::Small) );
} }
} }
void TagNodeItem::nodeChanged() void TagNodeItem::nodeChanged()
{ {
setPixmap ( 0, TDEGlobal::iconLoader()->loadIcon(node()->icon(), KIcon::Small)); setPixmap ( 0, TDEGlobal::iconLoader()->loadIcon(node()->icon(), TDEIcon::Small));
TreeNodeItem::nodeChanged(); TreeNodeItem::nodeChanged();
} }

@ -79,7 +79,7 @@
<cstring>iconButton</cstring> <cstring>iconButton</cstring>
</property> </property>
</widget> </widget>
<widget class="KIconButton"> <widget class="TDEIconButton">
<property name="name"> <property name="name">
<cstring>iconButton</cstring> <cstring>iconButton</cstring>
</property> </property>

@ -63,7 +63,7 @@ TrayIcon::TrayIcon(TQWidget *parent, const char *name)
m_defaultIcon=KSystemTray::loadIcon("akregator"); m_defaultIcon=KSystemTray::loadIcon("akregator");
TQPixmap m_unreadIcon=KSystemTray::loadIcon("akregator_empty"); TQPixmap m_unreadIcon=KSystemTray::loadIcon("akregator_empty");
m_lightIconImage=m_unreadIcon.convertToImage(); m_lightIconImage=m_unreadIcon.convertToImage();
KIconEffect::deSaturate(m_lightIconImage, 0.60); TDEIconEffect::deSaturate(m_lightIconImage, 0.60);
setPixmap(m_defaultIcon); setPixmap(m_defaultIcon);
TQToolTip::add(this, i18n("Akregator - RSS Feed Reader")); TQToolTip::add(this, i18n("Akregator - RSS Feed Reader"));
} }
@ -167,7 +167,7 @@ void TrayIcon::slotSetUnread(int unread)
// overlay // overlay
TQImage overlayImg=m_lightIconImage.copy(); TQImage overlayImg=m_lightIconImage.copy();
KIconEffect::overlay(overlayImg, img); TDEIconEffect::overlay(overlayImg, img);
TQPixmap icon; TQPixmap icon;
icon.convertFromImage(overlayImg); icon.convertFromImage(overlayImg);

@ -59,7 +59,7 @@ using namespace Kleo;
static inline TQPixmap loadIcon( TQString s ) { static inline TQPixmap loadIcon( TQString s ) {
return TDEGlobal::instance()->iconLoader() return TDEGlobal::instance()->iconLoader()
->loadIcon( s.replace( TQRegExp( "[^a-zA-Z0-9_]" ), "_" ), KIcon::NoGroup, KIcon::SizeMedium ); ->loadIcon( s.replace( TQRegExp( "[^a-zA-Z0-9_]" ), "_" ), TDEIcon::NoGroup, TDEIcon::SizeMedium );
} }
static unsigned int num_components_with_options( const Kleo::CryptoConfig * config ) { static unsigned int num_components_with_options( const Kleo::CryptoConfig * config ) {

@ -99,10 +99,10 @@ Kleo::DirectoryServicesWidget::DirectoryServicesWidget(
x500LV->setSorting( -1 ); x500LV->setSorting( -1 );
// taken from kmail's configuredialog.cpp // taken from kmail's configuredialog.cpp
upButton->setIconSet( BarIconSet( "up", KIcon::SizeSmall ) ); upButton->setIconSet( BarIconSet( "up", TDEIcon::SizeSmall ) );
upButton->setEnabled( false ); // b/c no item is selected yet upButton->setEnabled( false ); // b/c no item is selected yet
downButton->setIconSet( BarIconSet( "down", KIcon::SizeSmall ) ); downButton->setIconSet( BarIconSet( "down", TDEIcon::SizeSmall ) );
downButton->setEnabled( false ); // b/c no item is selected yet downButton->setEnabled( false ); // b/c no item is selected yet
} }

@ -396,7 +396,7 @@ void Kleo::KeySelectionDialog::init( bool rememberChoice, bool extendedSelection
le->setText( initialQuery ); le->setText( initialQuery );
TQToolButton *clearButton = new TQToolButton( page ); TQToolButton *clearButton = new TQToolButton( page );
clearButton->setIconSet( TDEGlobal::iconLoader()->loadIconSet( clearButton->setIconSet( TDEGlobal::iconLoader()->loadIconSet(
TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", TDEIcon::Small, 0 ) );
hlay->addWidget( clearButton ); hlay->addWidget( clearButton );
hlay->addWidget( new TQLabel( le, i18n("&Search for:"), page ) ); hlay->addWidget( new TQLabel( le, i18n("&Search for:"), page ) );
hlay->addWidget( le, 1 ); hlay->addWidget( le, 1 );

@ -77,7 +77,7 @@ Kleo::PassphraseDialog::PassphraseDialog( const TQString & msg, const TQString &
TQHBoxLayout * hlay = new TQHBoxLayout( w, 0, spacingHint() ); TQHBoxLayout * hlay = new TQHBoxLayout( w, 0, spacingHint() );
TQLabel * label = new TQLabel( w ); TQLabel * label = new TQLabel( w );
label->setPixmap( DesktopIcon( "pgp-keys", KIcon::SizeMedium ) ); label->setPixmap( DesktopIcon( "pgp-keys", TDEIcon::SizeMedium ) );
hlay->addWidget( label, 0, AlignTop ); hlay->addWidget( label, 0, AlignTop );
TQVBoxLayout * vlay = new TQVBoxLayout( hlay ); // inherits spacing TQVBoxLayout * vlay = new TQVBoxLayout( hlay ); // inherits spacing

@ -157,8 +157,8 @@ void AddresseeEditorWidget::setupTab1()
// Person icon // Person icon
label = new TQLabel( tab1 ); label = new TQLabel( tab1 );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "personal", TDEIcon::Desktop,
KIcon::SizeMedium ) ); TDEIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 0, 1, 0, 0 ); layout->addMultiCellWidget( label, 0, 1, 0, 0 );
// First name // First name
@ -213,7 +213,7 @@ void AddresseeEditorWidget::setupTab1()
// Phone numbers (upper right) // Phone numbers (upper right)
label = new TQLabel( tab1 ); label = new TQLabel( tab1 );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "kaddressbook", label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "kaddressbook",
KIcon::Desktop, KIcon::SizeMedium ) ); TDEIcon::Desktop, TDEIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 0, 1, 3, 3 ); layout->addMultiCellWidget( label, 0, 1, 3, 3 );
mPhoneEditWidget = new PhoneEditWidget( tab1 ); mPhoneEditWidget = new PhoneEditWidget( tab1 );
@ -226,8 +226,8 @@ void AddresseeEditorWidget::setupTab1()
////////////////////////////////////// //////////////////////////////////////
// Addresses (lower left) // Addresses (lower left)
label = new TQLabel( tab1 ); label = new TQLabel( tab1 );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "kfm_home", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "kfm_home", TDEIcon::Desktop,
KIcon::SizeMedium ) ); TDEIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 5, 6, 0, 0 ); layout->addMultiCellWidget( label, 5, 6, 0, 0 );
mAddressEditWidget = new AddressEditWidget( tab1 ); mAddressEditWidget = new AddressEditWidget( tab1 );
@ -237,8 +237,8 @@ void AddresseeEditorWidget::setupTab1()
////////////////////////////////////// //////////////////////////////////////
// Email / Web (lower right) // Email / Web (lower right)
label = new TQLabel( tab1 ); label = new TQLabel( tab1 );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "email", TDEIcon::Desktop,
KIcon::SizeMedium ) ); TDEIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 5, 6, 3, 3 ); layout->addMultiCellWidget( label, 5, 6, 3, 3 );
mEmailWidget = new EmailEditWidget( tab1 ); mEmailWidget = new EmailEditWidget( tab1 );
@ -252,8 +252,8 @@ void AddresseeEditorWidget::setupTab1()
TQHBoxLayout *homePageLayout = new TQHBoxLayout( 0, 11, 7 ); TQHBoxLayout *homePageLayout = new TQHBoxLayout( 0, 11, 7 );
label = new TQLabel( tab1 ); label = new TQLabel( tab1 );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "homepage", TDEIcon::Desktop,
KIcon::SizeMedium ) ); TDEIcon::SizeMedium ) );
homePageLayout->addWidget( label ); homePageLayout->addWidget( label );
label = new TQLabel( i18n( "<urlLabel>:", "%1:" ).arg( KABC::Addressee::urlLabel() ), tab1 ); label = new TQLabel( i18n( "<urlLabel>:", "%1:" ).arg( KABC::Addressee::urlLabel() ), tab1 );
@ -325,8 +325,8 @@ void AddresseeEditorWidget::setupTab2()
// Department // Department
label = new TQLabel( tab2 ); label = new TQLabel( tab2 );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "folder", TDEIcon::Desktop,
KIcon::SizeMedium ) ); TDEIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 0, 1, 0, 0 ); layout->addMultiCellWidget( label, 0, 1, 0, 0 );
label = new TQLabel( i18n( "Department:" ), tab2 ); label = new TQLabel( i18n( "Department:" ), tab2 );
@ -384,8 +384,8 @@ void AddresseeEditorWidget::setupTab2()
// Personal info // Personal info
label = new TQLabel( tab2 ); label = new TQLabel( tab2 );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "personal", TDEIcon::Desktop,
KIcon::SizeMedium ) ); TDEIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 4, 5, 0, 0 ); layout->addMultiCellWidget( label, 4, 5, 0, 0 );
label = new TQLabel( i18n( "Nickname:" ), tab2 ); label = new TQLabel( i18n( "Nickname:" ), tab2 );

@ -105,7 +105,7 @@ void KAB::DistributionListEntryView::setEntry( const KPIM::DistributionList& lis
TQPixmap pixmap; TQPixmap pixmap;
pixmap.convertFromImage( m_entry.addressee.photo().data() ); pixmap.convertFromImage( m_entry.addressee.photo().data() );
m_imageLabel->setPixmap( pixmap.isNull() ? TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) : pixmap ); m_imageLabel->setPixmap( pixmap.isNull() ? TDEGlobal::iconLoader()->loadIcon( "personal", TDEIcon::Desktop ) : pixmap );
m_addresseeLabel->setText( i18n( "Formatted name, role, organization", "<qt><h2>%1</h2><p>%2<br/>%3</p></qt>" ).arg( m_entry.addressee.formattedName(), m_entry.addressee.role(), m_entry.addressee.organization() ) ); m_addresseeLabel->setText( i18n( "Formatted name, role, organization", "<qt><h2>%1</h2><p>%2<br/>%3</p></qt>" ).arg( m_entry.addressee.formattedName(), m_entry.addressee.role(), m_entry.addressee.organization() ) );
m_distListLabel->setURL( m_list.name() ); m_distListLabel->setURL( m_list.name() );
m_distListLabel->setText( m_list.name() ); m_distListLabel->setText( m_list.name() );

@ -64,7 +64,7 @@ class ResourceItem : public TQCheckListItem
mResourceIdentifier() mResourceIdentifier()
{ {
setOn( resource->isActive() ); setOn( resource->isActive() );
setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "contents", KIcon::Small ) ); setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "contents", TDEIcon::Small ) );
mChecked = isOn(); mChecked = isOn();
} }
@ -77,7 +77,7 @@ class ResourceItem : public TQCheckListItem
{ {
KPIM::ResourceABC* res = dynamic_cast<KPIM::ResourceABC *>( mResource ); KPIM::ResourceABC* res = dynamic_cast<KPIM::ResourceABC *>( mResource );
setOn( res->subresourceActive( mResourceIdentifier ) ); setOn( res->subresourceActive( mResourceIdentifier ) );
setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "contents", KIcon::Small ) ); setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "contents", TDEIcon::Small ) );
mChecked = isOn(); mChecked = isOn();
} }

@ -55,7 +55,7 @@ GeoWidget::GeoWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name
label = new TQLabel( this ); label = new TQLabel( this );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "package_network", label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "package_network",
KIcon::Desktop, KIcon::SizeMedium ) ); TDEIcon::Desktop, TDEIcon::SizeMedium ) );
label->setAlignment( TQt::AlignTop ); label->setAlignment( TQt::AlignTop );
topLayout->addMultiCellWidget( label, 0, 3, 0, 0 ); topLayout->addMultiCellWidget( label, 0, 3, 0, 0 );

@ -144,7 +144,7 @@ void ImageButton::startDrag()
void ImageButton::updateGUI() void ImageButton::updateGUI()
{ {
if ( mPicture.data().isNull() ) if ( mPicture.data().isNull() )
setPixmap( TDEGlobal::iconLoader()->iconPath( "personal", KIcon::Desktop ) ); setPixmap( TDEGlobal::iconLoader()->iconPath( "personal", TDEIcon::Desktop ) );
else else
setPixmap( mPicture.data() ); setPixmap( mPicture.data() );
} }

@ -275,11 +275,11 @@ void LDAPOptionsWidget::initGUI()
TQVBox* upDownBox = new TQVBox( hBox ); TQVBox* upDownBox = new TQVBox( hBox );
upDownBox->setSpacing( 6 ); upDownBox->setSpacing( 6 );
mUpButton = new TQToolButton( upDownBox, "mUpButton" ); mUpButton = new TQToolButton( upDownBox, "mUpButton" );
mUpButton->setIconSet( BarIconSet( "up", KIcon::SizeSmall ) ); mUpButton->setIconSet( BarIconSet( "up", TDEIcon::SizeSmall ) );
mUpButton->setEnabled( false ); // b/c no item is selected yet mUpButton->setEnabled( false ); // b/c no item is selected yet
mDownButton = new TQToolButton( upDownBox, "mDownButton" ); mDownButton = new TQToolButton( upDownBox, "mDownButton" );
mDownButton->setIconSet( BarIconSet( "down", KIcon::SizeSmall ) ); mDownButton->setIconSet( BarIconSet( "down", TDEIcon::SizeSmall ) );
mDownButton->setEnabled( false ); // b/c no item is selected yet mDownButton->setEnabled( false ); // b/c no item is selected yet
TQWidget* spacer = new TQWidget( upDownBox ); TQWidget* spacer = new TQWidget( upDownBox );

@ -47,7 +47,7 @@ SoundWidget::SoundWidget( KABC::AddressBook *ab, TQWidget *parent, const char *n
TQLabel *label = new TQLabel( this ); TQLabel *label = new TQLabel( this );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "multimedia", label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "multimedia",
KIcon::Desktop, KIcon::SizeMedium ) ); TDEIcon::Desktop, TDEIcon::SizeMedium ) );
label->setAlignment( TQt::AlignTop ); label->setAlignment( TQt::AlignTop );
topLayout->addMultiCellWidget( label, 0, 1, 0, 0 ); topLayout->addMultiCellWidget( label, 0, 1, 0, 0 );

@ -49,7 +49,7 @@ ViewConfigureWidget::ViewConfigureWidget( KABC::AddressBook *ab, TQWidget *paren
// Add the first page, the attributes // Add the first page, the attributes
TQVBox *page = addPage( i18n( "Fields" ), TQString(), TQVBox *page = addPage( i18n( "Fields" ), TQString(),
TDEGlobal::iconLoader()->loadIcon( "view_detailed", TDEGlobal::iconLoader()->loadIcon( "view_detailed",
KIcon::Panel ) ); TDEIcon::Panel ) );
// Add the select fields page // Add the select fields page
mFieldsPage = new ViewConfigureFieldsPage( addressBook(), page ); mFieldsPage = new ViewConfigureFieldsPage( addressBook(), page );
@ -57,7 +57,7 @@ ViewConfigureWidget::ViewConfigureWidget( KABC::AddressBook *ab, TQWidget *paren
// Add the second page, the filter selection // Add the second page, the filter selection
page = addPage( i18n( "Default Filter" ), TQString(), page = addPage( i18n( "Default Filter" ), TQString(),
TDEGlobal::iconLoader()->loadIcon( "filter", TDEGlobal::iconLoader()->loadIcon( "filter",
KIcon::Panel ) ); TDEIcon::Panel ) );
mFilterPage = new ViewConfigureFilterPage( page ); mFilterPage = new ViewConfigureFilterPage( page );
} }

@ -497,7 +497,7 @@ void ViewManager::startDrag()
} }
} }
drag->setPixmap( TDEGlobal::iconLoader()->loadIcon( "vcard", KIcon::Desktop ) ); drag->setPixmap( TDEGlobal::iconLoader()->loadIcon( "vcard", TDEIcon::Desktop ) );
drag->dragCopy(); drag->dragCopy();
} }

@ -47,7 +47,7 @@ ConfigureTableViewWidget::ConfigureTableViewWidget( KABC::AddressBook *ab,
{ {
TQWidget *page = addPage( i18n( "Look & Feel" ), TQString(), TQWidget *page = addPage( i18n( "Look & Feel" ), TQString(),
TDEGlobal::iconLoader()->loadIcon( "looknfeel", TDEGlobal::iconLoader()->loadIcon( "looknfeel",
KIcon::Panel ) ); TDEIcon::Panel ) );
mPage = new LookAndFeelPage( page ); mPage = new LookAndFeelPage( page );
} }

@ -60,7 +60,7 @@ extern "C" {
} }
AddresseeIconView::AddresseeIconView( TQWidget *parent, const char *name ) AddresseeIconView::AddresseeIconView( TQWidget *parent, const char *name )
: KIconView( parent, name ) : TDEIconView( parent, name )
{ {
setSelectionMode( TQIconView::Extended ); setSelectionMode( TQIconView::Extended );
setResizeMode( TQIconView::Adjust ); setResizeMode( TQIconView::Adjust );
@ -68,7 +68,7 @@ AddresseeIconView::AddresseeIconView( TQWidget *parent, const char *name )
setGridX( 100 ); setGridX( 100 );
setItemsMovable( false ); setItemsMovable( false );
setSorting( true, true ); setSorting( true, true );
setMode( KIconView::Select ); setMode( TDEIconView::Select );
connect( this, TQT_SIGNAL( dropped( TQDropEvent*, const TQValueList<TQIconDragItem>& ) ), connect( this, TQT_SIGNAL( dropped( TQDropEvent*, const TQValueList<TQIconDragItem>& ) ),
this, TQT_SLOT( itemDropped( TQDropEvent*, const TQValueList<TQIconDragItem>& ) ) ); this, TQT_SLOT( itemDropped( TQDropEvent*, const TQValueList<TQIconDragItem>& ) ) );
@ -92,12 +92,12 @@ TQDragObject *AddresseeIconView::dragObject()
} }
class AddresseeIconViewItem : public KIconViewItem class AddresseeIconViewItem : public TDEIconViewItem
{ {
public: public:
AddresseeIconViewItem( const KABC::Field::List&, KABC::AddressBook *doc, AddresseeIconViewItem( const KABC::Field::List&, KABC::AddressBook *doc,
const KABC::Addressee &addr, TQIconView *parent ) const KABC::Addressee &addr, TQIconView *parent )
: KIconViewItem( parent ), mDocument( doc ), mAddressee( addr ) : TDEIconViewItem( parent ), mDocument( doc ), mAddressee( addr )
{ {
refresh(); refresh();
} }
@ -112,7 +112,7 @@ class AddresseeIconViewItem : public KIconViewItem
setText( mAddressee.givenName() + " " + mAddressee.familyName() ); setText( mAddressee.givenName() + " " + mAddressee.familyName() );
TQPixmap icon; TQPixmap icon;
TQPixmap defaultIcon( TDEGlobal::iconLoader()->loadIcon( "vcard", KIcon::Desktop ) ); TQPixmap defaultIcon( TDEGlobal::iconLoader()->loadIcon( "vcard", TDEIcon::Desktop ) );
KABC::Picture pic = mAddressee.photo(); KABC::Picture pic = mAddressee.photo();
if ( pic.data().isNull() ) if ( pic.data().isNull() )
pic = mAddressee.logo(); pic = mAddressee.logo();

@ -36,7 +36,7 @@ class AddresseeIconViewItem;
namespace KABC { class AddressBook; } namespace KABC { class AddressBook; }
/** This is an example kaddressbook view that is implemented using /** This is an example kaddressbook view that is implemented using
* KIconView. This view is not the most useful view, but it displays * TDEIconView. This view is not the most useful view, but it displays
* how simple implementing a new view can be. * how simple implementing a new view can be.
*/ */
class KAddressBookIconView : public KAddressBookView class KAddressBookIconView : public KAddressBookView
@ -73,7 +73,7 @@ class KAddressBookIconView : public KAddressBookView
}; };
class AddresseeIconView : public KIconView class AddresseeIconView : public TDEIconView
{ {
Q_OBJECT Q_OBJECT

@ -559,11 +559,11 @@ void MessageWin::initView()
} }
#endif #endif
KIconLoader iconLoader; TDEIconLoader iconLoader;
if (mKMailSerialNumber) if (mKMailSerialNumber)
{ {
// KMail button // KMail button
TQPixmap pixmap = iconLoader.loadIcon(TQString::fromLatin1("kmail"), KIcon::MainToolbar); TQPixmap pixmap = iconLoader.loadIcon(TQString::fromLatin1("kmail"), TDEIcon::MainToolbar);
mKMailButton = new TQPushButton(topWidget); mKMailButton = new TQPushButton(topWidget);
mKMailButton->setPixmap(pixmap); mKMailButton->setPixmap(pixmap);
mKMailButton->setFixedSize(mKMailButton->sizeHint()); mKMailButton->setFixedSize(mKMailButton->sizeHint());
@ -576,7 +576,7 @@ void MessageWin::initView()
mKMailButton = 0; mKMailButton = 0;
// KAlarm button // KAlarm button
TQPixmap pixmap = iconLoader.loadIcon(TQString::fromLatin1(kapp->aboutData()->appName()), KIcon::MainToolbar); TQPixmap pixmap = iconLoader.loadIcon(TQString::fromLatin1(kapp->aboutData()->appName()), TDEIcon::MainToolbar);
mKAlarmButton = new TQPushButton(topWidget); mKAlarmButton = new TQPushButton(topWidget);
mKAlarmButton->setPixmap(pixmap); mKAlarmButton->setPixmap(pixmap);
mKAlarmButton->setFixedSize(mKAlarmButton->sizeHint()); mKAlarmButton->setFixedSize(mKAlarmButton->sizeHint());

@ -75,7 +75,7 @@ KandyPrefsDialog::~KandyPrefsDialog()
void KandyPrefsDialog::setupSerialTab() void KandyPrefsDialog::setupSerialTab()
{ {
TQFrame *topFrame = addPage(i18n("Serial Interface"),0, TQFrame *topFrame = addPage(i18n("Serial Interface"),0,
DesktopIcon("connect_no",KIcon::SizeMedium)); DesktopIcon("connect_no",TDEIcon::SizeMedium));
TQGridLayout *topLayout = new TQGridLayout(topFrame,6,2); TQGridLayout *topLayout = new TQGridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint()); topLayout->setSpacing(spacingHint());
@ -114,7 +114,7 @@ void KandyPrefsDialog::setupSerialTab()
void KandyPrefsDialog::setupAddressbookTab() void KandyPrefsDialog::setupAddressbookTab()
{ {
TQFrame *topFrame = addPage(i18n("Address Book"), 0, TQFrame *topFrame = addPage(i18n("Address Book"), 0,
DesktopIcon("kaddressbook", KIcon::SizeMedium)); DesktopIcon("kaddressbook", TDEIcon::SizeMedium));
TQGridLayout *topLayout = new TQGridLayout(topFrame, 13, 4); TQGridLayout *topLayout = new TQGridLayout(topFrame, 13, 4);
topLayout->setSpacing(spacingHint()); topLayout->setSpacing(spacingHint());
@ -351,7 +351,7 @@ void KandyPrefsDialog::setupAddressbookTab()
void KandyPrefsDialog::setupWindowsTab() void KandyPrefsDialog::setupWindowsTab()
{ {
TQFrame *topFrame = addPage(i18n("Windows"),0, TQFrame *topFrame = addPage(i18n("Windows"),0,
DesktopIcon("window_list",KIcon::SizeMedium)); DesktopIcon("window_list",TDEIcon::SizeMedium));
TQGridLayout *topLayout = new TQGridLayout(topFrame,6,2); TQGridLayout *topLayout = new TQGridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint()); topLayout->setSpacing(spacingHint());

@ -46,7 +46,7 @@ Preferences *Preferences::instance( const TQString &icsfile )
void Preferences::makeBehaviorPage() void Preferences::makeBehaviorPage()
{ {
TQPixmap icon = SmallIcon( "kcmsystem", KIcon::SizeMedium); TQPixmap icon = SmallIcon( "kcmsystem", TDEIcon::SizeMedium);
TQFrame* behaviorPage = addPage( i18n("Behavior"), i18n("Behavior Settings"), TQFrame* behaviorPage = addPage( i18n("Behavior"), i18n("Behavior Settings"),
icon ); icon );
@ -74,7 +74,7 @@ void Preferences::makeBehaviorPage()
void Preferences::makeDisplayPage() void Preferences::makeDisplayPage()
{ {
TQPixmap icon = SmallIcon( "viewmag", KIcon::SizeMedium ); TQPixmap icon = SmallIcon( "viewmag", TDEIcon::SizeMedium );
TQFrame* displayPage = addPage( i18n("Display"), i18n("Display Settings"), TQFrame* displayPage = addPage( i18n("Display"), i18n("Display Settings"),
icon ); icon );
@ -104,7 +104,7 @@ void Preferences::makeDisplayPage()
void Preferences::makeStoragePage() void Preferences::makeStoragePage()
{ {
TQPixmap icon = SmallIcon( "kfm", KIcon::SizeMedium ); TQPixmap icon = SmallIcon( "kfm", TDEIcon::SizeMedium );
TQFrame* storagePage = addPage( i18n("Storage"), i18n("Storage Settings"), TQFrame* storagePage = addPage( i18n("Storage"), i18n("Storage Settings"),
icon ); icon );

@ -62,13 +62,13 @@ void Task::init( const TQString& taskName, long minutes, long sessionTime,
if (icons == 0) { if (icons == 0) {
icons = new TQPtrVector<TQPixmap>(8); icons = new TQPtrVector<TQPixmap>(8);
KIconLoader kil("karm"); // always load icons from the KArm application TDEIconLoader kil("karm"); // always load icons from the KArm application
for (int i=0; i<8; i++) for (int i=0; i<8; i++)
{ {
TQPixmap *icon = new TQPixmap(); TQPixmap *icon = new TQPixmap();
TQString name; TQString name;
name.sprintf("watch-%d.xpm",i); name.sprintf("watch-%d.xpm",i);
*icon = kil.loadIcon( name, KIcon::User ); *icon = kil.loadIcon( name, TDEIcon::User );
icons->insert(i,icon); icons->insert(i,icon);
} }
} }

@ -55,7 +55,7 @@ xQGanttBarViewPort::xQGanttBarViewPort(KGanttItem* toplevelitem,
connect(_itemTextEdit, TQT_SIGNAL(returnPressed ()), connect(_itemTextEdit, TQT_SIGNAL(returnPressed ()),
this, TQT_SLOT(textEdited())); this, TQT_SLOT(textEdited()));
_iconloader = new KIconLoader(); _iconloader = new TDEIconLoader();
initMenu(); initMenu();
@ -112,7 +112,7 @@ xQGanttBarViewPort::toolbar(TQMainWindow* mw)
mw->addToolBar(_toolbar); mw->addToolBar(_toolbar);
// KIconLoader* iconloader = new KIconLoader("kgantt"); // TDEIconLoader* iconloader = new TDEIconLoader("kgantt");
_toolbar->insertButton("ganttSelect.png", 0, _toolbar->insertButton("ganttSelect.png", 0,
@ -126,7 +126,7 @@ xQGanttBarViewPort::toolbar(TQMainWindow* mw)
/* /*
select all items select all items
*/ */
TQPixmap pix = _iconloader->loadIcon("ganttSelecttask.png", KIcon::Toolbar , 16 ); TQPixmap pix = _iconloader->loadIcon("ganttSelecttask.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("ganttSelecttask.png not found !\n"); if(pix.isNull()) printf("ganttSelecttask.png not found !\n");
selectMenu->insertItem(pix, i18n("Select All"), TQT_TQOBJECT(this), TQT_SLOT(selectAll()) ); selectMenu->insertItem(pix, i18n("Select All"), TQT_TQOBJECT(this), TQT_SLOT(selectAll()) );
@ -134,7 +134,7 @@ xQGanttBarViewPort::toolbar(TQMainWindow* mw)
/* /*
unselect all items unselect all items
*/ */
pix = _iconloader->loadIcon("ganttUnselecttask", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("ganttUnselecttask", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("ganttUnselecttask.png not found !\n"); if(pix.isNull()) printf("ganttUnselecttask.png not found !\n");
selectMenu->insertItem(pix, i18n("Unselect All"), TQT_TQOBJECT(this), TQT_SLOT(unselectAll()) ); selectMenu->insertItem(pix, i18n("Unselect All"), TQT_TQOBJECT(this), TQT_SLOT(unselectAll()) );
@ -150,16 +150,16 @@ xQGanttBarViewPort::toolbar(TQMainWindow* mw)
TDEPopupMenu* zoomMenu = new TDEPopupMenu(_toolbar); TDEPopupMenu* zoomMenu = new TDEPopupMenu(_toolbar);
pix = _iconloader->loadIcon("viewmag.png", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("viewmag.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag.png not found !\n"); if(pix.isNull()) printf("viewmag.png not found !\n");
zoomMenu->insertItem(pix, i18n("Zoom All"), TQT_TQOBJECT(this), TQT_SLOT(zoomAll()) ); zoomMenu->insertItem(pix, i18n("Zoom All"), TQT_TQOBJECT(this), TQT_SLOT(zoomAll()) );
zoomMenu->insertSeparator(); zoomMenu->insertSeparator();
pix = _iconloader->loadIcon("viewmag+.png", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("viewmag+.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag+.png not found !\n"); if(pix.isNull()) printf("viewmag+.png not found !\n");
zoomMenu->insertItem(pix, i18n("Zoom In +"), TQT_TQOBJECT(this), TQT_SLOT(zoomIn()) ); zoomMenu->insertItem(pix, i18n("Zoom In +"), TQT_TQOBJECT(this), TQT_SLOT(zoomIn()) );
pix = _iconloader->loadIcon("viewmag-.png", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("viewmag-.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag-.png not found !\n"); if(pix.isNull()) printf("viewmag-.png not found !\n");
zoomMenu->insertItem(pix, i18n("Zoom Out -"), TQT_TQOBJECT(this), TQT_SLOT(zoomOut()) ); zoomMenu->insertItem(pix, i18n("Zoom Out -"), TQT_TQOBJECT(this), TQT_SLOT(zoomOut()) );
@ -189,17 +189,17 @@ xQGanttBarViewPort::initMenu()
_selectMenu = new TDEPopupMenu(_menu); _selectMenu = new TDEPopupMenu(_menu);
TQPixmap pix = _iconloader->loadIcon("ganttSelect.png", KIcon::Toolbar , 16 ); TQPixmap pix = _iconloader->loadIcon("ganttSelect.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("ganttSelect.png not found !\n"); if(pix.isNull()) printf("ganttSelect.png not found !\n");
_selectMenu->insertItem(pix, i18n("Select Mode"), this, TQT_SLOT(setSelect())); _selectMenu->insertItem(pix, i18n("Select Mode"), this, TQT_SLOT(setSelect()));
_selectMenu->insertSeparator(); _selectMenu->insertSeparator();
pix = _iconloader->loadIcon("ganttSelecttask.png", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("ganttSelecttask.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("ganttSelecttask.png not found !\n"); if(pix.isNull()) printf("ganttSelecttask.png not found !\n");
_selectMenu->insertItem(pix, i18n("Select All"), this, TQT_SLOT(selectAll()) ); _selectMenu->insertItem(pix, i18n("Select All"), this, TQT_SLOT(selectAll()) );
pix = _iconloader->loadIcon("ganttUnselecttask", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("ganttUnselecttask", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("ganttUnselecttask.png not found !\n"); if(pix.isNull()) printf("ganttUnselecttask.png not found !\n");
_selectMenu->insertItem(pix, i18n("Unselect All"), this, TQT_SLOT(unselectAll()) ); _selectMenu->insertItem(pix, i18n("Unselect All"), this, TQT_SLOT(unselectAll()) );
@ -212,7 +212,7 @@ xQGanttBarViewPort::initMenu()
TDEPopupMenu* _zoomMenu = new TDEPopupMenu(_menu); TDEPopupMenu* _zoomMenu = new TDEPopupMenu(_menu);
pix = _iconloader->loadIcon("viewmag.png", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("viewmag.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag.png not found !\n"); if(pix.isNull()) printf("viewmag.png not found !\n");
_zoomMenu->insertItem(i18n("Zoom Mode"), this, TQT_SLOT(setZoom()) ); _zoomMenu->insertItem(i18n("Zoom Mode"), this, TQT_SLOT(setZoom()) );
@ -221,23 +221,23 @@ xQGanttBarViewPort::initMenu()
_zoomMenu->insertItem(pix, i18n("Zoom All"), this, TQT_SLOT(zoomAll()) ); _zoomMenu->insertItem(pix, i18n("Zoom All"), this, TQT_SLOT(zoomAll()) );
_zoomMenu->insertSeparator(); _zoomMenu->insertSeparator();
pix = _iconloader->loadIcon("viewmag+.png", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("viewmag+.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag+.png not found !\n"); if(pix.isNull()) printf("viewmag+.png not found !\n");
_zoomMenu->insertItem(pix, i18n("Zoom In +"), this, TQT_SLOT(zoomIn()) ); _zoomMenu->insertItem(pix, i18n("Zoom In +"), this, TQT_SLOT(zoomIn()) );
pix = _iconloader->loadIcon("viewmag-.png", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("viewmag-.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag-.png not found !\n"); if(pix.isNull()) printf("viewmag-.png not found !\n");
_zoomMenu->insertItem(pix, i18n("Zoom Out -"), this, TQT_SLOT(zoomOut()) ); _zoomMenu->insertItem(pix, i18n("Zoom Out -"), this, TQT_SLOT(zoomOut()) );
_menu->insertItem( "Zoom", _zoomMenu); _menu->insertItem( "Zoom", _zoomMenu);
pix = _iconloader->loadIcon("move.png", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("move.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("move.png not found !\n"); if(pix.isNull()) printf("move.png not found !\n");
_menu->insertItem(pix, i18n("Move Mode"), this, TQT_SLOT(setMove()) ); _menu->insertItem(pix, i18n("Move Mode"), this, TQT_SLOT(setMove()) );
_menu->insertSeparator(); _menu->insertSeparator();
pix = _iconloader->loadIcon("configure.png", KIcon::Toolbar , 16 ); pix = _iconloader->loadIcon("configure.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("configure.png not found !\n"); if(pix.isNull()) printf("configure.png not found !\n");
_menu->insertItem(pix, i18n("Configure Gantt..."), _parent, TQT_SLOT(showConfig())); _menu->insertItem(pix, i18n("Configure Gantt..."), _parent, TQT_SLOT(showConfig()));

@ -272,7 +272,7 @@ private:
TDEPopupMenu* _menu; TDEPopupMenu* _menu;
TDEPopupMenu* _selectMenu; TDEPopupMenu* _selectMenu;
KIconLoader* _iconloader; TDEIconLoader* _iconloader;
TDEToolBar* _toolbar; TDEToolBar* _toolbar;

@ -94,12 +94,12 @@ void AboutPage::handleUrl( const KURL &url )
TQString AboutPage::htmlText() const TQString AboutPage::htmlText() const
{ {
KIconLoader *iconloader = TDEGlobal::iconLoader(); TDEIconLoader *iconloader = TDEGlobal::iconLoader();
int iconSize = iconloader->currentSize( KIcon::Desktop ); int iconSize = iconloader->currentSize( TDEIcon::Desktop );
TQString handbook_icon_path = iconloader->iconPath( "contents2", KIcon::Desktop ); TQString handbook_icon_path = iconloader->iconPath( "contents2", TDEIcon::Desktop );
TQString html_icon_path = iconloader->iconPath( "html", KIcon::Desktop ); TQString html_icon_path = iconloader->iconPath( "html", TDEIcon::Desktop );
TQString wizard_icon_path = iconloader->iconPath( "wizard", KIcon::Desktop ); TQString wizard_icon_path = iconloader->iconPath( "wizard", TDEIcon::Desktop );
TQString info = i18n( "<h2 style='text-align:center; margin-top: 0px;'>Welcome to KitchenSync %1</h2>" TQString info = i18n( "<h2 style='text-align:center; margin-top: 0px;'>Welcome to KitchenSync %1</h2>"
"<p>%1</p>" "<p>%1</p>"

@ -57,7 +57,7 @@ GroupConfig::GroupConfig( TQWidget *parent )
nameLayout->setMargin( 4 ); nameLayout->setMargin( 4 );
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_summary", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_summary",
KIcon::Desktop ); TDEIcon::Desktop );
TQLabel *iconLabel = new TQLabel( titleFrame ); TQLabel *iconLabel = new TQLabel( titleFrame );
iconLabel->setPixmap( icon ); iconLabel->setPixmap( icon );
@ -92,7 +92,7 @@ GroupConfig::GroupConfig( TQWidget *parent )
buttonLayout->addStretch( 1 ); buttonLayout->addStretch( 1 );
icon = TDEGlobal::iconLoader()->loadIcon( "bookmark", KIcon::Desktop ); icon = TDEGlobal::iconLoader()->loadIcon( "bookmark", TDEIcon::Desktop );
TQFrame *page = mMemberView->addPage( i18n("Group"), TQFrame *page = mMemberView->addPage( i18n("Group"),
i18n("General Group Settings"), icon ); i18n("General Group Settings"), icon );
TQBoxLayout *pageLayout = new TQVBoxLayout( page ); TQBoxLayout *pageLayout = new TQVBoxLayout( page );

@ -67,7 +67,7 @@ GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process )
static TQPixmap icon; static TQPixmap icon;
if ( icon.isNull() ) if ( icon.isNull() )
icon = TDEGlobal::iconLoader()->loadIcon( "kontact_summary", KIcon::Desktop ); icon = TDEGlobal::iconLoader()->loadIcon( "kontact_summary", TDEIcon::Desktop );
mIcon = new TQLabel( hbox ); mIcon = new TQLabel( hbox );
mIcon->setPixmap( icon ); mIcon->setPixmap( icon );

@ -32,12 +32,12 @@ MemberInfo::MemberInfo( const QSync::Member &member )
TQPixmap MemberInfo::smallIcon() const TQPixmap MemberInfo::smallIcon() const
{ {
return TDEGlobal::iconLoader()->loadIcon( iconName(), KIcon::Small ); return TDEGlobal::iconLoader()->loadIcon( iconName(), TDEIcon::Small );
} }
TQPixmap MemberInfo::desktopIcon() const TQPixmap MemberInfo::desktopIcon() const
{ {
return TDEGlobal::iconLoader()->loadIcon( iconName(), KIcon::Desktop ); return TDEGlobal::iconLoader()->loadIcon( iconName(), TDEIcon::Desktop );
} }
TQString MemberInfo::iconName() const TQString MemberInfo::iconName() const

@ -41,7 +41,7 @@ PluginItem::PluginItem( KWidgetList *list, const QSync::Plugin &plugin )
TQGridLayout *layout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() ); TQGridLayout *layout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() );
TQLabel *icon = new TQLabel( this ); TQLabel *icon = new TQLabel( this );
icon->setPixmap( TDEGlobal::iconLoader()->loadIcon( iconName, KIcon::Desktop ) ); icon->setPixmap( TDEGlobal::iconLoader()->loadIcon( iconName, TDEIcon::Desktop ) );
icon->setFixedSize( icon->sizeHint() ); icon->setFixedSize( icon->sizeHint() );
TQLabel *name = new TQLabel( plugin.longName(), this ); TQLabel *name = new TQLabel( plugin.longName(), this );

@ -908,7 +908,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
button->setFixedSize( 22, 22 ); button->setFixedSize( 22, 22 );
button->setIconSet( button->setIconSet(
TDEGlobal::iconLoader()->loadIconSet( "reload", KIcon::Small, 0 ) ); TDEGlobal::iconLoader()->loadIconSet( "reload", TDEIcon::Small, 0 ) );
connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotReloadNamespaces()) ); connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotReloadNamespaces()) );
TQWhatsThis::add( button, TQWhatsThis::add( button,
i18n("Reload the namespaces from the server. This overwrites any changes.") ); i18n("Reload the namespaces from the server. This overwrites any changes.") );
@ -922,7 +922,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
mImap.personalNS->setReadOnly( true ); mImap.personalNS->setReadOnly( true );
mImap.editPNS = new TQToolButton( listbox ); mImap.editPNS = new TQToolButton( listbox );
mImap.editPNS->setIconSet( mImap.editPNS->setIconSet(
TDEGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) ); TDEGlobal::iconLoader()->loadIconSet( "edit", TDEIcon::Small, 0 ) );
mImap.editPNS->setAutoRaise( true ); mImap.editPNS->setAutoRaise( true );
mImap.editPNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); mImap.editPNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editPNS->setFixedSize( 22, 22 ); mImap.editPNS->setFixedSize( 22, 22 );
@ -934,7 +934,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
mImap.otherUsersNS->setReadOnly( true ); mImap.otherUsersNS->setReadOnly( true );
mImap.editONS = new TQToolButton( listbox ); mImap.editONS = new TQToolButton( listbox );
mImap.editONS->setIconSet( mImap.editONS->setIconSet(
TDEGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) ); TDEGlobal::iconLoader()->loadIconSet( "edit", TDEIcon::Small, 0 ) );
mImap.editONS->setAutoRaise( true ); mImap.editONS->setAutoRaise( true );
mImap.editONS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); mImap.editONS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editONS->setFixedSize( 22, 22 ); mImap.editONS->setFixedSize( 22, 22 );
@ -946,7 +946,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
mImap.sharedNS->setReadOnly( true ); mImap.sharedNS->setReadOnly( true );
mImap.editSNS = new TQToolButton( listbox ); mImap.editSNS = new TQToolButton( listbox );
mImap.editSNS->setIconSet( mImap.editSNS->setIconSet(
TDEGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) ); TDEGlobal::iconLoader()->loadIconSet( "edit", TDEIcon::Small, 0 ) );
mImap.editSNS->setAutoRaise( true ); mImap.editSNS->setAutoRaise( true );
mImap.editSNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); mImap.editSNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editSNS->setFixedSize( 22, 22 ); mImap.editSNS->setFixedSize( 22, 22 );
@ -2305,7 +2305,7 @@ NamespaceEditDialog::NamespaceEditDialog( TQWidget *parent,
edit->setText( it.key() ); edit->setText( it.key() );
TQToolButton* button = new TQToolButton( grid ); TQToolButton* button = new TQToolButton( grid );
button->setIconSet( button->setIconSet(
TDEGlobal::iconLoader()->loadIconSet( "editdelete", KIcon::Small, 0 ) ); TDEGlobal::iconLoader()->loadIconSet( "editdelete", TDEIcon::Small, 0 ) );
button->setAutoRaise( true ); button->setAutoRaise( true );
button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
button->setFixedSize( 22, 22 ); button->setFixedSize( 22, 22 );

@ -55,7 +55,7 @@ class KMMsgTagDesc;
class TDEListBox; class TDEListBox;
class KColorCombo; class KColorCombo;
class TDEFontRequester; class TDEFontRequester;
class KIconButton; class TDEIconButton;
class KKeyButton; class KKeyButton;
class TQSpinBox; class TQSpinBox;
class KComboBox; class KComboBox;

@ -60,8 +60,8 @@ CustomTemplates::CustomTemplates( TQWidget *parent, const char *name )
TQFont f = TDEGlobalSettings::fixedFont(); TQFont f = TDEGlobalSettings::fixedFont();
mEdit->setFont( f ); mEdit->setFont( f );
mAdd->setIconSet( BarIconSet( "add", KIcon::SizeSmall ) ); mAdd->setIconSet( BarIconSet( "add", TDEIcon::SizeSmall ) );
mRemove->setIconSet( BarIconSet( "remove", KIcon::SizeSmall ) ); mRemove->setIconSet( BarIconSet( "remove", TDEIcon::SizeSmall ) );
mList->setColumnWidth( 0, 50 ); mList->setColumnWidth( 0, 50 );
mList->setColumnWidth( 1, 100 ); mList->setColumnWidth( 1, 100 );
@ -92,9 +92,9 @@ CustomTemplates::CustomTemplates( TQWidget *parent, const char *name )
connect( mKeyButton, TQT_SIGNAL( capturedShortcut( const TDEShortcut& ) ), connect( mKeyButton, TQT_SIGNAL( capturedShortcut( const TDEShortcut& ) ),
this, TQT_SLOT( slotShortcutCaptured( const TDEShortcut& ) ) ); this, TQT_SLOT( slotShortcutCaptured( const TDEShortcut& ) ) );
mReplyPix = KIconLoader().loadIcon( "mail_reply", KIcon::Small ); mReplyPix = TDEIconLoader().loadIcon( "mail_reply", TDEIcon::Small );
mReplyAllPix = KIconLoader().loadIcon( "mail_replyall", KIcon::Small ); mReplyAllPix = TDEIconLoader().loadIcon( "mail_replyall", TDEIcon::Small );
mForwardPix = KIconLoader().loadIcon( "mail_forward", KIcon::Small ); mForwardPix = TDEIconLoader().loadIcon( "mail_forward", TDEIcon::Small );
mType->clear(); mType->clear();
mType->insertItem( TQPixmap(), i18n( "Message->", "Universal" ), TUniversal ); mType->insertItem( TQPixmap(), i18n( "Message->", "Universal" ), TUniversal );

@ -125,7 +125,7 @@
<cstring>mNormalIconButton</cstring> <cstring>mNormalIconButton</cstring>
</property> </property>
</widget> </widget>
<widget class="KIconButton" row="2" column="3"> <widget class="TDEIconButton" row="2" column="3">
<property name="name"> <property name="name">
<cstring>mNormalIconButton</cstring> <cstring>mNormalIconButton</cstring>
</property> </property>
@ -173,7 +173,7 @@
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="KIconButton" row="2" column="6"> <widget class="TDEIconButton" row="2" column="6">
<property name="name"> <property name="name">
<cstring>mUnreadIconButton</cstring> <cstring>mUnreadIconButton</cstring>
</property> </property>

@ -52,7 +52,7 @@ FolderRequester::FolderRequester( TQWidget *parent, KMFolderTree *tree )
edit->setReadOnly( true ); edit->setReadOnly( true );
TQToolButton* button = new TQToolButton( this ); TQToolButton* button = new TQToolButton( this );
button->setIconSet( TDEGlobal::iconLoader()->loadIconSet( "folder", KIcon::Small, 0 ) ); button->setIconSet( TDEGlobal::iconLoader()->loadIconSet( "folder", TDEIcon::Small, 0 ) );
connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOpenDialog()) ); connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOpenDialog()) );
setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,

@ -34,7 +34,7 @@ KMFilterActionWithAddressWidget::KMFilterActionWithAddressWidget( TQWidget* pare
mLineEdit->setName( "addressEdit" ); mLineEdit->setName( "addressEdit" );
hbl->addWidget( mLineEdit, 1 /*stretch*/ ); hbl->addWidget( mLineEdit, 1 /*stretch*/ );
mBtn = new TQPushButton( TQString() ,this ); mBtn = new TQPushButton( TQString() ,this );
mBtn->setPixmap( BarIcon( "contents", KIcon::SizeSmall ) ); mBtn->setPixmap( BarIcon( "contents", TDEIcon::SizeSmall ) );
mBtn->setFixedHeight( mLineEdit->sizeHint().height() ); mBtn->setFixedHeight( mLineEdit->sizeHint().height() );
TQToolTip::add( mBtn, i18n( "Open Address Book" ) ); TQToolTip::add( mBtn, i18n( "Open Address Book" ) );
hbl->addWidget( mBtn ); hbl->addWidget( mBtn );

@ -248,9 +248,9 @@ KMFilterDlg::KMFilterDlg(TQWidget* parent, const char* name, bool popFilter, boo
hbox ); hbox );
mFilterActionLabel->setEnabled( false ); mFilterActionLabel->setEnabled( false );
mFilterActionIconButton = new KIconButton( hbox ); mFilterActionIconButton = new TDEIconButton( hbox );
mFilterActionLabel->setBuddy( mFilterActionIconButton ); mFilterActionLabel->setBuddy( mFilterActionIconButton );
mFilterActionIconButton->setIconType( KIcon::NoGroup, KIcon::Any, true ); mFilterActionIconButton->setIconType( TDEIcon::NoGroup, TDEIcon::Any, true );
mFilterActionIconButton->setIconSize( 16 ); mFilterActionIconButton->setIconSize( 16 );
mFilterActionIconButton->setIcon( "gear" ); mFilterActionIconButton->setIcon( "gear" );
mFilterActionIconButton->setEnabled( false ); mFilterActionIconButton->setEnabled( false );
@ -594,19 +594,19 @@ KMFilterListBox::KMFilterListBox( const TQString & title, TQWidget *parent, cons
hb->setSpacing(4); hb->setSpacing(4);
mBtnTop = new KPushButton( TQString(), hb ); mBtnTop = new KPushButton( TQString(), hb );
mBtnTop->setAutoRepeat( true ); mBtnTop->setAutoRepeat( true );
mBtnTop->setIconSet( BarIconSet( "top", KIcon::SizeSmall ) ); mBtnTop->setIconSet( BarIconSet( "top", TDEIcon::SizeSmall ) );
mBtnTop->setMinimumSize( mBtnTop->sizeHint() * 1.2 ); mBtnTop->setMinimumSize( mBtnTop->sizeHint() * 1.2 );
mBtnUp = new KPushButton( TQString(), hb ); mBtnUp = new KPushButton( TQString(), hb );
mBtnUp->setAutoRepeat( true ); mBtnUp->setAutoRepeat( true );
mBtnUp->setIconSet( BarIconSet( "up", KIcon::SizeSmall ) ); mBtnUp->setIconSet( BarIconSet( "up", TDEIcon::SizeSmall ) );
mBtnUp->setMinimumSize( mBtnUp->sizeHint() * 1.2 ); mBtnUp->setMinimumSize( mBtnUp->sizeHint() * 1.2 );
mBtnDown = new KPushButton( TQString(), hb ); mBtnDown = new KPushButton( TQString(), hb );
mBtnDown->setAutoRepeat( true ); mBtnDown->setAutoRepeat( true );
mBtnDown->setIconSet( BarIconSet( "down", KIcon::SizeSmall ) ); mBtnDown->setIconSet( BarIconSet( "down", TDEIcon::SizeSmall ) );
mBtnDown->setMinimumSize( mBtnDown->sizeHint() * 1.2 ); mBtnDown->setMinimumSize( mBtnDown->sizeHint() * 1.2 );
mBtnBot = new KPushButton( TQString(), hb ); mBtnBot = new KPushButton( TQString(), hb );
mBtnBot->setAutoRepeat( true ); mBtnBot->setAutoRepeat( true );
mBtnBot->setIconSet( BarIconSet( "bottom", KIcon::SizeSmall ) ); mBtnBot->setIconSet( BarIconSet( "bottom", TDEIcon::SizeSmall ) );
mBtnBot->setMinimumSize( mBtnBot->sizeHint() * 1.2 ); mBtnBot->setMinimumSize( mBtnBot->sizeHint() * 1.2 );
TQToolTip::add( mBtnTop, i18n("Top") ); TQToolTip::add( mBtnTop, i18n("Top") );
TQToolTip::add( mBtnUp, i18n("Up") ); TQToolTip::add( mBtnUp, i18n("Up") );
@ -621,13 +621,13 @@ KMFilterListBox::KMFilterListBox( const TQString & title, TQWidget *parent, cons
hb = new TQHBox(this); hb = new TQHBox(this);
hb->setSpacing(4); hb->setSpacing(4);
mBtnNew = new TQPushButton( TQString(), hb ); mBtnNew = new TQPushButton( TQString(), hb );
mBtnNew->setPixmap( BarIcon( "filenew", KIcon::SizeSmall ) ); mBtnNew->setPixmap( BarIcon( "filenew", TDEIcon::SizeSmall ) );
mBtnNew->setMinimumSize( mBtnNew->sizeHint() * 1.2 ); mBtnNew->setMinimumSize( mBtnNew->sizeHint() * 1.2 );
mBtnCopy = new TQPushButton( TQString(), hb ); mBtnCopy = new TQPushButton( TQString(), hb );
mBtnCopy->setIconSet( BarIconSet( "editcopy", KIcon::SizeSmall ) ); mBtnCopy->setIconSet( BarIconSet( "editcopy", TDEIcon::SizeSmall ) );
mBtnCopy->setMinimumSize( mBtnCopy->sizeHint() * 1.2 ); mBtnCopy->setMinimumSize( mBtnCopy->sizeHint() * 1.2 );
mBtnDelete = new TQPushButton( TQString(), hb ); mBtnDelete = new TQPushButton( TQString(), hb );
mBtnDelete->setIconSet( BarIconSet( "editdelete", KIcon::SizeSmall ) ); mBtnDelete->setIconSet( BarIconSet( "editdelete", TDEIcon::SizeSmall ) );
mBtnDelete->setMinimumSize( mBtnDelete->sizeHint() * 1.2 ); mBtnDelete->setMinimumSize( mBtnDelete->sizeHint() * 1.2 );
mBtnRename = new TQPushButton( i18n("Rename..."), hb ); mBtnRename = new TQPushButton( i18n("Rename..."), hb );
TQToolTip::add( mBtnNew, i18n("New") ); TQToolTip::add( mBtnNew, i18n("New") );

@ -28,7 +28,7 @@ class TQPushButton;
class TQComboBox; class TQComboBox;
class TQWidgetStack; class TQWidgetStack;
class TQCheckBox; class TQCheckBox;
class KIconButton; class TDEIconButton;
class KKeyButton; class KKeyButton;
class TDEListView; class TDEListView;
@ -414,7 +414,7 @@ protected:
TQCheckBox *mConfigureShortcut; TQCheckBox *mConfigureShortcut;
TQCheckBox *mConfigureToolbar; TQCheckBox *mConfigureToolbar;
TQLabel *mFilterActionLabel; TQLabel *mFilterActionLabel;
KIconButton *mFilterActionIconButton; TDEIconButton *mFilterActionIconButton;
KKeyButton *mKeyButton; KKeyButton *mKeyButton;
TQGroupBox *mAdvOptsGroup; TQGroupBox *mAdvOptsGroup;
TQVGroupBox *mGlobalsBox; TQVGroupBox *mGlobalsBox;

@ -362,9 +362,9 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg,
mNormalIconLabel->setEnabled( false ); mNormalIconLabel->setEnabled( false );
ihl->addWidget( mNormalIconLabel ); ihl->addWidget( mNormalIconLabel );
mNormalIconButton = new KIconButton( this ); mNormalIconButton = new TDEIconButton( this );
mNormalIconLabel->setBuddy( mNormalIconButton ); mNormalIconLabel->setBuddy( mNormalIconButton );
mNormalIconButton->setIconType( KIcon::NoGroup , KIcon::Any, true ); mNormalIconButton->setIconType( TDEIcon::NoGroup , TDEIcon::Any, true );
mNormalIconButton->setIconSize( 16 ); mNormalIconButton->setIconSize( 16 );
mNormalIconButton->setStrictIconSize( true ); mNormalIconButton->setStrictIconSize( true );
mNormalIconButton->setFixedSize( 28, 28 ); mNormalIconButton->setFixedSize( 28, 28 );
@ -377,9 +377,9 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg,
mUnreadIconLabel->setEnabled( false ); mUnreadIconLabel->setEnabled( false );
ihl->addWidget( mUnreadIconLabel ); ihl->addWidget( mUnreadIconLabel );
mUnreadIconButton = new KIconButton( this ); mUnreadIconButton = new TDEIconButton( this );
mUnreadIconLabel->setBuddy( mUnreadIconButton ); mUnreadIconLabel->setBuddy( mUnreadIconButton );
mUnreadIconButton->setIconType( KIcon::NoGroup, KIcon::Any, true ); mUnreadIconButton->setIconType( TDEIcon::NoGroup, TDEIcon::Any, true );
mUnreadIconButton->setIconSize( 16 ); mUnreadIconButton->setIconSize( 16 );
mUnreadIconButton->setStrictIconSize( true ); mUnreadIconButton->setStrictIconSize( true );
mUnreadIconButton->setFixedSize( 28, 28 ); mUnreadIconButton->setFixedSize( 28, 28 );
@ -789,7 +789,7 @@ bool FolderDiaGeneralTab::save()
return true; return true;
} }
void FolderDiaGeneralTab::slotChangeIcon( TQString icon ) // can't use a const-ref here, due to KIconButton's signal void FolderDiaGeneralTab::slotChangeIcon( TQString icon ) // can't use a const-ref here, due to TDEIconButton's signal
{ {
mUnreadIconButton->setIcon( icon ); mUnreadIconButton->setIcon( icon );
} }

@ -45,7 +45,7 @@ class KMFolder;
class KMFolderTreeItem; class KMFolderTreeItem;
class KMFolderDir; class KMFolderDir;
class KIntNumInput; class KIntNumInput;
class KIconButton; class TDEIconButton;
class KEditListBox; class KEditListBox;
namespace KPIM { class IdentityCombo; } namespace KPIM { class IdentityCombo; }
class KMFolderDialog; class KMFolderDialog;
@ -141,9 +141,9 @@ private:
TQCheckBox *mAlarmsBlockedCheckBox; TQCheckBox *mAlarmsBlockedCheckBox;
TQCheckBox *mSharedSeenFlagsCheckBox; TQCheckBox *mSharedSeenFlagsCheckBox;
TQLabel *mNormalIconLabel; TQLabel *mNormalIconLabel;
KIconButton *mNormalIconButton; TDEIconButton *mNormalIconButton;
TQLabel *mUnreadIconLabel; TQLabel *mUnreadIconLabel;
KIconButton *mUnreadIconButton; TDEIconButton *mUnreadIconButton;
TQCheckBox *mIconsCheckBox; TQCheckBox *mIconsCheckBox;
TQCheckBox *mNewMailCheckBox; TQCheckBox *mNewMailCheckBox;
TQCheckBox *mNotifyOnNewMailCheckBox; TQCheckBox *mNotifyOnNewMailCheckBox;

@ -149,12 +149,12 @@ TQPixmap KMFolderTreeItem::normalIcon(int size) const
if (mFolder && mFolder->useCustomIcons() ) { if (mFolder && mFolder->useCustomIcons() ) {
icon = mFolder->normalIconPath(); icon = mFolder->normalIconPath();
} }
KIconLoader * il = TDEGlobal::instance()->iconLoader(); TDEIconLoader * il = TDEGlobal::instance()->iconLoader();
TQPixmap pm = il->loadIcon( icon, KIcon::Small, size, TQPixmap pm = il->loadIcon( icon, TDEIcon::Small, size,
KIcon::DefaultState, 0, true ); TDEIcon::DefaultState, 0, true );
if ( mFolder && pm.isNull() ) { if ( mFolder && pm.isNull() ) {
pm = il->loadIcon( mFolder->normalIconPath(), KIcon::Small, size, pm = il->loadIcon( mFolder->normalIconPath(), TDEIcon::Small, size,
KIcon::DefaultState, 0, true ); TDEIcon::DefaultState, 0, true );
} }
return pm; return pm;
@ -170,25 +170,25 @@ TQPixmap KMFolderTreeItem::unreadIcon(int size) const
kmkernel->folderIsDraftOrOutbox( mFolder ) ) kmkernel->folderIsDraftOrOutbox( mFolder ) )
pm = normalIcon( size ); pm = normalIcon( size );
KIconLoader * il = TDEGlobal::instance()->iconLoader(); TDEIconLoader * il = TDEGlobal::instance()->iconLoader();
if ( mFolder && mFolder->useCustomIcons() ) { if ( mFolder && mFolder->useCustomIcons() ) {
pm = il->loadIcon( mFolder->unreadIconPath(), KIcon::Small, size, pm = il->loadIcon( mFolder->unreadIconPath(), TDEIcon::Small, size,
KIcon::DefaultState, 0, true ); TDEIcon::DefaultState, 0, true );
if ( pm.isNull() ) if ( pm.isNull() )
pm = il->loadIcon( mFolder->normalIconPath(), KIcon::Small, size, pm = il->loadIcon( mFolder->normalIconPath(), TDEIcon::Small, size,
KIcon::DefaultState, 0, true ); TDEIcon::DefaultState, 0, true );
} }
if ( pm.isNull() ) { if ( pm.isNull() ) {
if ( mFolder && mFolder->noContent() ) { if ( mFolder && mFolder->noContent() ) {
pm = il->loadIcon( "folder_grey_open", KIcon::Small, size, pm = il->loadIcon( "folder_grey_open", TDEIcon::Small, size,
KIcon::DefaultState, 0, true ); TDEIcon::DefaultState, 0, true );
} else { } else {
if( kmkernel->iCalIface().isResourceFolder( mFolder ) ) if( kmkernel->iCalIface().isResourceFolder( mFolder ) )
pm = il->loadIcon( kmkernel->iCalIface().folderPixmap( type() ), pm = il->loadIcon( kmkernel->iCalIface().folderPixmap( type() ),
KIcon::Small, size, KIcon::DefaultState, 0, true ); TDEIcon::Small, size, TDEIcon::DefaultState, 0, true );
if ( pm.isNull() ) if ( pm.isNull() )
pm = il->loadIcon( "folder_open", KIcon::Small, size, pm = il->loadIcon( "folder_open", TDEIcon::Small, size,
KIcon::DefaultState, 0, true ); TDEIcon::DefaultState, 0, true );
} }
} }

@ -2399,9 +2399,9 @@ void KMHeaders::contentsMouseMoveEvent( TQMouseEvent* e )
// Set pixmap // Set pixmap
TQPixmap pixmap; TQPixmap pixmap;
if( count == 1 ) if( count == 1 )
pixmap = TQPixmap( DesktopIcon("message", KIcon::SizeSmall) ); pixmap = TQPixmap( DesktopIcon("message", TDEIcon::SizeSmall) );
else else
pixmap = TQPixmap( DesktopIcon("tdemultiple", KIcon::SizeSmall) ); pixmap = TQPixmap( DesktopIcon("tdemultiple", TDEIcon::SizeSmall) );
// Calculate hotspot (as in Konqueror) // Calculate hotspot (as in Konqueror)
if( !pixmap.isNull() ) { if( !pixmap.isNull() ) {

@ -370,7 +370,7 @@ void KMMimePartTreeItem::setIconAndTextForType( const TQString & mime )
} else { } else {
KMimeType::Ptr mtp = KMimeType::mimeType( mimetype ); KMimeType::Ptr mtp = KMimeType::mimeType( mimetype );
setText( 1, (mtp && !mtp->comment().isEmpty()) ? mtp->comment() : mimetype ); setText( 1, (mtp && !mtp->comment().isEmpty()) ? mtp->comment() : mimetype );
setPixmap( 0, mtp ? mtp->pixmap( KIcon::Small) : SmallIcon("unknown") ); setPixmap( 0, mtp ? mtp->pixmap( TDEIcon::Small) : SmallIcon("unknown") );
} }
} }

@ -159,7 +159,7 @@ public:
/** Tries to find a good icon for the 'Content-Type' by scanning /** Tries to find a good icon for the 'Content-Type' by scanning
the installed mimelnk files. Returns the found icon. If no matching the installed mimelnk files. Returns the found icon. If no matching
icon is found, the one for application/octet-stream is returned. */ icon is found, the one for application/octet-stream is returned. */
TQString iconName( int size = KIcon::Desktop ) const; TQString iconName( int size = TDEIcon::Desktop ) const;
/** Get or set the 'Content-Transfer-Encoding' header field /** Get or set the 'Content-Transfer-Encoding' header field
The member functions that involve enumerated types (ints) The member functions that involve enumerated types (ints)

@ -323,7 +323,7 @@ void KMMsgPartDialog::slotMimeTypeChanged( const TQString & mimeType ) {
TQString tmp = mimeType; // get rid of const'ness TQString tmp = mimeType; // get rid of const'ness
if ( mMimeType->validator() && mMimeType->validator()->validate( tmp, dummy ) if ( mMimeType->validator() && mMimeType->validator()->validate( tmp, dummy )
== TQValidator::Acceptable ) == TQValidator::Acceptable )
mIcon->setPixmap( KMimeType::mimeType( mimeType )->pixmap( KIcon::Desktop ) ); mIcon->setPixmap( KMimeType::mimeType( mimeType )->pixmap( TDEIcon::Desktop ) );
else else
mIcon->setPixmap( DesktopIcon("unknown") ); mIcon->setPixmap( DesktopIcon("unknown") );
} }

@ -251,7 +251,7 @@ void insertLibraryCataloguesAndIcons() {
}; };
TDELocale * l = TDEGlobal::locale(); TDELocale * l = TDEGlobal::locale();
KIconLoader * il = TDEGlobal::iconLoader(); TDEIconLoader * il = TDEGlobal::iconLoader();
for ( unsigned int i = 0 ; i < sizeof catalogues / sizeof *catalogues ; ++i ) { for ( unsigned int i = 0 ; i < sizeof catalogues / sizeof *catalogues ; ++i ) {
l->insertCatalogue( catalogues[i] ); l->insertCatalogue( catalogues[i] );
il->addAppDir( catalogues[i] ); il->addAppDir( catalogues[i] );

@ -218,7 +218,7 @@ void KMSystemTray::updateCount()
// "This function is slow because it involves transformation to a TQImage, // "This function is slow because it involves transformation to a TQImage,
// non-trivial computations and a transformation back to a TQBitmap."). Then // non-trivial computations and a transformation back to a TQBitmap."). Then
// I have to convert the resulting TQPixmap to a TQImage in order to overlay // I have to convert the resulting TQPixmap to a TQImage in order to overlay
// the light KMail icon with the number (because KIconEffect::overlay only // the light KMail icon with the number (because TDEIconEffect::overlay only
// works with TQImage). Finally the resulting TQImage has to be converted // works with TQImage). Finally the resulting TQImage has to be converted
// back to a TQPixmap. // back to a TQPixmap.
// That's a lot of work for overlaying the KMail icon with the number of // That's a lot of work for overlaying the KMail icon with the number of
@ -235,7 +235,7 @@ void KMSystemTray::updateCount()
// Overlay the light KMail icon with the number image // Overlay the light KMail icon with the number image
TQImage iconWithNumberImage = mLightIconImage.copy(); TQImage iconWithNumberImage = mLightIconImage.copy();
KIconEffect::overlay( iconWithNumberImage, numberImage ); TDEIconEffect::overlay( iconWithNumberImage, numberImage );
TQPixmap iconWithNumber; TQPixmap iconWithNumber;
iconWithNumber.convertFromImage( iconWithNumberImage ); iconWithNumber.convertFromImage( iconWithNumberImage );

@ -733,7 +733,7 @@ namespace KMail {
void ObjectTreeParser::writeDecryptionInProgressBlock() { void ObjectTreeParser::writeDecryptionInProgressBlock() {
assert( mReader ); assert( mReader );
// PENDING(marc) find an animated icon here: // PENDING(marc) find an animated icon here:
//const TQString iconName = TDEGlobal::instance()->iconLoader()->iconPath( "decrypted", KIcon::Small ); //const TQString iconName = TDEGlobal::instance()->iconLoader()->iconPath( "decrypted", TDEIcon::Small );
const TQString decryptedData = i18n("Encrypted data not shown"); const TQString decryptedData = i18n("Encrypted data not shown");
PartMetaData messagePart; PartMetaData messagePart;
messagePart.isDecryptable = true; messagePart.isDecryptable = true;
@ -749,7 +749,7 @@ void ObjectTreeParser::writeDecryptionInProgressBlock() {
void ObjectTreeParser::writeDeferredDecryptionBlock() { void ObjectTreeParser::writeDeferredDecryptionBlock() {
assert( mReader ); assert( mReader );
const TQString iconName = TDEGlobal::instance()->iconLoader()->iconPath( "decrypted", KIcon::Small ); const TQString iconName = TDEGlobal::instance()->iconLoader()->iconPath( "decrypted", TDEIcon::Small );
const TQString decryptedData = const TQString decryptedData =
"<div style=\"font-size:large; text-align:center;padding-top:20pt;\">" + "<div style=\"font-size:large; text-align:center;padding-top:20pt;\">" +
i18n("This message is encrypted.") + i18n("This message is encrypted.") +
@ -2010,7 +2010,7 @@ bool ObjectTreeParser::processApplicationMsTnefSubtype( partNode *node, ProcessR
TQString href = "file:" + KURL::encode_string( dir + TQDir::separator() + att->name() ); TQString href = "file:" + KURL::encode_string( dir + TQDir::separator() + att->name() );
KMimeType::Ptr mimeType = KMimeType::mimeType( att->mimeTag() ); KMimeType::Ptr mimeType = KMimeType::mimeType( att->mimeTag() );
TQString iconName = TDEGlobal::instance()->iconLoader()->iconPath( mimeType->icon( TQString(), false ), KIcon::Desktop ); TQString iconName = TDEGlobal::instance()->iconLoader()->iconPath( mimeType->icon( TQString(), false ), TDEIcon::Desktop );
htmlWriter()->queue( "<div><a href=\"" + href + "\"><img src=\"" + htmlWriter()->queue( "<div><a href=\"" + href + "\"><img src=\"" +
iconName + "\" border=\"0\" style=\"max-width: 100%\">" + label + iconName + "\" border=\"0\" style=\"max-width: 100%\">" + label +

@ -752,7 +752,7 @@ TQString partNode::asHREF( const TQString &place ) const
partNode::AttachmentDisplayInfo partNode::attachmentDisplayInfo() const partNode::AttachmentDisplayInfo partNode::attachmentDisplayInfo() const
{ {
AttachmentDisplayInfo info; AttachmentDisplayInfo info;
info.icon = msgPart().iconName( KIcon::Small ); info.icon = msgPart().iconName( TDEIcon::Small );
info.label = msgPart().name().stripWhiteSpace(); info.label = msgPart().name().stripWhiteSpace();
if ( info.label.isEmpty() ) if ( info.label.isEmpty() )
info.label = msgPart().fileName(); info.label = msgPart().fileName();

@ -63,7 +63,7 @@ void RecipientItem::setDistributionList( KPIM::DistributionList &list )
{ {
mDistributionList = list; mDistributionList = list;
mIcon = TDEGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small ); mIcon = TDEGlobal::iconLoader()->loadIcon( "tdmconfig", TDEIcon::Small );
mName = list.name(); mName = list.name();
mKey = list.name(); mKey = list.name();
@ -80,7 +80,7 @@ void RecipientItem::setDistributionList( KABC::DistributionList *list )
{ {
mDistributionList = list; mDistributionList = list;
mIcon = TDEGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small ); mIcon = TDEGlobal::iconLoader()->loadIcon( "tdmconfig", TDEIcon::Small );
mName = list->name(); mName = list->name();
mKey = list->name(); mKey = list->name();
@ -105,7 +105,7 @@ void RecipientItem::setAddressee( const KABC::Addressee &a,
if ( !img.isNull() ) if ( !img.isNull() )
mIcon = img.smoothScale( 20, 20, TQ_ScaleMin ); mIcon = img.smoothScale( 20, 20, TQ_ScaleMin );
else else
mIcon = TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Small ); mIcon = TDEGlobal::iconLoader()->loadIcon( "personal", TDEIcon::Small );
mName = mAddressee.realName(); mName = mAddressee.realName();
mKey = mAddressee.realName() + '|' + mEmail; mKey = mAddressee.realName() + '|' + mEmail;
@ -373,7 +373,7 @@ RecipientsPicker::RecipientsPicker( TQWidget *parent )
TQToolButton *button = new TQToolButton( this ); TQToolButton *button = new TQToolButton( this );
button->setIconSet( TDEGlobal::iconLoader()->loadIconSet( button->setIconSet( TDEGlobal::iconLoader()->loadIconSet(
TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", TDEIcon::Small, 0 ) );
searchLayout->addWidget( button ); searchLayout->addWidget( button );
connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( resetSearch() ) ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( resetSearch() ) );

@ -67,7 +67,7 @@ RedirectDialog::RedirectDialog( TQWidget *parent, const char *name,
mEditTo->setMinimumWidth( 300 ); mEditTo->setMinimumWidth( 300 );
mBtnTo = new TQPushButton( TQString(), hbox, "toBtn" ); mBtnTo = new TQPushButton( TQString(), hbox, "toBtn" );
mBtnTo->setPixmap( BarIcon( "contents", KIcon::SizeSmall ) ); mBtnTo->setPixmap( BarIcon( "contents", TDEIcon::SizeSmall ) );
mBtnTo->setMinimumSize( mBtnTo->sizeHint() * 1.2 ); mBtnTo->setMinimumSize( mBtnTo->sizeHint() * 1.2 );
TQToolTip::add( mBtnTo, i18n("Use the Address-Selection Dialog") ); TQToolTip::add( mBtnTo, i18n("Use the Address-Selection Dialog") );
TQWhatsThis::add( mBtnTo, i18n("This button opens a separate dialog " TQWhatsThis::add( mBtnTo, i18n("This button opens a separate dialog "

@ -93,9 +93,9 @@ class MatchListView : public TDEListView
TQPixmap pixmap; TQPixmap pixmap;
if( mailList.count() == 1 ) if( mailList.count() == 1 )
pixmap = TQPixmap( DesktopIcon("message", KIcon::SizeSmall) ); pixmap = TQPixmap( DesktopIcon("message", TDEIcon::SizeSmall) );
else else
pixmap = TQPixmap( DesktopIcon("tdemultiple", KIcon::SizeSmall) ); pixmap = TQPixmap( DesktopIcon("tdemultiple", TDEIcon::SizeSmall) );
d->setPixmap( pixmap ); d->setPixmap( pixmap );
return d; return d;

@ -122,7 +122,7 @@ SimpleStringListEditor::SimpleStringListEditor( TQWidget * parent,
kdDebug(5006) << "Are you sure you want to use an Up button " kdDebug(5006) << "Are you sure you want to use an Up button "
"without a Down button??" << endl; "without a Down button??" << endl;
mUpButton = new KPushButton( TQString(), this ); mUpButton = new KPushButton( TQString(), this );
mUpButton->setIconSet( BarIconSet( "up", KIcon::SizeSmall ) ); mUpButton->setIconSet( BarIconSet( "up", TDEIcon::SizeSmall ) );
mUpButton->setAutoDefault( false ); mUpButton->setAutoDefault( false );
mUpButton->setEnabled( false ); // no selection yet mUpButton->setEnabled( false ); // no selection yet
vlay->addWidget( mUpButton ); vlay->addWidget( mUpButton );
@ -135,7 +135,7 @@ SimpleStringListEditor::SimpleStringListEditor( TQWidget * parent,
kdDebug(5006) << "Are you sure you want to use a Down button " kdDebug(5006) << "Are you sure you want to use a Down button "
"without an Up button??" << endl; "without an Up button??" << endl;
mDownButton = new KPushButton( TQString(), this ); mDownButton = new KPushButton( TQString(), this );
mDownButton->setIconSet( BarIconSet( "down", KIcon::SizeSmall ) ); mDownButton->setIconSet( BarIconSet( "down", TDEIcon::SizeSmall ) );
mDownButton->setAutoDefault( false ); mDownButton->setAutoDefault( false );
mDownButton->setEnabled( false ); // no selection yet mDownButton->setEnabled( false ); // no selection yet
vlay->addWidget( mDownButton ); vlay->addWidget( mDownButton );

@ -654,7 +654,7 @@ namespace {
KURL file = window->tempFileUrlFromPartNode( node ).path(); KURL file = window->tempFileUrlFromPartNode( node ).path();
if ( !file.isEmpty() ) { if ( !file.isEmpty() ) {
TQString icon = node->msgPart().iconName( KIcon::Small ); TQString icon = node->msgPart().iconName( TDEIcon::Small );
KURLDrag* urlDrag = new KURLDrag( file, window ); KURLDrag* urlDrag = new KURLDrag( file, window );
if ( !icon.isEmpty() ) { if ( !icon.isEmpty() ) {
TQPixmap iconMap( icon ); TQPixmap iconMap( icon );

@ -278,7 +278,7 @@ void KMobile::addDevice()
TQString iconName = ptr->icon(); TQString iconName = ptr->icon();
if (iconName.isEmpty()) if (iconName.isEmpty())
iconName = KMOBILE_ICON_UNKNOWN; iconName = KMOBILE_ICON_UNKNOWN;
TQPixmap pm = TDEGlobal::instance()->iconLoader()->loadIcon(iconName, KIcon::Desktop ); TQPixmap pm = TDEGlobal::instance()->iconLoader()->loadIcon(iconName, TDEIcon::Desktop );
TQIconViewItem *item; TQIconViewItem *item;
item = new TQIconViewItem( dialog->iconView, ptr->name(), pm ); item = new TQIconViewItem( dialog->iconView, ptr->name(), pm );

@ -98,7 +98,7 @@ bool KMobileItem::configLoad(int idx)
TQPixmap KMobileItem::getIcon() const TQPixmap KMobileItem::getIcon() const
{ {
return TDEGlobal::instance()->iconLoader()->loadIcon(m_iconName, KIcon::Desktop ); return TDEGlobal::instance()->iconLoader()->loadIcon(m_iconName, TDEIcon::Desktop );
} }
TQString KMobileItem::config_SectionName(int idx) const TQString KMobileItem::config_SectionName(int idx) const

@ -38,7 +38,7 @@
SystemTray::SystemTray(TDEMainWindow *parent, const char *name) : KSystemTray(parent, name) SystemTray::SystemTray(TDEMainWindow *parent, const char *name) : KSystemTray(parent, name)
{ {
m_appPix = TDEGlobal::instance()->iconLoader()->loadIcon("kmobile", KIcon::Small); m_appPix = TDEGlobal::instance()->iconLoader()->loadIcon("kmobile", TDEIcon::Small);
setPixmap(m_appPix); setPixmap(m_appPix);
setToolTip(); setToolTip();
@ -72,7 +72,7 @@ void SystemTray::contextMenuAboutToShow(TDEPopupMenu *menu)
for (unsigned int no=0; no<list.count(); no++) { for (unsigned int no=0; no<list.count(); no++) {
TQString devName = list[no]; TQString devName = list[no];
TQString iconName = main->mainView()->iconFileName(devName); TQString iconName = main->mainView()->iconFileName(devName);
TQPixmap pm = TDEGlobal::instance()->iconLoader()->loadIcon(iconName, KIcon::Small); TQPixmap pm = TDEGlobal::instance()->iconLoader()->loadIcon(iconName, TDEIcon::Small);
menu->insertItem(pm, devName, SYSTEMTRAY_STARTID+no, 3+no); menu->insertItem(pm, devName, SYSTEMTRAY_STARTID+no, 3+no);
menu->connectItem(SYSTEMTRAY_STARTID+no, this, TQT_SLOT(menuItemSelected())); menu->connectItem(SYSTEMTRAY_STARTID+no, this, TQT_SLOT(menuItemSelected()));
} }

@ -883,7 +883,7 @@ void ArticleWidget::displayAttachment( KMime::Content *att, int partNum )
TQCString mimetype = ct->mimeType(); TQCString mimetype = ct->mimeType();
KPIM::kAsciiToLower( mimetype.data() ); KPIM::kAsciiToLower( mimetype.data() );
TQString iconName = KMimeType::mimeType( mimetype )->icon( TQString(), false ); TQString iconName = KMimeType::mimeType( mimetype )->icon( TQString(), false );
TQString iconFile = TDEGlobal::instance()->iconLoader()->iconPath( iconName, KIcon::Desktop ); TQString iconFile = TDEGlobal::instance()->iconLoader()->iconPath( iconName, TDEIcon::Desktop );
html += "<div><a href=\"" + href + "\"><img src=\"" + html += "<div><a href=\"" + href + "\"><img src=\"" +
iconFile + "\" border=\"0\">" + label + iconFile + "\" border=\"0\">" + label +
"</a></div><div>" + comment + "</div><br>"; "</a></div><div>" + comment + "</div><br>";

@ -510,21 +510,21 @@ void KNConfig::Appearance::recreateLVIcons()
TQPixmap tempPix = UserIcon("greyball"); TQPixmap tempPix = UserIcon("greyball");
TQImage tempImg=tempPix.convertToImage(); TQImage tempImg=tempPix.convertToImage();
KIconEffect::colorize(tempImg, readArticleColor(), 1.0); TDEIconEffect::colorize(tempImg, readArticleColor(), 1.0);
i_cons[greyBall].convertFromImage(tempImg); i_cons[greyBall].convertFromImage(tempImg);
tempImg=tempPix.convertToImage(); tempImg=tempPix.convertToImage();
KIconEffect::colorize(tempImg, unreadArticleColor(), 1.0); TDEIconEffect::colorize(tempImg, unreadArticleColor(), 1.0);
i_cons[redBall].convertFromImage(tempImg); i_cons[redBall].convertFromImage(tempImg);
tempPix = UserIcon("greyballchk"); tempPix = UserIcon("greyballchk");
tempImg=tempPix.convertToImage(); tempImg=tempPix.convertToImage();
KIconEffect::colorize(tempImg, readArticleColor(), 1.0); TDEIconEffect::colorize(tempImg, readArticleColor(), 1.0);
i_cons[greyBallChkd].convertFromImage(tempImg); i_cons[greyBallChkd].convertFromImage(tempImg);
tempImg=tempPix.convertToImage(); tempImg=tempPix.convertToImage();
KIconEffect::colorize(tempImg, unreadArticleColor(), 1.0); TDEIconEffect::colorize(tempImg, unreadArticleColor(), 1.0);
i_cons[redBallChkd].convertFromImage(tempImg); i_cons[redBallChkd].convertFromImage(tempImg);
} }

@ -1706,7 +1706,7 @@ KNConfig::FilterListWidget::FilterListWidget( TQWidget *p, const char *n ) :
topL->setRowStretch(11,1); topL->setRowStretch(11,1);
a_ctive = SmallIcon("filter",16); a_ctive = SmallIcon("filter",16);
d_isabled = SmallIcon("filter",16,KIcon::DisabledState); d_isabled = SmallIcon("filter",16,TDEIcon::DisabledState);
load(); load();

@ -486,7 +486,7 @@ ChangeLog for KNotes
outdated config files outdated config files
* fixed some bugs I found while rewriting the config stuff * fixed some bugs I found while rewriting the config stuff
* newNote and newNoteFromClipboard now take a "const QString& name" * newNote and newNoteFromClipboard now take a "const QString& name"
* new subdirectory "icons" to make KIconLoader apply its effects to all * new subdirectory "icons" to make TDEIconLoader apply its effects to all
KNotes icons KNotes icons
2002/10/17 Michael Brade <brade@kde.org> 2002/10/17 Michael Brade <brade@kde.org>

@ -359,9 +359,9 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char *
slotUpdateKeepAboveBelow(); slotUpdateKeepAboveBelow();
// HACK: update the icon color - again after showing the note, to make kicker aware of the new colors // HACK: update the icon color - again after showing the note, to make kicker aware of the new colors
KIconEffect effect; TDEIconEffect effect;
TQPixmap icon = effect.apply( kapp->icon(), KIconEffect::Colorize, 1, m_config->bgColor(), false ); TQPixmap icon = effect.apply( kapp->icon(), TDEIconEffect::Colorize, 1, m_config->bgColor(), false );
TQPixmap miniIcon = effect.apply( kapp->miniIcon(), KIconEffect::Colorize, 1, m_config->bgColor(), false ); TQPixmap miniIcon = effect.apply( kapp->miniIcon(), TDEIconEffect::Colorize, 1, m_config->bgColor(), false );
KWin::setIcons( winId(), icon, miniIcon ); KWin::setIcons( winId(), icon, miniIcon );
} }
@ -552,9 +552,9 @@ void KNote::setColor( const TQColor& fg, const TQColor& bg )
m_button->setPalette( darker ); m_button->setPalette( darker );
// update the icon color // update the icon color
KIconEffect effect; TDEIconEffect effect;
TQPixmap icon = effect.apply( kapp->icon(), KIconEffect::Colorize, 1, bg, false ); TQPixmap icon = effect.apply( kapp->icon(), TDEIconEffect::Colorize, 1, bg, false );
TQPixmap miniIcon = effect.apply( kapp->miniIcon(), KIconEffect::Colorize, 1, bg, false ); TQPixmap miniIcon = effect.apply( kapp->miniIcon(), TDEIconEffect::Colorize, 1, bg, false );
KWin::setIcons( winId(), icon, miniIcon ); KWin::setIcons( winId(), icon, miniIcon );
// set the color for the selection used to highlight the find stuff // set the color for the selection used to highlight the find stuff

@ -39,7 +39,7 @@ KNoteButton::KNoteButton( const TQString& icon, TQWidget *parent, const char *na
m_flat = true; m_flat = true;
if ( !icon.isEmpty() ) if ( !icon.isEmpty() )
setIconSet( TDEGlobal::iconLoader()->loadIconSet( icon, KIcon::Small, 10 ) ); setIconSet( TDEGlobal::iconLoader()->loadIconSet( icon, TDEIcon::Small, 10 ) );
} }
KNoteButton::~KNoteButton() KNoteButton::~KNoteButton()

@ -707,8 +707,8 @@ void KNotesApp::updateNoteActions()
TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotShowNote()), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotShowNote()),
(TQObject *)0, (TQObject *)0,
it.current()->noteId().utf8() ); it.current()->noteId().utf8() );
KIconEffect effect; TDEIconEffect effect;
TQPixmap icon = effect.apply( kapp->miniIcon(), KIconEffect::Colorize, 1, TQPixmap icon = effect.apply( kapp->miniIcon(), TDEIconEffect::Colorize, 1,
it.current()->paletteBackgroundColor(), false ); it.current()->paletteBackgroundColor(), false );
action->setIconSet( icon ); action->setIconSet( icon );
m_noteActions.append( action ); m_noteActions.append( action );

@ -14,7 +14,7 @@ UNTIL KDE 3.2
- move plugins to respective apps for code sharing(?) - move plugins to respective apps for code sharing(?)
- Summary (what's next) view (slueppken) (done) - Summary (what's next) view (slueppken) (done)
- Basic groupware functionality (Exchange 2k and Kolab) - Basic groupware functionality (Exchange 2k and Kolab)
- make the headerWidget look nicer (we might use KIconLoader - make the headerWidget look nicer (we might use TDEIconLoader
for larger icons) (slueppken) (done) for larger icons) (slueppken) (done)
- make all parts use the InfoExtension (done) - make all parts use the InfoExtension (done)
- make KCMultiDialog not crash when non-existent desktop-file - make KCMultiDialog not crash when non-existent desktop-file

@ -48,8 +48,8 @@ SummaryWidget::SummaryWidget( Kontact::Plugin *plugin, TQWidget *parent, const c
{ {
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_mail", KIcon::Desktop, TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_mail", TDEIcon::Desktop,
KIcon::SizeMedium ); TDEIcon::SizeMedium );
TQWidget *header = createHeader(this, icon, i18n("E-Mail")); TQWidget *header = createHeader(this, icon, i18n("E-Mail"));
mLayout = new TQGridLayout( 1, 3, 3 ); mLayout = new TQGridLayout( 1, 3, 3 );

@ -33,7 +33,7 @@
#include "knotes/KNotesIface.h" #include "knotes/KNotesIface.h"
class KIconView; class TDEIconView;
class TQIconViewItem; class TQIconViewItem;
class KNotesIconViewItem; class KNotesIconViewItem;
class KNoteTip; class KNoteTip;
@ -91,7 +91,7 @@ class KNotesPart : public KParts::ReadOnlyPart, virtual public KNotesIface
void printSelectedNotes(); void printSelectedNotes();
private: private:
KIconView *mNotesView; TDEIconView *mNotesView;
KNoteTip *mNoteTip; KNoteTip *mNoteTip;
KNoteEditDlg *mNoteEditDlg; KNoteEditDlg *mNoteEditDlg;

@ -57,19 +57,19 @@
#include "knotes/knoteedit.h" #include "knotes/knoteedit.h"
class KNotesIconViewItem : public KIconViewItem class KNotesIconViewItem : public TDEIconViewItem
{ {
public: public:
KNotesIconViewItem( KIconView *parent, KCal::Journal *journal ) KNotesIconViewItem( TDEIconView *parent, KCal::Journal *journal )
: KIconViewItem( parent ), : TDEIconViewItem( parent ),
mJournal( journal ) mJournal( journal )
{ {
setRenameEnabled( true ); setRenameEnabled( true );
KIconEffect effect; TDEIconEffect effect;
TQColor color( journal->customProperty( "KNotes", "BgColor" ) ); TQColor color( journal->customProperty( "KNotes", "BgColor" ) );
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "knotes", KIcon::Desktop ); TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "knotes", TDEIcon::Desktop );
icon = effect.apply( icon, KIconEffect::Colorize, 1, color, false ); icon = effect.apply( icon, TDEIconEffect::Colorize, 1, color, false );
setPixmap( icon ); setPixmap( icon );
setText( journal->summary() ); setText( journal->summary() );
} }
@ -81,7 +81,7 @@ class KNotesIconViewItem : public KIconViewItem
virtual void setText( const TQString& text ) virtual void setText( const TQString& text )
{ {
KIconViewItem::setText( text ); TDEIconViewItem::setText( text );
mJournal->setSummary( text ); mJournal->setSummary( text );
} }
@ -90,7 +90,7 @@ class KNotesIconViewItem : public KIconViewItem
}; };
class KNotesIconView : public KIconView class KNotesIconView : public TDEIconView
{ {
protected: protected:
TQDragObject* dragObject() TQDragObject* dragObject()
@ -101,7 +101,7 @@ class KNotesIconView : public KIconView
selectedItems.append( static_cast<KNotesIconViewItem *>( it ) ); selectedItems.append( static_cast<KNotesIconViewItem *>( it ) );
} }
if ( selectedItems.count() != 1 ) if ( selectedItems.count() != 1 )
return KIconView::dragObject(); return TDEIconView::dragObject();
KCal::CalendarLocal cal( KPimPrefs::timezone() ); KCal::CalendarLocal cal( KPimPrefs::timezone() );
KCal::Incidence *i = selectedItems.first()->journal()->clone(); KCal::Incidence *i = selectedItems.first()->journal()->clone();

@ -40,7 +40,7 @@
#include "knotes_part_p.h" #include "knotes_part_p.h"
KNoteTip::KNoteTip( KIconView *parent ) KNoteTip::KNoteTip( TDEIconView *parent )
: TQFrame( 0, 0, WX11BypassWM | // this will make Seli happy >:-P : TQFrame( 0, 0, WX11BypassWM | // this will make Seli happy >:-P
WStyle_Customize | WStyle_NoBorder | WStyle_Tool | WStyle_StaysOnTop ), WStyle_Customize | WStyle_NoBorder | WStyle_Tool | WStyle_StaysOnTop ),
mFilter( false ), mFilter( false ),

@ -35,13 +35,13 @@
#include <tqframe.h> #include <tqframe.h>
class TQTextEdit; class TQTextEdit;
class KIconView; class TDEIconView;
class KNotesIconViewItem; class KNotesIconViewItem;
class KNoteTip : public TQFrame class KNoteTip : public TQFrame
{ {
public: public:
KNoteTip( KIconView *parent ); KNoteTip( TDEIconView *parent );
~KNoteTip(); ~KNoteTip();
void setNote( KNotesIconViewItem *item ); void setNote( KNotesIconViewItem *item );
@ -59,7 +59,7 @@ class KNoteTip : public TQFrame
private: private:
bool mFilter; bool mFilter;
KIconView *mView; TDEIconView *mView;
KNotesIconViewItem *mNoteIVI; KNotesIconViewItem *mNoteIVI;
TQTextEdit *mPreview; TQTextEdit *mPreview;

@ -51,7 +51,7 @@ KNotesSummaryWidget::KNotesSummaryWidget( Kontact::Plugin *plugin,
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_notes", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_notes",
KIcon::Desktop, KIcon::SizeMedium ); TDEIcon::Desktop, TDEIcon::SizeMedium );
TQWidget* header = createHeader( this, icon, i18n( "Notes" ) ); TQWidget* header = createHeader( this, icon, i18n( "Notes" ) );
mainLayout->addWidget( header ); mainLayout->addWidget( header );
@ -80,10 +80,10 @@ void KNotesSummaryWidget::updateView()
label->deleteLater(); label->deleteLater();
mLabels.clear(); mLabels.clear();
KIconLoader loader( "knotes" ); TDEIconLoader loader( "knotes" );
int counter = 0; int counter = 0;
TQPixmap pm = loader.loadIcon( "knotes", KIcon::Small ); TQPixmap pm = loader.loadIcon( "knotes", TDEIcon::Small );
KCal::Journal::List::Iterator it; KCal::Journal::List::Iterator it;
if ( mNotes.count() ) { if ( mNotes.count() ) {

@ -57,7 +57,7 @@ SummaryWidget::SummaryWidget( KOrganizerPlugin *plugin, TQWidget *parent,
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_date", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_date",
KIcon::Desktop, KIcon::SizeMedium ); TDEIcon::Desktop, TDEIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "Calendar" ) ); TQWidget *header = createHeader( this, icon, i18n( "Calendar" ) );
mainLayout->addWidget( header ); mainLayout->addWidget( header );
@ -83,7 +83,7 @@ void SummaryWidget::updateView()
mLabels.clear(); mLabels.clear();
mLabels.setAutoDelete( false ); mLabels.setAutoDelete( false );
KIconLoader loader( "tdepim" ); TDEIconLoader loader( "tdepim" );
TDEConfig config( "kcmkorgsummaryrc" ); TDEConfig config( "kcmkorgsummaryrc" );
@ -92,9 +92,9 @@ void SummaryWidget::updateView()
TQLabel *label = 0; TQLabel *label = 0;
int counter = 0; int counter = 0;
TQPixmap pm = loader.loadIcon( "appointment", KIcon::Small ); TQPixmap pm = loader.loadIcon( "appointment", TDEIcon::Small );
TQPixmap pmb = loader.loadIcon( "calendarbirthday", KIcon::Small ); TQPixmap pmb = loader.loadIcon( "calendarbirthday", TDEIcon::Small );
TQPixmap pma = loader.loadIcon( "calendaranniversary", KIcon::Small ); TQPixmap pma = loader.loadIcon( "calendaranniversary", TDEIcon::Small );
TQDate dt; TQDate dt;
TQDate currentDate = TQDate::currentDate(); TQDate currentDate = TQDate::currentDate();
@ -270,7 +270,7 @@ void SummaryWidget::popupMenu( const TQString &uid )
TDEPopupMenu popup( this ); TDEPopupMenu popup( this );
TQToolTip::remove( this ); TQToolTip::remove( this );
popup.insertItem( i18n( "&Edit Appointment..." ), 0 ); popup.insertItem( i18n( "&Edit Appointment..." ), 0 );
popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "editdelete", KIcon::Small), popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "editdelete", TDEIcon::Small),
i18n( "&Delete Appointment" ), 1 ); i18n( "&Delete Appointment" ), 1 );
switch ( popup.exec( TQCursor::pos() ) ) { switch ( popup.exec( TQCursor::pos() ) ) {

@ -59,7 +59,7 @@ TodoSummaryWidget::TodoSummaryWidget( TodoPlugin *plugin,
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_todo", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_todo",
KIcon::Desktop, KIcon::SizeMedium ); TDEIcon::Desktop, TDEIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "To-do" ) ); TQWidget *header = createHeader( this, icon, i18n( "To-do" ) );
mainLayout->addWidget( header ); mainLayout->addWidget( header );
@ -89,7 +89,7 @@ void TodoSummaryWidget::updateView()
config.setGroup( "Todo" ); config.setGroup( "Todo" );
bool showAllTodos = config.readBoolEntry( "ShowAllTodos", false ); bool showAllTodos = config.readBoolEntry( "ShowAllTodos", false );
KIconLoader loader( "tdepim" ); TDEIconLoader loader( "tdepim" );
TQLabel *label = 0; TQLabel *label = 0;
int counter = 0; int counter = 0;
@ -97,7 +97,7 @@ void TodoSummaryWidget::updateView()
TQDate currentDate = TQDate::currentDate(); TQDate currentDate = TQDate::currentDate();
KCal::Todo::List todos = mCalendar->todos(); KCal::Todo::List todos = mCalendar->todos();
if ( todos.count() > 0 ) { if ( todos.count() > 0 ) {
TQPixmap pm = loader.loadIcon( "todo", KIcon::Small ); TQPixmap pm = loader.loadIcon( "todo", TDEIcon::Small );
KCal::Todo::List::ConstIterator it; KCal::Todo::List::ConstIterator it;
for ( it = todos.begin(); it != todos.end(); ++it ) { for ( it = todos.begin(); it != todos.end(); ++it ) {
KCal::Todo *todo = *it; KCal::Todo *todo = *it;
@ -227,11 +227,11 @@ void TodoSummaryWidget::popupMenu( const TQString &uid )
TDEPopupMenu popup( this ); TDEPopupMenu popup( this );
TQToolTip::remove( this ); TQToolTip::remove( this );
popup.insertItem( i18n( "&Edit To-do..." ), 0 ); popup.insertItem( i18n( "&Edit To-do..." ), 0 );
popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "editdelete", KIcon::Small), popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "editdelete", TDEIcon::Small),
i18n( "&Delete To-do" ), 1 ); i18n( "&Delete To-do" ), 1 );
KCal::Todo *todo = mCalendar->todo( uid ); KCal::Todo *todo = mCalendar->todo( uid );
if ( !todo->isCompleted() ) { if ( !todo->isCompleted() ) {
popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "checkedbox", KIcon::Small), popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "checkedbox", TDEIcon::Small),
i18n( "&Mark To-do Completed" ), 2 ); i18n( "&Mark To-do Completed" ), 2 );
} }

@ -59,7 +59,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name )
mLayout = new TQGridLayout( this, 2, 3, 3, 3 ); mLayout = new TQGridLayout( this, 2, 3, 3, 3 );
int row=0; int row=0;
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kpilot", KIcon::Desktop, KIcon::SizeMedium ); TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kpilot", TDEIcon::Desktop, TDEIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "KPilot Configuration" ) ); TQWidget *header = createHeader( this, icon, i18n( "KPilot Configuration" ) );
mLayout->addMultiCellWidget( header, row,row, 0,3 ); mLayout->addMultiCellWidget( header, row,row, 0,3 );

@ -48,7 +48,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name )
TQVBoxLayout *vlay = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *vlay = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_news", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_news",
KIcon::Desktop, KIcon::SizeMedium ); TDEIcon::Desktop, TDEIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "News Feeds" ) ); TQWidget *header = createHeader( this, icon, i18n( "News Feeds" ) );
vlay->addWidget( header ); vlay->addWidget( header );

@ -85,7 +85,7 @@ SDSummaryWidget::SDSummaryWidget( Kontact::Plugin *plugin, TQWidget *parent,
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "cookie", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "cookie",
KIcon::Desktop, KIcon::SizeMedium ); TDEIcon::Desktop, TDEIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "Special Dates" ) ); TQWidget *header = createHeader( this, icon, i18n( "Special Dates" ) );
mainLayout->addWidget(header); mainLayout->addWidget(header);
@ -219,7 +219,7 @@ void SDSummaryWidget::updateView()
mLabels.clear(); mLabels.clear();
mLabels.setAutoDelete( false ); mLabels.setAutoDelete( false );
KIconLoader loader( "tdepim" ); TDEIconLoader loader( "tdepim" );
KABC::StdAddressBook *ab = KABC::StdAddressBook::self( true ); KABC::StdAddressBook *ab = KABC::StdAddressBook::self( true );
TQValueList<SDEntry> dates; TQValueList<SDEntry> dates;
@ -425,7 +425,7 @@ void SDSummaryWidget::updateView()
label = new TQLabel( this ); label = new TQLabel( this );
if ( icon_img.isNull() ) { if ( icon_img.isNull() ) {
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( icon_name, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( icon_name,
KIcon::Small ) ); TDEIcon::Small ) );
} else { } else {
label->setPixmap( icon_img ); label->setPixmap( icon_img );
} }
@ -575,9 +575,9 @@ void SDSummaryWidget::viewContact( const TQString &uid )
void SDSummaryWidget::popupMenu( const TQString &uid ) void SDSummaryWidget::popupMenu( const TQString &uid )
{ {
TDEPopupMenu popup( this ); TDEPopupMenu popup( this );
popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "kmail", KIcon::Small ), popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "kmail", TDEIcon::Small ),
i18n( "Send &Mail" ), 0 ); i18n( "Send &Mail" ), 0 );
popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Small ), popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "kaddressbook", TDEIcon::Small ),
i18n( "View &Contact" ), 1 ); i18n( "View &Contact" ), 1 );
switch ( popup.exec( TQCursor::pos() ) ) { switch ( popup.exec( TQCursor::pos() ) ) {

@ -55,7 +55,7 @@ class PluginItem : public TQCheckListItem
: TQCheckListItem( parent, TQString(), TQCheckListItem::CheckBox ), : TQCheckListItem( parent, TQString(), TQCheckListItem::CheckBox ),
mInfo( info ) mInfo( info )
{ {
TQPixmap pm = TDEGlobal::iconLoader()->loadIcon( mInfo->icon(), KIcon::Small ); TQPixmap pm = TDEGlobal::iconLoader()->loadIcon( mInfo->icon(), TDEIcon::Small );
setPixmap( 0, pm ); setPixmap( 0, pm );
} }

@ -45,7 +45,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name )
mLayout = new TQVBoxLayout( this, 3, 3 ); mLayout = new TQVBoxLayout( this, 3, 3 );
mLayout->setAlignment( TQt::AlignTop ); mLayout->setAlignment( TQt::AlignTop );
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kweather", KIcon::Desktop, KIcon::SizeMedium ); TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kweather", TDEIcon::Desktop, TDEIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "Weather Service" ) ); TQWidget *header = createHeader( this, icon, i18n( "Weather Service" ) );
mLayout->addWidget( header ); mLayout->addWidget( header );

@ -66,7 +66,7 @@ void AboutDialog::addAboutData( const TQString &title, const TQString &icon,
const TDEAboutData *about ) const TDEAboutData *about )
{ {
TQPixmap pixmap = TDEGlobal::iconLoader()->loadIcon( icon, TQPixmap pixmap = TDEGlobal::iconLoader()->loadIcon( icon,
KIcon::Desktop, 48 ); TDEIcon::Desktop, 48 );
TQFrame *topFrame = addPage( title, TQString(), pixmap ); TQFrame *topFrame = addPage( title, TQString(), pixmap );
@ -161,7 +161,7 @@ void AboutDialog::addLicenseText( const TDEAboutData *about )
return; return;
TQPixmap pixmap = TDEGlobal::iconLoader()->loadIcon( "signature", TQPixmap pixmap = TDEGlobal::iconLoader()->loadIcon( "signature",
KIcon::Desktop, 48 ); TDEIcon::Desktop, 48 );
TQString title = i18n( "%1 License" ).arg( about->programName() ); TQString title = i18n( "%1 License" ).arg( about->programName() );

@ -112,10 +112,10 @@ void EntryItem::reloadPixmap()
int size = (int)navigator()->viewMode(); int size = (int)navigator()->viewMode();
if ( size != 0 ) if ( size != 0 )
mPixmap = TDEGlobal::iconLoader()->loadIcon( mPlugin->icon(), mPixmap = TDEGlobal::iconLoader()->loadIcon( mPlugin->icon(),
KIcon::Desktop, size, TDEIcon::Desktop, size,
mPlugin->disabled() ? mPlugin->disabled() ?
KIcon::DisabledState TDEIcon::DisabledState
: KIcon::DefaultState); : TDEIcon::DefaultState);
else else
mPixmap = TQPixmap(); mPixmap = TQPixmap();
} }

@ -433,13 +433,13 @@ void MainWindow::slotLoadProfile( const TQString& id )
cfg->sync(); cfg->sync();
Prefs::self()->readConfig(); Prefs::self()->readConfig();
applyMainWindowSettings( cfg ); applyMainWindowSettings( cfg );
KIconTheme::reconfigure(); TDEIconTheme::reconfigure();
const WId wid = winId(); const WId wid = winId();
KIPC::sendMessage( KIPC::PaletteChanged, wid ); KIPC::sendMessage( KIPC::PaletteChanged, wid );
KIPC::sendMessage( KIPC::FontChanged, wid ); KIPC::sendMessage( KIPC::FontChanged, wid );
KIPC::sendMessage( KIPC::StyleChanged, wid ); KIPC::sendMessage( KIPC::StyleChanged, wid );
KIPC::sendMessage( KIPC::SettingsChanged, wid ); KIPC::sendMessage( KIPC::SettingsChanged, wid );
for ( int i = 0; i < KIcon::LastGroup; ++i ) for ( int i = 0; i < TDEIcon::LastGroup; ++i )
KIPC::sendMessage( KIPC::IconChanged, wid, i ); KIPC::sendMessage( KIPC::IconChanged, wid, i );
loadSettings(); loadSettings();
@ -1160,12 +1160,12 @@ void MainWindow::slotShowStatusMsg( const TQString &msg )
TQString MainWindow::introductionString() TQString MainWindow::introductionString()
{ {
KIconLoader *iconloader = TDEGlobal::iconLoader(); TDEIconLoader *iconloader = TDEGlobal::iconLoader();
int iconSize = iconloader->currentSize( KIcon::Desktop ); int iconSize = iconloader->currentSize( TDEIcon::Desktop );
TQString handbook_icon_path = iconloader->iconPath( "contents2", KIcon::Desktop ); TQString handbook_icon_path = iconloader->iconPath( "contents2", TDEIcon::Desktop );
TQString html_icon_path = iconloader->iconPath( "html", KIcon::Desktop ); TQString html_icon_path = iconloader->iconPath( "html", TDEIcon::Desktop );
TQString wizard_icon_path = iconloader->iconPath( "wizard", KIcon::Desktop ); TQString wizard_icon_path = iconloader->iconPath( "wizard", TDEIcon::Desktop );
TQString info = i18n( "<h2 style='text-align:center; margin-top: 0px;'>Welcome to Kontact %1</h2>" TQString info = i18n( "<h2 style='text-align:center; margin-top: 0px;'>Welcome to Kontact %1</h2>"
"<p>%1</p>" "<p>%1</p>"

@ -70,11 +70,11 @@
#include <cassert> #include <cassert>
#include <cstdlib> #include <cstdlib>
class AttachmentListItem : public KIconViewItem class AttachmentListItem : public TDEIconViewItem
{ {
public: public:
AttachmentListItem( KCal::Attachment*att, TQIconView *parent ) : AttachmentListItem( KCal::Attachment*att, TQIconView *parent ) :
KIconViewItem( parent ) TDEIconViewItem( parent )
{ {
if ( att ) { if ( att ) {
mAttachment = new KCal::Attachment( *att ); mAttachment = new KCal::Attachment( *att );
@ -132,7 +132,7 @@ class AttachmentListItem : public KIconViewItem
static TQPixmap icon( KMimeType::Ptr mimeType, const TQString &uri ) static TQPixmap icon( KMimeType::Ptr mimeType, const TQString &uri )
{ {
TQString iconStr = mimeType->icon( uri, false ); TQString iconStr = mimeType->icon( uri, false );
return TDEGlobal::iconLoader()->loadIcon( iconStr, KIcon::Small ); return TDEGlobal::iconLoader()->loadIcon( iconStr, TDEIcon::Small );
} }
void readAttachment() void readAttachment()
{ {
@ -314,11 +314,11 @@ void AttachmentEditDialog::urlSelected( const TQString &url )
} }
AttachmentIconView::AttachmentIconView( KOEditorAttachments* parent ) AttachmentIconView::AttachmentIconView( KOEditorAttachments* parent )
: KIconView( parent ), : TDEIconView( parent ),
mParent( parent ) mParent( parent )
{ {
setSelectionMode( TQIconView::Extended ); setSelectionMode( TQIconView::Extended );
setMode( KIconView::Select ); setMode( TDEIconView::Select );
setItemTextPos( TQIconView::Right ); setItemTextPos( TQIconView::Right );
setArrangement( TQIconView::LeftToRight ); setArrangement( TQIconView::LeftToRight );
setMaxItemWidth( TQMAX(maxItemWidth(), 250) ); setMaxItemWidth( TQMAX(maxItemWidth(), 250) );

@ -149,7 +149,7 @@ class KOEditorAttachments : public TQWidget
}; };
class AttachmentIconView : public KIconView class AttachmentIconView : public TDEIconView
{ {
Q_OBJECT Q_OBJECT

@ -88,9 +88,9 @@ int KOWhatsNextView::currentDateCount()
void KOWhatsNextView::updateView() void KOWhatsNextView::updateView()
{ {
KIconLoader kil("tdepim"); TDEIconLoader kil("tdepim");
TQString *ipath = new TQString(); TQString *ipath = new TQString();
kil.loadIcon("tdepim",KIcon::NoGroup,32,KIcon::DefaultState,ipath); kil.loadIcon("tdepim",TDEIcon::NoGroup,32,TDEIcon::DefaultState,ipath);
mText = "<table width=\"100%\">\n"; mText = "<table width=\"100%\">\n";
mText += "<tr bgcolor=\"#3679AD\"><td><h1>"; mText += "<tr bgcolor=\"#3679AD\"><td><h1>";
@ -117,7 +117,7 @@ void KOWhatsNextView::updateView()
if (events.count() > 0) { if (events.count() > 0) {
mText += "<p></p>"; mText += "<p></p>";
kil.loadIcon("appointment",KIcon::NoGroup,22,KIcon::DefaultState,ipath); kil.loadIcon("appointment",TDEIcon::NoGroup,22,TDEIcon::DefaultState,ipath);
mText += "<h2><img src=\""; mText += "<h2><img src=\"";
mText += *ipath; mText += *ipath;
mText += "\">"; mText += "\">";
@ -153,7 +153,7 @@ void KOWhatsNextView::updateView()
mTodos.clear(); mTodos.clear();
Todo::List todos = calendar()->todos( TodoSortDueDate, SortDirectionAscending ); Todo::List todos = calendar()->todos( TodoSortDueDate, SortDirectionAscending );
if ( todos.count() > 0 ) { if ( todos.count() > 0 ) {
kil.loadIcon("todo",KIcon::NoGroup,22,KIcon::DefaultState,ipath); kil.loadIcon("todo",TDEIcon::NoGroup,22,TDEIcon::DefaultState,ipath);
mText += "<h2><img src=\""; mText += "<h2><img src=\"";
mText += *ipath; mText += *ipath;
mText += "\">"; mText += "\">";
@ -192,7 +192,7 @@ void KOWhatsNextView::updateView()
if (me->status()==Attendee::NeedsAction && me->RSVP()) { if (me->status()==Attendee::NeedsAction && me->RSVP()) {
if (replies == 0) { if (replies == 0) {
mText += "<p></p>"; mText += "<p></p>";
kil.loadIcon("reply",KIcon::NoGroup,22,KIcon::DefaultState,ipath); kil.loadIcon("reply",TDEIcon::NoGroup,22,TDEIcon::DefaultState,ipath);
mText += "<h2><img src=\""; mText += "<h2><img src=\"";
mText += *ipath; mText += *ipath;
mText += "\">"; mText += "\">";
@ -213,7 +213,7 @@ void KOWhatsNextView::updateView()
if (me->status()==Attendee::NeedsAction && me->RSVP()) { if (me->status()==Attendee::NeedsAction && me->RSVP()) {
if (replies == 0) { if (replies == 0) {
mText += "<p></p>"; mText += "<p></p>";
kil.loadIcon("reply",KIcon::NoGroup,22,KIcon::DefaultState,ipath); kil.loadIcon("reply",TDEIcon::NoGroup,22,TDEIcon::DefaultState,ipath);
mText += "<h2><img src=\""; mText += "<h2><img src=\"";
mText += *ipath; mText += *ipath;
mText += "\">"; mText += "\">";

@ -117,7 +117,7 @@ bool UriHandler::process( TQWidget *parent, const TQString &uri )
// KaddressBook is not already running. // KaddressBook is not already running.
// Pass it the UID of the contact via the command line while starting it - its neater. // Pass it the UID of the contact via the command line while starting it - its neater.
// We start it without its main interface // We start it without its main interface
TQString iconPath = TDEGlobal::iconLoader()->iconPath( "go", KIcon::Small ); TQString iconPath = TDEGlobal::iconLoader()->iconPath( "go", TDEIcon::Small );
TQString tmpStr = "kaddressbook --editor-only --uid "; TQString tmpStr = "kaddressbook --editor-only --uid ";
tmpStr += TDEProcess::quote( uid ); tmpStr += TDEProcess::quote( uid );
KRun::runCommand( tmpStr, "KAddressBook", iconPath ); KRun::runCommand( tmpStr, "KAddressBook", iconPath );

@ -281,7 +281,7 @@ void BoxContainerItem::drawLabel( TQLabel *label, const int count, const bool ne
} }
if( hasIcon ) if( hasIcon )
pixmap = TDEGlobal::iconLoader()->loadIcon( *_icons[ index ], KIcon::Desktop, KIcon::SizeSmallMedium ); pixmap = TDEGlobal::iconLoader()->loadIcon( *_icons[ index ], TDEIcon::Desktop, TDEIcon::SizeSmallMedium );
if( hasIcon && hasFg ) if( hasIcon && hasFg )
{ {
@ -363,7 +363,7 @@ TQPixmap BoxContainerItem::calcComplexPixmap( const TQPixmap &icon, const TQColo
} }
//Merge icon and number and convert to result. //Merge icon and number and convert to result.
KIconEffect::overlay( iconImage, numberImage ); TDEIconEffect::overlay( iconImage, numberImage );
result.convertFromImage( iconImage ); result.convertFromImage( iconImage );
return result; return result;

@ -181,7 +181,7 @@
<string></string> <string></string>
</property> </property>
</widget> </widget>
<widget class="KIconButton"> <widget class="TDEIconButton">
<property name="name"> <property name="name">
<cstring>ibNewIcon</cstring> <cstring>ibNewIcon</cstring>
</property> </property>
@ -265,7 +265,7 @@
<string></string> <string></string>
</property> </property>
</widget> </widget>
<widget class="KIconButton"> <widget class="TDEIconButton">
<property name="name"> <property name="name">
<cstring>ibNormalIcon</cstring> <cstring>ibNormalIcon</cstring>
</property> </property>

@ -57,7 +57,7 @@ void AttachPropertyDialog::setAttachment(KTNEFAttach *attach)
if ( !pix.isNull() ) if ( !pix.isNull() )
icon_->setPixmap( pix ); icon_->setPixmap( pix );
else else
icon_->setPixmap(mimetype->pixmap(KIcon::Small)); icon_->setPixmap(mimetype->pixmap(TDEIcon::Small));
description_->setText(mimetype->comment()); description_->setText(mimetype->comment());
s.setNum(attach->index()); s.setNum(attach->index());
index_->setText(s); index_->setText(s);

@ -53,7 +53,7 @@ Attachment::Attachment(TQListView *parent, KTNEFAttach *attach)
if ( !pix.isNull() ) if ( !pix.isNull() )
setPixmap( 0, pix ); setPixmap( 0, pix );
else else
setPixmap(0, mimeType->pixmap(KIcon::Small)); setPixmap(0, mimeType->pixmap(TDEIcon::Small));
setDragEnabled( true ); setDragEnabled( true );
} }

@ -221,7 +221,7 @@ static TQString displayViewLinkPerson( const TQString& email, TQString name, TQS
mailto.setProtocol( "mailto" ); mailto.setProtocol( "mailto" );
mailto.setPath( email ); mailto.setPath( email );
const TQString iconPath = const TQString iconPath =
TDEGlobal::iconLoader()->iconPath( "mail_new", KIcon::Small ); TDEGlobal::iconLoader()->iconPath( "mail_new", TDEIcon::Small );
tmpString += "&nbsp;" + tmpString += "&nbsp;" +
htmlAddLink( mailto.url(), htmlAddLink( mailto.url(),
"<img valign=\"top\" src=\"" + iconPath + "\">" ); "<img valign=\"top\" src=\"" + iconPath + "\">" );
@ -401,38 +401,38 @@ static TQString displayViewFormatHeader( Incidence *incidence )
if ( incidence->customProperty( "KABC", "BIRTHDAY" ) == "YES" ) { if ( incidence->customProperty( "KABC", "BIRTHDAY" ) == "YES" ) {
if ( incidence->customProperty( "KABC", "ANNIVERSARY" ) == "YES" ) { if ( incidence->customProperty( "KABC", "ANNIVERSARY" ) == "YES" ) {
iconPath = iconPath =
TDEGlobal::iconLoader()->iconPath( "calendaranniversary", KIcon::Small ); TDEGlobal::iconLoader()->iconPath( "calendaranniversary", TDEIcon::Small );
} else { } else {
iconPath = TDEGlobal::iconLoader()->iconPath( "calendarbirthday", KIcon::Small ); iconPath = TDEGlobal::iconLoader()->iconPath( "calendarbirthday", TDEIcon::Small );
} }
} else { } else {
iconPath = TDEGlobal::iconLoader()->iconPath( "appointment", KIcon::Small ); iconPath = TDEGlobal::iconLoader()->iconPath( "appointment", TDEIcon::Small );
} }
tmpStr += "<img valign=\"top\" src=\"" + iconPath + "\">"; tmpStr += "<img valign=\"top\" src=\"" + iconPath + "\">";
} }
if ( incidence->type() == "Todo" ) { if ( incidence->type() == "Todo" ) {
tmpStr += "<img valign=\"top\" src=\"" + tmpStr += "<img valign=\"top\" src=\"" +
TDEGlobal::iconLoader()->iconPath( "todo", KIcon::Small ) + TDEGlobal::iconLoader()->iconPath( "todo", TDEIcon::Small ) +
"\">"; "\">";
} }
if ( incidence->type() == "Journal" ) { if ( incidence->type() == "Journal" ) {
tmpStr += "<img valign=\"top\" src=\"" + tmpStr += "<img valign=\"top\" src=\"" +
TDEGlobal::iconLoader()->iconPath( "journal", KIcon::Small ) + TDEGlobal::iconLoader()->iconPath( "journal", TDEIcon::Small ) +
"\">"; "\">";
} }
if ( incidence->isAlarmEnabled() ) { if ( incidence->isAlarmEnabled() ) {
tmpStr += "<img valign=\"top\" src=\"" + tmpStr += "<img valign=\"top\" src=\"" +
TDEGlobal::iconLoader()->iconPath( "bell", KIcon::Small ) + TDEGlobal::iconLoader()->iconPath( "bell", TDEIcon::Small ) +
"\">"; "\">";
} }
if ( incidence->doesRecur() ) { if ( incidence->doesRecur() ) {
tmpStr += "<img valign=\"top\" src=\"" + tmpStr += "<img valign=\"top\" src=\"" +
TDEGlobal::iconLoader()->iconPath( "recur", KIcon::Small ) + TDEGlobal::iconLoader()->iconPath( "recur", TDEIcon::Small ) +
"\">"; "\">";
} }
if ( incidence->isReadOnly() ) { if ( incidence->isReadOnly() ) {
tmpStr += "<img valign=\"top\" src=\"" + tmpStr += "<img valign=\"top\" src=\"" +
TDEGlobal::iconLoader()->iconPath( "readonlyevent", KIcon::Small ) + TDEGlobal::iconLoader()->iconPath( "readonlyevent", TDEIcon::Small ) +
"\">"; "\">";
} }
@ -1174,7 +1174,7 @@ static TQString invitationPerson( const TQString& email, TQString name, TQString
mailto.setProtocol( "mailto" ); mailto.setProtocol( "mailto" );
mailto.setPath( person.fullName() ); mailto.setPath( person.fullName() );
const TQString iconPath = const TQString iconPath =
TDEGlobal::iconLoader()->iconPath( "mail_new", KIcon::Small ); TDEGlobal::iconLoader()->iconPath( "mail_new", TDEIcon::Small );
tmpString += "&nbsp;" + tmpString += "&nbsp;" +
htmlAddLink( mailto.url(), "<img src=\"" + iconPath + "\">" ) htmlAddLink( mailto.url(), "<img src=\"" + iconPath + "\">" )
; ;
@ -2005,7 +2005,7 @@ static TQString invitationAttachments( InvitationFormatterHelper *helper, Incide
// Attachment icon // Attachment icon
KMimeType::Ptr mimeType = KMimeType::mimeType( a->mimeType() ); KMimeType::Ptr mimeType = KMimeType::mimeType( a->mimeType() );
const TQString iconStr = mimeType ? mimeType->icon( a->uri(), false ) : TQString( "application-octet-stream" ); const TQString iconStr = mimeType ? mimeType->icon( a->uri(), false ) : TQString( "application-octet-stream" );
const TQString iconPath = TDEGlobal::iconLoader()->iconPath( iconStr, KIcon::Small ); const TQString iconPath = TDEGlobal::iconLoader()->iconPath( iconStr, TDEIcon::Small );
if ( !iconPath.isEmpty() ) { if ( !iconPath.isEmpty() ) {
tmpStr += "<img valign=\"top\" src=\"" + iconPath + "\">"; tmpStr += "<img valign=\"top\" src=\"" + iconPath + "\">";
} }

@ -133,7 +133,7 @@ TQPixmap AddresseeEmailSelection::itemIcon( const KABC::Addressee &addressee, ui
if ( !addressee.photo().data().isNull() ) if ( !addressee.photo().data().isNull() )
return addressee.photo().data().smoothScale( 16, 16 ); return addressee.photo().data().smoothScale( 16, 16 );
else else
return TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Small ); return TDEGlobal::iconLoader()->loadIcon( "personal", TDEIcon::Small );
} }
bool AddresseeEmailSelection::itemEnabled( const KABC::Addressee &addressee, uint ) const bool AddresseeEmailSelection::itemEnabled( const KABC::Addressee &addressee, uint ) const
@ -160,7 +160,7 @@ TQString AddresseeEmailSelection::distributionListText( const KABC::Distribution
TQPixmap AddresseeEmailSelection::distributionListIcon( const KABC::DistributionList* ) const TQPixmap AddresseeEmailSelection::distributionListIcon( const KABC::DistributionList* ) const
{ {
return TDEGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small ); return TDEGlobal::iconLoader()->loadIcon( "tdmconfig", TDEIcon::Small );
} }
bool AddresseeEmailSelection::distributionListEnabled( const KABC::DistributionList* ) const bool AddresseeEmailSelection::distributionListEnabled( const KABC::DistributionList* ) const

@ -288,8 +288,8 @@ void AddresseeSelector::initGUI()
int row = 1; int row = 1;
TQIconSet moveSet = TDEGlobal::iconLoader()->loadIconSet( "next", KIcon::Small ); TQIconSet moveSet = TDEGlobal::iconLoader()->loadIconSet( "next", TDEIcon::Small );
TQIconSet removeSet = TDEGlobal::iconLoader()->loadIconSet( "previous", KIcon::Small ); TQIconSet removeSet = TDEGlobal::iconLoader()->loadIconSet( "previous", TDEIcon::Small );
uint count = mSelection->fieldCount(); uint count = mSelection->fieldCount();
for ( uint i = 0; i < count; ++i, ++row ) { for ( uint i = 0; i < count; ++i, ++row ) {

@ -207,7 +207,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
} else if ( !pic.url().isEmpty() ) { } else if ( !pic.url().isEmpty() ) {
image = (pic.url().startsWith( "http://" ) || pic.url().startsWith( "https://" ) ? pic.url() : "http://" + pic.url()); image = (pic.url().startsWith( "http://" ) || pic.url().startsWith( "https://" ) ? pic.url() : "http://" + pic.url());
} else { } else {
image = "file:" + TDEGlobal::iconLoader()->iconPath( "personal", KIcon::Desktop ); image = "file:" + TDEGlobal::iconLoader()->iconPath( "personal", TDEIcon::Desktop );
} }
} }
@ -554,7 +554,7 @@ void AddresseeView::updateView()
} }
} else { } else {
TQMimeSourceFactory::defaultFactory()->setPixmap( imageURL, TQMimeSourceFactory::defaultFactory()->setPixmap( imageURL,
TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 128 ) ); TDEGlobal::iconLoader()->loadIcon( "personal", TDEIcon::Desktop, 128 ) );
} }
} }

@ -105,11 +105,11 @@ AddresseeViewItem::AddresseeViewItem( AddresseeViewItem *parent, const KABC::Add
if ( addr.photo().url().isEmpty() ) { if ( addr.photo().url().isEmpty() ) {
if ( addr.photo().data().isNull() ) if ( addr.photo().data().isNull() )
setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Small ) ); setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "personal", TDEIcon::Small ) );
else else
setPixmap( 0, addr.photo().data().smoothScale( 16, 16 ) ); setPixmap( 0, addr.photo().data().smoothScale( 16, 16 ) );
} else { } else {
setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( addr.photo().url(), KIcon::Small ) ); setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( addr.photo().url(), TDEIcon::Small ) );
} }
} }
@ -135,7 +135,7 @@ AddresseeViewItem::AddresseeViewItem( AddresseeViewItem *parent, const TQString
d = new AddresseeViewItemPrivate; d = new AddresseeViewItemPrivate;
d->category = DistList; d->category = DistList;
setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small ) ); setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "tdmconfig", TDEIcon::Small ) );
} }
AddresseeViewItem::~AddresseeViewItem() AddresseeViewItem::~AddresseeViewItem()

@ -223,12 +223,12 @@ CompletionOrderEditor::CompletionOrderEditor( KPIM::LdapSearch* ldapSearch,
TQVBox* upDownBox = new TQVBox( page ); TQVBox* upDownBox = new TQVBox( page );
mUpButton = new KPushButton( upDownBox, "mUpButton" ); mUpButton = new KPushButton( upDownBox, "mUpButton" );
mUpButton->setIconSet( BarIconSet( "up", KIcon::SizeSmall ) ); mUpButton->setIconSet( BarIconSet( "up", TDEIcon::SizeSmall ) );
mUpButton->setEnabled( false ); // b/c no item is selected yet mUpButton->setEnabled( false ); // b/c no item is selected yet
mUpButton->setFocusPolicy( TQ_StrongFocus ); mUpButton->setFocusPolicy( TQ_StrongFocus );
mDownButton = new KPushButton( upDownBox, "mDownButton" ); mDownButton = new KPushButton( upDownBox, "mDownButton" );
mDownButton->setIconSet( BarIconSet( "down", KIcon::SizeSmall ) ); mDownButton->setIconSet( BarIconSet( "down", TDEIcon::SizeSmall ) );
mDownButton->setEnabled( false ); // b/c no item is selected yet mDownButton->setEnabled( false ); // b/c no item is selected yet
mDownButton->setFocusPolicy( TQ_StrongFocus ); mDownButton->setFocusPolicy( TQ_StrongFocus );

@ -613,12 +613,12 @@ RuleListWidget::RuleListWidget(KScoringManager *m, bool standalone, TQWidget *p,
TQHBoxLayout *btnL = new TQHBoxLayout( topL, KDialog::spacingHint() ); TQHBoxLayout *btnL = new TQHBoxLayout( topL, KDialog::spacingHint() );
mRuleUp = new TQPushButton( this ); mRuleUp = new TQPushButton( this );
mRuleUp->setPixmap( BarIcon( "up", KIcon::SizeSmall ) ); mRuleUp->setPixmap( BarIcon( "up", TDEIcon::SizeSmall ) );
TQToolTip::add( mRuleUp, i18n("Move rule up") ); TQToolTip::add( mRuleUp, i18n("Move rule up") );
btnL->addWidget( mRuleUp ); btnL->addWidget( mRuleUp );
connect( mRuleUp, TQT_SIGNAL( clicked() ), TQT_SLOT( slotRuleUp() ) ); connect( mRuleUp, TQT_SIGNAL( clicked() ), TQT_SLOT( slotRuleUp() ) );
mRuleDown = new TQPushButton( this ); mRuleDown = new TQPushButton( this );
mRuleDown->setPixmap( BarIcon( "down", KIcon::SizeSmall ) ); mRuleDown->setPixmap( BarIcon( "down", TDEIcon::SizeSmall ) );
TQToolTip::add( mRuleDown, i18n("Move rule down") ); TQToolTip::add( mRuleDown, i18n("Move rule down") );
btnL->addWidget( mRuleDown ); btnL->addWidget( mRuleDown );
connect( mRuleDown, TQT_SIGNAL( clicked() ), TQT_SLOT( slotRuleDown() ) ); connect( mRuleDown, TQT_SIGNAL( clicked() ), TQT_SLOT( slotRuleDown() ) );
@ -626,25 +626,25 @@ RuleListWidget::RuleListWidget(KScoringManager *m, bool standalone, TQWidget *p,
btnL = new TQHBoxLayout( topL, KDialog::spacingHint() ); btnL = new TQHBoxLayout( topL, KDialog::spacingHint() );
editRule=0L; editRule=0L;
newRule = new TQPushButton(this); newRule = new TQPushButton(this);
newRule->setPixmap( BarIcon( "filenew", KIcon::SizeSmall ) ); newRule->setPixmap( BarIcon( "filenew", TDEIcon::SizeSmall ) );
TQToolTip::add(newRule,i18n("New rule")), TQToolTip::add(newRule,i18n("New rule")),
btnL->addWidget(newRule); btnL->addWidget(newRule);
connect(newRule, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewRule())); connect(newRule, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewRule()));
// if we're standalone, we need an additional edit button // if we're standalone, we need an additional edit button
if (standalone) { if (standalone) {
editRule = new TQPushButton(this); editRule = new TQPushButton(this);
editRule->setIconSet( BarIconSet("edit", KIcon::SizeSmall) ); editRule->setIconSet( BarIconSet("edit", TDEIcon::SizeSmall) );
TQToolTip::add(editRule,i18n("Edit rule")); TQToolTip::add(editRule,i18n("Edit rule"));
btnL->addWidget(editRule); btnL->addWidget(editRule);
connect(editRule,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotEditRule())); connect(editRule,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotEditRule()));
} }
delRule = new TQPushButton(this); delRule = new TQPushButton(this);
delRule->setIconSet( BarIconSet( "editdelete", KIcon::SizeSmall ) ); delRule->setIconSet( BarIconSet( "editdelete", TDEIcon::SizeSmall ) );
TQToolTip::add(delRule,i18n("Remove rule")); TQToolTip::add(delRule,i18n("Remove rule"));
btnL->addWidget(delRule); btnL->addWidget(delRule);
connect(delRule, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDelRule())); connect(delRule, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDelRule()));
copyRule = new TQPushButton(this); copyRule = new TQPushButton(this);
copyRule->setIconSet(BarIconSet("editcopy", KIcon::SizeSmall)); copyRule->setIconSet(BarIconSet("editcopy", TDEIcon::SizeSmall));
TQToolTip::add(copyRule,i18n("Copy rule")); TQToolTip::add(copyRule,i18n("Copy rule"));
btnL->addWidget(copyRule); btnL->addWidget(copyRule);
connect(copyRule, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCopyRule())); connect(copyRule, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCopyRule()));

@ -224,7 +224,7 @@ KSubscription::KSubscription( TQWidget *parent, const TQString &caption,
TQToolButton *clearButton = new TQToolButton( page ); TQToolButton *clearButton = new TQToolButton( page );
clearButton->setIconSet( TDEGlobal::iconLoader()->loadIconSet( clearButton->setIconSet( TDEGlobal::iconLoader()->loadIconSet(
TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", TDEIcon::Small, 0 ) );
filterEdit = new KLineEdit(page); filterEdit = new KLineEdit(page);
TQLabel *l = new TQLabel(filterEdit,i18n("S&earch:"), page); TQLabel *l = new TQLabel(filterEdit,i18n("S&earch:"), page);
connect( clearButton, TQT_SIGNAL( clicked() ), filterEdit, TQT_SLOT( clear() ) ); connect( clearButton, TQT_SIGNAL( clicked() ), filterEdit, TQT_SLOT( clear() ) );

@ -260,7 +260,7 @@ ProgressDialog::ProgressDialog( TQWidget* alignWidget, TQWidget* parent, const c
pbClose->setAutoRaise(true); pbClose->setAutoRaise(true);
pbClose->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); pbClose->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
pbClose->setFixedSize( 16, 16 ); pbClose->setFixedSize( 16, 16 );
pbClose->setIconSet( TDEGlobal::iconLoader()->loadIconSet( "fileclose", KIcon::Small, 14 ) ); pbClose->setIconSet( TDEGlobal::iconLoader()->loadIconSet( "fileclose", TDEIcon::Small, 14 ) );
TQToolTip::add( pbClose, i18n( "Hide detailed progress window" ) ); TQToolTip::add( pbClose, i18n( "Hide detailed progress window" ) );
connect(pbClose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose())); connect(pbClose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose()));
TQWidget* spacer = new TQWidget( rightBox ); // don't let the close button take up all the height TQWidget* spacer = new TQWidget( rightBox ); // don't let the close button take up all the height

@ -701,9 +701,9 @@ mimeHeader::iconName ()
fileName = fileName =
KMimeType::mimeType (contentType.lower ())->icon (TQString(), false); KMimeType::mimeType (contentType.lower ())->icon (TQString(), false);
fileName = fileName =
TDEGlobal::instance ()->iconLoader ()->iconPath (fileName, KIcon::Desktop); TDEGlobal::instance ()->iconLoader ()->iconPath (fileName, TDEIcon::Desktop);
// if (fileName.isEmpty()) // if (fileName.isEmpty())
// fileName = TDEGlobal::instance()->iconLoader()->iconPath( "unknown", KIcon::Desktop ); // fileName = TDEGlobal::instance()->iconLoader()->iconPath( "unknown", TDEIcon::Desktop );
return fileName; return fileName;
} }

@ -37,19 +37,19 @@ MainWindow::MainWindow()
{ {
KJanusWidget *wdg = new KJanusWidget( this, "", KJanusWidget::IconList ); KJanusWidget *wdg = new KJanusWidget( this, "", KJanusWidget::IconList );
TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "folder_yellow", KIcon::Desktop ); TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "folder_yellow", TDEIcon::Desktop );
TQVBox *page = wdg->addVBoxPage( i18n( "Other Accounts" ), i18n( "Register other accounts" ), icon ); TQVBox *page = wdg->addVBoxPage( i18n( "Other Accounts" ), i18n( "Register other accounts" ), icon );
new OtherUserPage( page ); new OtherUserPage( page );
icon = TDEGlobal::iconLoader()->loadIcon( "edu_languages", KIcon::Desktop ); icon = TDEGlobal::iconLoader()->loadIcon( "edu_languages", TDEIcon::Desktop );
page = wdg->addVBoxPage( i18n( "Delegates" ), i18n( "Setup delegates for my account" ), icon ); page = wdg->addVBoxPage( i18n( "Delegates" ), i18n( "Setup delegates for my account" ), icon );
new DelegatePage( page ); new DelegatePage( page );
icon = TDEGlobal::iconLoader()->loadIcon( "kontact_summary_green", KIcon::Desktop ); icon = TDEGlobal::iconLoader()->loadIcon( "kontact_summary_green", TDEIcon::Desktop );
page = wdg->addVBoxPage( i18n( "Out of Office..." ), i18n( "Setup Out of Office Message" ), icon ); page = wdg->addVBoxPage( i18n( "Out of Office..." ), i18n( "Setup Out of Office Message" ), icon );
new OutOfOfficePage( page ); new OutOfOfficePage( page );
icon = TDEGlobal::iconLoader()->loadIcon( "password", KIcon::Desktop ); icon = TDEGlobal::iconLoader()->loadIcon( "password", TDEIcon::Desktop );
page = wdg->addVBoxPage( i18n( "Password" ), i18n( "Change the password" ), icon ); page = wdg->addVBoxPage( i18n( "Password" ), i18n( "Change the password" ), icon );
new PasswordPage( page ); new PasswordPage( page );

@ -51,7 +51,7 @@ OverViewPage::OverViewPage( TQWidget *parent, const char *name )
layout->addMultiCellWidget( label, 0, 0, 0, 2 ); layout->addMultiCellWidget( label, 0, 0, 0, 2 );
label = new TQLabel( this ); label = new TQLabel( this );
label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "network", KIcon::Desktop ) ); label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "network", TDEIcon::Desktop ) );
layout->addWidget( label, 0, 3 ); layout->addWidget( label, 0, 3 );
label = new TQLabel( "", this ); label = new TQLabel( "", this );

Loading…
Cancel
Save