ViewportModeListModel

The viewport modes as a list model, in the order that Z cycles them (viewport-shading-modes §VSMU-3).

In the namespace construct::ui. Declared in src/libs/libconstruct/construct/ui/ViewportModeListModel.hpp.

Detailed description

The view moves a row by drag (QAbstractItemView::InternalMove), which reaches moveRows(), and the "Move up" and "Move down" buttons call moveRows() too. The model holds the ids alone and asks the source for a row's name and icon only when the row is shown, so it stays responsive with any count.

In this section