Commit 58d4edea authored by Halla Rempt's avatar Halla Rempt
Browse files

Show selected rows in the layer docker in Windows styles

Adding m_wdgLayerBox->listLayers->setSelectionBehavior(QAbstractItemView::SelectRows);
makes the windows styles paint the selection background for the whole
row. Oxygen-based styles don't need that, apparently, but it cannot
hurt.

BUG:134821
parent a1edd082
......@@ -95,6 +95,7 @@ KisLayerBox::KisLayerBox()
m_wdgLayerBox->listLayers->setDefaultDropAction(Qt::MoveAction);
m_wdgLayerBox->listLayers->setVerticalScrollMode(QAbstractItemView::ScrollPerItem);
m_wdgLayerBox->listLayers->setSelectionBehavior(QAbstractItemView::SelectRows);
connect(m_wdgLayerBox->listLayers, SIGNAL(contextMenuRequested(const QPoint&, const QModelIndex&)),
this, SLOT(slotContextMenuRequested(const QPoint&, const QModelIndex&)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment