fix normal rendering
This commit is contained in:
parent
74ea8bc0d4
commit
c816f5ea90
|
@ -494,7 +494,7 @@ class TabView : public QskTabView
|
||||||
addColoredBorderRectangles5( tab5, true );
|
addColoredBorderRectangles5( tab5, true );
|
||||||
|
|
||||||
addTab( tab5 );
|
addTab( tab5 );
|
||||||
setCurrentIndex( count() - 1 );
|
setCurrentIndex( count() - 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -521,10 +521,16 @@ int main( int argc, char* argv[] )
|
||||||
SkinnyShortcut::enable( SkinnyShortcut::Quit | SkinnyShortcut::DebugShortcuts );
|
SkinnyShortcut::enable( SkinnyShortcut::Quit | SkinnyShortcut::DebugShortcuts );
|
||||||
|
|
||||||
// ### remove:
|
// ### remove:
|
||||||
auto* tabView = new TabView();
|
|
||||||
|
|
||||||
QskWindow window;
|
QskWindow window;
|
||||||
|
#if 1
|
||||||
|
auto* tabView = new TabView();
|
||||||
window.addItem( tabView );
|
window.addItem( tabView );
|
||||||
|
#else
|
||||||
|
auto* tab4 = new QskLinearBox( Qt::Horizontal, 5 );
|
||||||
|
addTestRectangle( tab4 );
|
||||||
|
window.addItem( tab4 );
|
||||||
|
#endif
|
||||||
|
|
||||||
window.resize( 600, 600 );
|
window.resize( 600, 600 );
|
||||||
window.show();
|
window.show();
|
||||||
|
|
||||||
|
|
|
@ -613,7 +613,7 @@ namespace
|
||||||
{
|
{
|
||||||
if ( borderLines )
|
if ( borderLines )
|
||||||
{
|
{
|
||||||
linesTR = borderLines;
|
linesTR = borderLines + 1;
|
||||||
linesTL = linesTR + numCornerLines + additionalGradientStops( borderMapTR.gradient() );
|
linesTL = linesTR + numCornerLines + additionalGradientStops( borderMapTR.gradient() );
|
||||||
linesBL = linesTL + numCornerLines + additionalGradientStops( borderMapTL.gradient() );
|
linesBL = linesTL + numCornerLines + additionalGradientStops( borderMapTL.gradient() );
|
||||||
linesBR = linesBL + numCornerLines + additionalGradientStops( borderMapBR.gradient() );
|
linesBR = linesBL + numCornerLines + additionalGradientStops( borderMapBR.gradient() );
|
||||||
|
|
Loading…
Reference in New Issue