~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy

« back to all changes in this revision

Viewing changes to kicker/libkicker/panelbutton.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-11 14:04:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071011140448-v0eb7lxbb24zagca
Tags: 3.94.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
       arrowDirection(Plasma::Up),
77
77
       popupDirection(Plasma::Up),
78
78
       orientation(Qt::Horizontal),
79
 
       size((K3Icon::StdSizes)-1),
 
79
       size((KIconLoader::StdSizes)-1),
80
80
       fontPercent(0.40)
81
81
    {}
82
82
 
180
180
 
181
181
void PanelButton::updateIcon(int group)
182
182
{
183
 
    if (group != K3Icon::Panel)
 
183
    if (group != KIconLoader::Panel)
184
184
    {
185
185
        return;
186
186
    }
688
688
        return -1; // unknown icon size
689
689
    }
690
690
 
691
 
    QList<int> sizes = ith->querySizes(K3Icon::Panel);
 
691
    QList<int> sizes = ith->querySizes(KIconLoader::Panel);
692
692
 
693
 
    int sz = ith->defaultSize(K3Icon::Panel);
 
693
    int sz = ith->defaultSize(KIconLoader::Panel);
694
694
 
695
695
    if (proposed_size < 0)
696
696
    {
759
759
{
760
760
    KIconLoader * ldr = KIconLoader::global();
761
761
    QString nm = d->iconName;
762
 
    K3Icon::States defaultState = isEnabled() ? K3Icon::DefaultState :
763
 
                                               K3Icon::DisabledState;
764
 
    d->icon = ldr->loadIcon(nm, K3Icon::Panel, d->size, defaultState, QStringList(), 0L, true);
 
762
    KIconLoader::States defaultState = isEnabled() ? KIconLoader::DefaultState :
 
763
                                               KIconLoader::DisabledState;
 
764
    d->icon = ldr->loadIcon(nm, KIconLoader::Panel, d->size, defaultState, QStringList(), 0L, true);
765
765
 
766
766
    if (d->icon.isNull())
767
767
    {
768
768
        nm = defaultIcon();
769
 
        d->icon = ldr->loadIcon(nm, K3Icon::Panel, d->size, defaultState);
 
769
        d->icon = ldr->loadIcon(nm, KIconLoader::Panel, d->size, defaultState);
770
770
    }
771
771
 
772
772
    if (!isEnabled())
775
775
    }
776
776
    else
777
777
    {
778
 
        d->iconh = ldr->loadIcon(nm, K3Icon::Panel, d->size,
779
 
                                K3Icon::ActiveState, QStringList(), 0L, true);
 
778
        d->iconh = ldr->loadIcon(nm, KIconLoader::Panel, d->size,
 
779
                                KIconLoader::ActiveState, QStringList(), 0L, true);
780
780
    }
781
781
 
782
 
    d->iconz = ldr->loadIcon(nm, K3Icon::Panel, K3Icon::SizeHuge,
 
782
    d->iconz = ldr->loadIcon(nm, KIconLoader::Panel, KIconLoader::SizeHuge,
783
783
                            defaultState, QStringList(), 0L, true );
784
784
}
785
785