MCPcopy Create free account
hub / github.com/deskflow/deskflow / initViewItemOption

Method initViewItemOption

src/lib/gui/widgets/ScreenSetupView.cpp:148–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void ScreenSetupView::initViewItemOption(QStyleOptionViewItem *option) const
149{
150 // HACK make a basic widget and init from it
151 auto w = new QWidget();
152 option->initFrom(w);
153 w->deleteLater();
154 delete w;
155
156 option->decorationSize = QSize(96, 96);
157 option->showDecorationSelected = true;
158 option->decorationPosition = QStyleOptionViewItem::Top;
159 option->decorationAlignment = Qt::AlignHCenter | Qt::AlignVCenter;
160 option->displayAlignment = Qt::AlignTop | Qt::AlignHCenter;
161 option->textElideMode = Qt::ElideMiddle;
162}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected