View | Details | Raw Unified | Return to bug 147941
Collapse All | Expand All

(-)kicker/kicker/core/containerarealayout.cpp.sav (+19 lines)
Lines 635-640 void ContainerAreaLayout::moveContainerS Link Here
635
    geom.moveLeft(distance);
635
    geom.moveLeft(distance);
636
    moving->setGeometryR(geom);
636
    moving->setGeometryR(geom);
637
637
638
    // HACK - since the menuapplet is not movable by the user, make sure it's always left-aligned
639
    ItemList::const_iterator prev = m_items.constEnd();
640
    for( ItemList::const_iterator it = m_items.constBegin();
641
         it != m_items.constEnd();
642
         ( prev = it ), ++it )
643
    {
644
        if( BaseContainer* container = dynamic_cast<BaseContainer*>((*it)->item->widget()))
645
            if(AppletContainer* applet = dynamic_cast<AppletContainer*>(container))
646
                if( applet->info().desktopFile() == "menuapplet.desktop" )
647
                {
648
                    QRect geom = (*it)->geometryR();
649
                    if( prev != m_items.constEnd())
650
                        geom.moveLeft( (*prev)->rightR() + 1 );
651
                    else
652
                        geom.moveLeft( 0 );
653
                    (*it)->setGeometryR( geom );
654
                }
655
    }
656
638
    updateFreeSpaceValues();
657
    updateFreeSpaceValues();
639
}
658
}
640
659

Return to bug 147941