change skin button added
This commit is contained in:
parent
4cb3301045
commit
0c7b14401b
@ -10,12 +10,14 @@
|
||||
|
||||
#include <SkinnyShortcut.h>
|
||||
#include <SkinnyShapeProvider.h>
|
||||
#include <SkinnyNamespace.h>
|
||||
|
||||
#include <QskFocusIndicator.h>
|
||||
#include <QskObjectCounter.h>
|
||||
#include <QskTabView.h>
|
||||
#include <QskTextLabel.h>
|
||||
#include <QskSwitchButton.h>
|
||||
#include <QskPushButton.h>
|
||||
#include <QskWindow.h>
|
||||
|
||||
#include <QGuiApplication>
|
||||
@ -53,10 +55,24 @@ namespace
|
||||
: QskLinearBox( Qt::Horizontal, parent )
|
||||
{
|
||||
initSizePolicy( QskSizePolicy::Ignored, QskSizePolicy::Fixed );
|
||||
|
||||
setMargins( 10 );
|
||||
setBackgroundColor( Qt::lightGray );
|
||||
|
||||
{
|
||||
auto button = new QskPushButton( "Skin", this );
|
||||
#if 1
|
||||
button->setFlat( true ); // until we have the section bit in QskAspect
|
||||
#endif
|
||||
|
||||
// transition leads to errors, when changing the tab before being completed. TODO ...
|
||||
connect( button, &QskSwitchButton::clicked,
|
||||
[] { Skinny::changeSkin( 500 ); } );
|
||||
}
|
||||
|
||||
addStretch( 10 );
|
||||
|
||||
{
|
||||
new QskTextLabel( "Enabled", this );
|
||||
|
||||
auto button = new QskSwitchButton( this );
|
||||
@ -65,6 +81,7 @@ namespace
|
||||
connect( button, &QskSwitchButton::toggled,
|
||||
this, &Header::enabledToggled );
|
||||
}
|
||||
}
|
||||
|
||||
Q_SIGNALS:
|
||||
void enabledToggled( bool );
|
||||
|
Loading…
x
Reference in New Issue
Block a user