missing cell padding added for fluent2
This commit is contained in:
parent
e5e2921bba
commit
0f6a1206e6
|
@ -16,10 +16,6 @@ namespace
|
||||||
: QskSimpleListBox( parent )
|
: QskSimpleListBox( parent )
|
||||||
{
|
{
|
||||||
setMargins( QMarginsF( 15, 10, 10, 10 ) );
|
setMargins( QMarginsF( 15, 10, 10, 10 ) );
|
||||||
|
|
||||||
// increasing the padding of each row: usually the job of the skin !
|
|
||||||
setPaddingHint( Cell, QMargins( 10, 20, 10, 20 ) );
|
|
||||||
|
|
||||||
populate();
|
populate();
|
||||||
|
|
||||||
setSelectedRow( 5 );
|
setSelectedRow( 5 );
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
|
|
||||||
- hover state is not implemented
|
- hover state is not implemented
|
||||||
- Indicator subcontrol might be better than using the border of the selection box
|
- Indicator subcontrol might be better than using the border of the selection box
|
||||||
|
- cell padding unclear
|
||||||
|
|
||||||
- using qskDpToPixels ?
|
- using qskDpToPixels ?
|
||||||
*/
|
*/
|
||||||
|
@ -607,6 +608,10 @@ void Editor::setupListViewMetrics()
|
||||||
using Q = QskListView;
|
using Q = QskListView;
|
||||||
|
|
||||||
setBoxBorderMetrics( Q::Cell | Q::Selected, { 3, 0, 0, 0 } );
|
setBoxBorderMetrics( Q::Cell | Q::Selected, { 3, 0, 0, 0 } );
|
||||||
|
#if 1
|
||||||
|
// taken from M3 - what are the actual values, TODO ...
|
||||||
|
setPadding( Q::Cell, { 16, 12, 16, 12 } );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Editor::setupListViewColors(
|
void Editor::setupListViewColors(
|
||||||
|
|
Loading…
Reference in New Issue