Skip to content

Commit

Permalink
dh
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Jul 31, 2018
1 parent ec101b7 commit 68bc2f0
Show file tree
Hide file tree
Showing 136 changed files with 512 additions and 514 deletions.
6 changes: 3 additions & 3 deletions examples/automotive/ButtonBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

QSK_SUBCONTROL( ButtonBar, Indicator )

class IndicatorLabel : public QskGraphicLabel
class IndicatorLabel final : public QskGraphicLabel
{
public:
IndicatorLabel( QQuickItem* parentItem = nullptr ):
Expand All @@ -16,8 +16,8 @@ class IndicatorLabel : public QskGraphicLabel
setGraphicRole( SkinFactory::Indicator );
}

virtual QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override final
QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override
{
// so that we can set specific colors in the skin

Expand Down
2 changes: 1 addition & 1 deletion examples/automotive/ButtonBar.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ButtonBar : public QskLinearBox
void addIndicator( const char* name );

protected:
virtual QSizeF contentsSizeHint() const override;
QSizeF contentsSizeHint() const override;
};

#endif
4 changes: 2 additions & 2 deletions examples/automotive/DefaultSkin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@

#include <QDebug>

class Transition : public QskSkinTransition
class Transition final : public QskSkinTransition
{
protected:
virtual void updateSkin( QskSkin*, QskSkin* newSkin ) override final
void updateSkin( QskSkin*, QskSkin* newSkin ) override
{
DefaultSkin* skin = static_cast< DefaultSkin* >( newSkin );
skin->resetHints();
Expand Down
2 changes: 1 addition & 1 deletion examples/automotive/DefaultSkin.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DefaultSkin : public QskSkin
{
public:
DefaultSkin( const QString& name, QObject* parent = nullptr );
virtual ~DefaultSkin();
~DefaultSkin() override;

void toggleScheme();
void resetHints();
Expand Down
2 changes: 1 addition & 1 deletion examples/automotive/OtherSkin.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class OtherSkin : public QskSkin
{
public:
OtherSkin( const QString& name, QObject* parent = nullptr );
virtual ~OtherSkin();
~OtherSkin() override;

private:
void initHints();
Expand Down
4 changes: 2 additions & 2 deletions examples/automotive/SkinFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class SkinFactory : public QskSkinFactory
Vehicle
};

virtual QStringList skinNames() const override;
virtual QskSkin* createSkin( const QString& skinName ) override;
QStringList skinNames() const override;
QskSkin* createSkin( const QString& skinName ) override;

public Q_SLOTS:
void rotateSkin();
Expand Down
44 changes: 22 additions & 22 deletions examples/automotive/SoundControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ QSK_SUBCONTROL( SoundControl, MarkerControl )
QSK_SUBCONTROL( SoundControl, Vehicle )
QSK_SUBCONTROL( SoundControl, SliderControl )

class VehicleLabel : public QskGraphicLabel
class VehicleLabel final : public QskGraphicLabel
{
public:
VehicleLabel( QQuickItem* parentItem = nullptr ):
Expand All @@ -29,8 +29,8 @@ class VehicleLabel : public QskGraphicLabel
setGraphic( QskGraphicIO::read( QString( ":/qvg/car.qvg" ) ) );
}

virtual QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override final
QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override
{
// so that we can set specific colors in the skin

Expand All @@ -41,16 +41,16 @@ class VehicleLabel : public QskGraphicLabel
}
};

class CrossHairLine : public QskBox
class CrossHairLine final : public QskBox
{
public:
CrossHairLine( QQuickItem* parent ):
QskBox( parent )
{
}

virtual QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override final
QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override
{
if ( subControl == QskBox::Panel )
return SoundControl::CrossHair;
Expand All @@ -59,16 +59,16 @@ class CrossHairLine : public QskBox
}
};

class BalanceFadeMarker : public QskBox
class BalanceFadeMarker final : public QskBox
{
public:
BalanceFadeMarker( QQuickItem* parent ):
QskBox( parent )
{
}

virtual QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override final
QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override
{
if ( subControl == QskBox::Panel )
return SoundControl::Marker;
Expand All @@ -77,7 +77,7 @@ class BalanceFadeMarker : public QskBox
}
};

class MarkerControlButton : public QskPushButton
class MarkerControlButton final : public QskPushButton
{
public:
MarkerControlButton( Qsk::Direction direction, QQuickItem* parentItem = nullptr ):
Expand Down Expand Up @@ -115,8 +115,8 @@ class MarkerControlButton : public QskPushButton
return QPointF();
}

virtual QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override final
QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override
{
// so that we can set specific colors in the skin

Expand All @@ -127,7 +127,7 @@ class MarkerControlButton : public QskPushButton
}

protected:
virtual QSizeF contentsSizeHint() const override final
QSizeF contentsSizeHint() const override
{
const qreal dim = 100;

Expand All @@ -141,7 +141,7 @@ class MarkerControlButton : public QskPushButton
const Qsk::Direction m_direction;
};

class ControlButton : public QskPushButton
class ControlButton final : public QskPushButton
{
public:
ControlButton( const char symbol, QQuickItem* parentItem = nullptr ):
Expand All @@ -153,7 +153,7 @@ class ControlButton : public QskPushButton
setAutoRepeat( true );
}

virtual QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override
{
if ( subControl == QskPushButton::Panel )
Expand All @@ -162,14 +162,14 @@ class ControlButton : public QskPushButton
return QskPushButton::effectiveSubcontrol( subControl );
}

virtual QSizeF contentsSizeHint() const override final
QSizeF contentsSizeHint() const override
{
qreal h = QskPushButton::contentsSizeHint().height();
return QSizeF( h, h );
}
};

class StackedControl : public QskControl
class StackedControl final : public QskControl
{
public:
StackedControl( QQuickItem* parent = nullptr ):
Expand Down Expand Up @@ -203,7 +203,7 @@ class StackedControl : public QskControl
}

protected:
virtual void updateLayout() override final
void updateLayout() override
{
const QRectF cr = contentsRect();
const qreal crossHairSize = 3;
Expand Down Expand Up @@ -242,7 +242,7 @@ class StackedControl : public QskControl
QPointF m_offset;
};

class SectionTitleBar : public QskLinearBox
class SectionTitleBar final : public QskLinearBox
{
public:
SectionTitleBar( const char* title, QQuickItem* parentItem = nullptr ):
Expand All @@ -262,7 +262,7 @@ class SectionTitleBar : public QskLinearBox
}
};

class SliderBox : public QskLinearBox
class SliderBox final : public QskLinearBox
{
public:
SliderBox( const char* title, qreal min, qreal max, QQuickItem* parentItem = nullptr ):
Expand Down Expand Up @@ -328,7 +328,7 @@ public Q_SLOTS:
QskSlider* m_slider;
};

class ToneControlBox : public QskLinearBox
class ToneControlBox final : public QskLinearBox
{
public:
ToneControlBox( QQuickItem* parentItem = nullptr ):
Expand All @@ -344,7 +344,7 @@ class ToneControlBox : public QskLinearBox
}
};

class BalanceFadeControlBox : public QskGridBox
class BalanceFadeControlBox final : public QskGridBox
{
public:
BalanceFadeControlBox( QQuickItem* parentItem = nullptr ):
Expand Down
4 changes: 2 additions & 2 deletions examples/automotive/SoundControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class SoundControl : public QskBox

SoundControl( QQuickItem* parent = nullptr );

virtual QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override final;
};

#endif // SOUNDCONTROL_H
#endif
2 changes: 1 addition & 1 deletion examples/automotive/SpeedometerDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ class SpeedometerDisplay : public QskControl
QskTextLabel* m_fuelGaugeText;
};

#endif // SPEEDOMETERDISPLAY_H
#endif
6 changes: 3 additions & 3 deletions examples/automotive/SpeedometerSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class SpeedometerSkinlet : public QskSkinlet
};

Q_INVOKABLE SpeedometerSkinlet( QskSkin* skin = nullptr );
virtual ~SpeedometerSkinlet() override;
~SpeedometerSkinlet() override;

virtual QRectF subControlRect( const QskSkinnable* skinnable,
QRectF subControlRect( const QskSkinnable* skinnable,
QskAspect::Subcontrol ) const override;

protected:
Expand All @@ -33,4 +33,4 @@ class SpeedometerSkinlet : public QskSkinlet
QSGNode* updateNeedleNode( const Speedometer*, QSGNode* ) const;
};

#endif // SPEEDOMETERSKINLET_H
#endif
4 changes: 2 additions & 2 deletions examples/colorswitch/Theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static void qskResetColors( QskSkin* skin, const QColor& accent )

namespace
{
class SkinTransition : public QskSkinTransition
class SkinTransition final : public QskSkinTransition
{
public:
SkinTransition( const QColor& accent ):
Expand All @@ -37,7 +37,7 @@ namespace
}

protected:
virtual void updateSkin( QskSkin*, QskSkin* newSkin ) override final
void updateSkin( QskSkin*, QskSkin* newSkin ) override
{
qskResetColors( newSkin, m_accent );
}
Expand Down
4 changes: 2 additions & 2 deletions examples/frames/Frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class QSK_EXPORT Frame : public QskControl
Q_ENUM( Style )

Frame( QQuickItem* parent = nullptr );
virtual ~Frame();
~Frame() override;

void setStyle( Style );
Style style() const;
Expand All @@ -60,7 +60,7 @@ class QSK_EXPORT Frame : public QskControl
void colorChanged();

protected:
virtual void updateNode( QSGNode* ) override;
void updateNode( QSGNode* ) override;

private:
void updateFrameNode( const QRectF&, QskBoxNode* );
Expand Down
6 changes: 3 additions & 3 deletions examples/layouts/DynamicConstraintsPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

namespace
{
class Control : public QskControl
class Control final : public QskControl
{
public:
Control( const char* colorName, QQuickItem* parent = nullptr );
Control( const char* colorName, qreal aspectRatio, QQuickItem* parent = nullptr );

virtual qreal heightForWidth( qreal width ) const override final;
virtual qreal widthForHeight( qreal height ) const override final;
qreal heightForWidth( qreal width ) const override;
qreal widthForHeight( qreal height ) const override;

void transpose();

Expand Down
4 changes: 2 additions & 2 deletions examples/sliders/Slider.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class Slider : public QskSlider

Slider( QQuickItem* parent = nullptr );

virtual QRectF focusIndicatorRect() const override;
virtual QSizeF contentsSizeHint() const override;
QRectF focusIndicatorRect() const override;
QSizeF contentsSizeHint() const override;
};

#endif
6 changes: 3 additions & 3 deletions examples/sliders/SliderSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class SliderSkinlet : public QskSliderSkinlet
};

SliderSkinlet();
virtual ~SliderSkinlet() override;
~SliderSkinlet() override;

virtual QRectF subControlRect( const QskSkinnable*,
QRectF subControlRect( const QskSkinnable*,
QskAspect::Subcontrol ) const override;

protected:
virtual QSGNode* updateSubNode(
QSGNode* updateSubNode(
const QskSkinnable*, quint8 nodeRole, QSGNode* ) const override;

private:
Expand Down
10 changes: 5 additions & 5 deletions inputcontext/QskHunspellTextPredictor.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class QSK_EXPORT QskHunspellTextPredictor : public QskTextPredictor

public:
QskHunspellTextPredictor( QObject* = nullptr );
virtual ~QskHunspellTextPredictor() override;
~QskHunspellTextPredictor() override;

virtual int candidateCount() const override;
virtual QString candidate( int pos ) const override;
int candidateCount() const override;
QString candidate( int pos ) const override;

protected:
virtual void request( const QString& ) override;
virtual void reset() override;
void request( const QString& ) override;
void reset() override;

private:
class PrivateData;
Expand Down

0 comments on commit 68bc2f0

Please sign in to comment.