Logo Search packages:      
Sourcecode: d3lphin version File versions  Download package

void Dolphin::slotSortingChanged ( DolphinView::Sorting  sorting  )  [slot]

Updates the state of the 'Sort by' actions.

Definition at line 247 of file dolphin.cpp.

{
    KAction* action = 0;
    switch (sorting) {
        case DolphinView::SortByName:
            action = actionCollection()->action("by_name");
            break;
        case DolphinView::SortBySize:
            action = actionCollection()->action("by_size");
            break;
        case DolphinView::SortByDate:
            action = actionCollection()->action("by_date");
            break;
        default:
            break;
    }

    if (action != 0) {
        KToggleAction* toggleAction = static_cast<KToggleAction*>(action);
        toggleAction->setChecked(true);
    }
}


Generated by  Doxygen 1.6.0   Back to index