fix normal rendering

This commit is contained in:
Peter Hartmann 2022-01-14 09:46:52 +01:00
parent 74ea8bc0d4
commit c816f5ea90
2 changed files with 10 additions and 4 deletions

View File

@ -494,7 +494,7 @@ class TabView : public QskTabView
addColoredBorderRectangles5( tab5, true );
addTab( tab5 );
setCurrentIndex( count() - 1 );
setCurrentIndex( count() - 2 );
}
private:
@ -521,10 +521,16 @@ int main( int argc, char* argv[] )
SkinnyShortcut::enable( SkinnyShortcut::Quit | SkinnyShortcut::DebugShortcuts );
// ### remove:
auto* tabView = new TabView();
QskWindow window;
#if 1
auto* tabView = new TabView();
window.addItem( tabView );
#else
auto* tab4 = new QskLinearBox( Qt::Horizontal, 5 );
addTestRectangle( tab4 );
window.addItem( tab4 );
#endif
window.resize( 600, 600 );
window.show();

View File

@ -613,7 +613,7 @@ namespace
{
if ( borderLines )
{
linesTR = borderLines;
linesTR = borderLines + 1;
linesTL = linesTR + numCornerLines + additionalGradientStops( borderMapTR.gradient() );
linesBL = linesTL + numCornerLines + additionalGradientStops( borderMapTL.gradient() );
linesBR = linesBL + numCornerLines + additionalGradientStops( borderMapBR.gradient() );