| 146 | } |
| 147 | |
| 148 | void 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected