remove unused or highlight unused variables
This commit is contained in:
parent
f0c7e3690a
commit
0e240cafb7
|
@ -166,6 +166,8 @@ QskAspect::Subcontrol QskListView::rowSubControl( int row ) const noexcept
|
||||||
|
|
||||||
QskAspect::Subcontrol QskListView::cellSubControl( int row, int col ) const noexcept
|
QskAspect::Subcontrol QskListView::cellSubControl( int row, int col ) const noexcept
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(row);
|
||||||
|
Q_UNUSED(col);
|
||||||
return Cell;
|
return Cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -399,6 +401,7 @@ void QskListView::componentComplete()
|
||||||
|
|
||||||
qreal QskListView::rowOffset( int row ) const
|
qreal QskListView::rowOffset( int row ) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(row);
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,6 @@ void QskListViewSkinlet::updateBackgroundNode( const QskListView* listView, QSGN
|
||||||
auto* boxNode = rowNode->firstChild();
|
auto* boxNode = rowNode->firstChild();
|
||||||
auto prepend = boxNode == nullptr;
|
auto prepend = boxNode == nullptr;
|
||||||
|
|
||||||
const auto color = listView->color(subControl);
|
|
||||||
const auto gradient = listView->gradientHint(subControl);
|
const auto gradient = listView->gradientHint(subControl);
|
||||||
|
|
||||||
boxNode = updateBoxNode( listView, boxNode, boxRect, subControl );
|
boxNode = updateBoxNode( listView, boxNode, boxRect, subControl );
|
||||||
|
@ -168,7 +167,6 @@ void QskListViewSkinlet::updateBackgroundNodes(
|
||||||
if ( rowMax >= listView->rowCount() )
|
if ( rowMax >= listView->rowCount() )
|
||||||
rowMax = listView->rowCount() - 1;
|
rowMax = listView->rowCount() - 1;
|
||||||
|
|
||||||
const int rowSelected = listView->selectedRow();
|
|
||||||
const double x0 = viewRect.left();
|
const double x0 = viewRect.left();
|
||||||
const double y0 = viewRect.top();
|
const double y0 = viewRect.top();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue