hmi-demo code uncrustified

This commit is contained in:
Uwe Rathmann 2017-07-25 10:47:40 +02:00
parent fffc983bb7
commit d3be6aaa27
9 changed files with 68 additions and 63 deletions

View File

@ -65,8 +65,8 @@ static inline QFont qskFont( int pointSize )
}
DefaultSkin::DefaultSkin( const QString &name, QObject *parent )
: QskSkin( parent ),
DefaultSkin::DefaultSkin( const QString& name, QObject* parent ) :
QskSkin( parent ),
m_name( name ),
m_palette( new Palette ),
m_scheme( Daylight )

View File

@ -14,7 +14,8 @@ public:
void toggleScheme();
void resetColors();
enum Scheme {
enum Scheme
{
Daylight,
Nighttime
};

View File

@ -12,15 +12,16 @@
#include <QDate>
#include <QTimer>
namespace {
namespace
{
void addIcon( QskLayout* layout, const QString& fileName )
{
QImage buildIcon( fileName );
QskGraphic graphic = QskGraphic::fromImage( buildIcon );
const QImage buildIcon( fileName );
QskGraphicLabel* buildLabel = new QskGraphicLabel( layout );
buildLabel->setFixedSize( 76, 36 );
buildLabel->setMargins( QMarginsF( 20, 7, 20, 7 ) );
buildLabel->setGraphic( graphic );
buildLabel->setGraphic( QskGraphic::fromImage( buildIcon ) );
}
}

View File

@ -42,8 +42,8 @@ static inline QFont qskFont( int pointSize )
}
OtherSkin::OtherSkin( const QString &name, QObject *parent )
: QskSkin( parent ),
OtherSkin::OtherSkin( const QString& name, QObject* parent ) :
QskSkin( parent ),
m_name( name ),
m_palette( new Palette )
{
@ -75,7 +75,6 @@ void OtherSkin::initHints()
setColor( BalanceFadeBox::Panel, m_palette->color5 );
setMetric( BalanceFadeBox::Panel | QskAspect::Radius, 15 );
}
OtherSkin::~OtherSkin()

View File

@ -8,8 +8,9 @@
#include <QskTabButton.h>
#include <QskTextLabel.h>
RadioControl::RadioControl( QQuickItem* parent ) : QskControl( parent )
, m_currentBand( "FM" )
RadioControl::RadioControl( QQuickItem* parent ):
QskControl( parent ),
m_currentBand( "FM" )
{
setMargins( QMarginsF( 40, 30, 40, 30 ) );
setAutoLayoutChildren( true );

View File

@ -36,7 +36,8 @@ QskAspect::Subcontrol BalanceFadeBox::effectiveSubcontrol(
class StackedControl : public QskControl {
public:
StackedControl( QQuickItem* parent = nullptr ) : QskControl( parent ),
StackedControl( QQuickItem* parent = nullptr ):
QskControl( parent ),
m_offset( 0.0, 0.0 )
{
}
@ -95,7 +96,8 @@ private:
QPointF m_offset;
};
SoundControl::SoundControl( QQuickItem *parent ) : QskControl( parent )
SoundControl::SoundControl( QQuickItem* parent ):
QskControl( parent )
{
setMargins( QMarginsF( 40, 20, 40, 20 ) );
setAutoLayoutChildren( true );

View File

@ -63,6 +63,7 @@ int main( int argc, char **argv )
MainWindow mainWindow;
mainWindow.show();
return app.exec();
}