using pragma once for the examples

This commit is contained in:
Uwe Rathmann 2021-08-04 10:11:12 +02:00
parent 923affe749
commit 3956f123f5
65 changed files with 101 additions and 268 deletions

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef BUTTON_BAR_H
#define BUTTON_BAR_H
#pragma once
#include <QskLinearBox.h>
@ -19,5 +18,3 @@ class ButtonBar : public QskLinearBox
protected:
QSizeF layoutSizeHint( Qt::SizeHint, const QSizeF& ) const override;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#pragma once
#include <QskWindow.h>
@ -15,5 +14,3 @@ class MainWindow : public QskWindow
public:
MainWindow();
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef SKIN_FACTORY_H
#define SKIN_FACTORY_H
#pragma once
#include <QskSkinFactory.h>
@ -25,5 +24,3 @@ class SkinFactory : public QskSkinFactory
public Q_SLOTS:
void rotateSkin();
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef SPEEDOMETER_H
#define SPEEDOMETER_H
#pragma once
#include <QskBoundedValueInput.h>
@ -23,5 +22,3 @@ class Speedometer : public QskBoundedValueInput
private:
QVector< QString > m_tickLabels;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef SPEEDOMETERDISPLAY_H
#define SPEEDOMETERDISPLAY_H
#pragma once
#include <QskLinearBox.h>
@ -13,5 +12,3 @@ class SpeedometerDisplay : public QskLinearBox
public:
SpeedometerDisplay( QQuickItem* parent = nullptr );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef SPEEDOMETERSKINLET_H
#define SPEEDOMETERSKINLET_H
#pragma once
#include <QskSkinlet.h>
@ -39,5 +38,3 @@ class SpeedometerSkinlet : public QskSkinlet
QSGNode* updateLabelsNode( const Speedometer*, QSGNode* ) const;
QSGNode* updateNeedleNode( const Speedometer*, QSGNode* ) const;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef BOX_H
#define BOX_H
#pragma once
#include <QskRgbPalette.h>
#include <QskBox.h>
@ -59,5 +58,3 @@ class Box : public QskBox
void setGradient( const QskGradient& gradient );
void setGradient( const QskGradient::Orientation, QskRgbPalette::Theme );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef THEME_H
#define THEME_H 1
#pragma once
#include <QColor>
#include <QObject>
@ -34,5 +33,3 @@ class Theme : public QObject
QColor m_accent;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef FRAME_H
#define FRAME_H
#pragma once
#include "QskControl.h"
@ -70,5 +69,3 @@ class Frame : public QskControl
qreal m_frameWidth;
qreal m_radius;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef PAGE_H
#define PAGE_H
#pragma once
#include <QskLinearBox.h>
@ -14,5 +13,3 @@ class Page : public QskLinearBox
Page( Qt::Orientation, QQuickItem* parent = nullptr );
void setGradient( const QskGradient& );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef LABEL_PAGE_H
#define LABEL_PAGE_H
#pragma once
#include "Page.h"
@ -13,5 +12,3 @@ class LabelPage : public Page
public:
LabelPage( QQuickItem* = nullptr );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef PROGRESS_BAR_PAGE_H
#define PROGRESS_BAR_PAGE_H
#pragma once
#include "Page.h"
@ -16,5 +15,3 @@ class ProgressBarPage : public Page
private:
void populate();
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef CUSTOM_SLIDER_H
#define CUSTOM_SLIDER_H
#pragma once
#include <QskSlider.h>
@ -19,5 +18,3 @@ class CustomSlider : public QskSlider
QRectF focusIndicatorRect() const override;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef CUSTOM_SLIDER_SKINLET_H
#define CUSTOM_SLIDER_SKINLET_H
#pragma once
#include <QskSliderSkinlet.h>
@ -44,5 +43,3 @@ class CustomSliderSkinlet : public QskSliderSkinlet
QRectF decorationRect( const QskSlider*, const QRectF& ) const;
QRectF handleRect( const QskSlider*, const QRectF& ) const;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef OTHER_SLIDER_H
#define OTHER_SLIDER_H
#pragma once
#include <QskSlider.h>
@ -12,8 +11,5 @@ class OtherSlider : public QskSlider
{
public:
// Slider overriding many hints from the skin.
OtherSlider( QQuickItem* = nullptr );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef SLIDER_PAGE_H
#define SLIDER_PAGE_H
#pragma once
#include "Page.h"
@ -16,5 +15,3 @@ class SliderPage : public Page
private:
void populate();
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef SWITCH_BUTTON_PAGE_H
#define SWITCH_BUTTON_PAGE_H
#pragma once
#include "Page.h"
@ -16,5 +15,3 @@ class SwitchButtonPage : public Page
private:
void populate();
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef BENCHMARK_
#define BENCHMARK_ 1
#pragma once
class QString;
@ -12,5 +11,3 @@ namespace Benchmark
{
bool run( const QString& svgDir );
}
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef BOX_H
#define BOX_H
#pragma once
#include <QskLinearBox.h>
@ -26,5 +25,3 @@ class Box : public QskLinearBox
QString m_title;
QskTextLabel* m_label;
};
#endif // BOX_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef BOXWITHBUTTONS_H
#define BOXWITHBUTTONS_H
#pragma once
#include "Box.h"
#include "RoundedIcon.h"
@ -101,5 +100,3 @@ class Humidity : public BoxWithButtons
{
}
};
#endif // BOXWITHBUTTONS_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef CIRCULARPROGRESSBAR_H
#define CIRCULARPROGRESSBAR_H
#pragma once
#include <QskGradient.h>
@ -14,7 +13,7 @@
class CircularProgressBar : public QQuickPaintedItem
{
public:
CircularProgressBar( const QskGradient& gradient, int progress, QQuickItem* parent = nullptr );
CircularProgressBar( const QskGradient&, int progress, QQuickItem* parent = nullptr );
virtual void paint( QPainter* painter ) override;
@ -55,5 +54,3 @@ class CircularProgressBar : public QQuickPaintedItem
double m_width = 20;
int m_progress;
};
#endif // CIRCULARPROGRESSBAR_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef DIAGRAM_H
#define DIAGRAM_H
#pragma once
#include <QskControl.h>
#include <QskNamespace.h>
@ -16,7 +15,8 @@ class Diagram : public QskControl
using Inherited = QskControl;
public:
QSK_SUBCONTROLS( Chart, Segments, ChartLine1, ChartArea1, ChartLine2, ChartArea2, ChartLine3, ChartArea3 )
QSK_SUBCONTROLS( Chart, Segments, ChartLine1, ChartArea1,
ChartLine2, ChartArea2, ChartLine3, ChartArea3 )
enum Type
{
@ -30,7 +30,7 @@ class Diagram : public QskControl
~Diagram() override;
QVector< QVector< QPointF > > dataPoints() const;
void addDataPoints( const QVector< QPointF >& dataPoints, const Types& types );
void addDataPoints( const QVector< QPointF >&, const Types& );
Types typesAt( uint pos ) const;
@ -41,7 +41,7 @@ class Diagram : public QskControl
void setXGridLines( int lines );
Qsk::Position chartPosition() const;
void setChartPosition( Qsk::Position position );
void setChartPosition( Qsk::Position );
protected:
QSizeF contentsSizeHint( Qt::SizeHint, const QSizeF& ) const override;
@ -52,5 +52,3 @@ class Diagram : public QskControl
};
Q_DECLARE_OPERATORS_FOR_FLAGS( Diagram::Types )
#endif // DIAGRAM_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef DIAGRAM_SKINLET_H
#define DIAGRAM_SKINLET_H
#pragma once
#include <QskSkinlet.h>
@ -38,5 +37,3 @@ class DiagramSkinlet : public QskSkinlet
QSGNode* updateChartNode( const Diagram*, QSGNode* ) const;
QSGNode* updateSeparatorNode( const Diagram*, QSGNode* ) const;
};
#endif // DIAGRAM_SKINLET_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef LIGHTINTENSITY_H
#define LIGHTINTENSITY_H
#pragma once
#include "Box.h"
@ -117,5 +116,3 @@ class LightIntensity : public Box
public:
LightIntensity( QQuickItem* parent );
};
#endif // LIGHTINTENSITY_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef MAINCONTENT_H
#define MAINCONTENT_H
#pragma once
#include <QskGridBox.h>
#include <QskLinearBox.h>
@ -71,5 +70,3 @@ class MainContent : public QskLinearBox
QList< QskLinearBox* > m_columns;
ShadowPositioner* m_shadowPositioner;
};
#endif // MAINCONTENT_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#pragma once
#include <QskWindow.h>
@ -24,5 +23,3 @@ class MainWindow : public QskWindow
MenuBar* m_menuBar;
MainContent* m_mainContent;
};
#endif // MAINWINDOW_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef MENUBAR_H
#define MENUBAR_H
#pragma once
#include <QskGraphicLabel.h>
#include <QskLinearBox.h>
@ -115,5 +114,3 @@ class MenuBar final : public QskLinearBox
QList< MenuItem* > m_entries;
uint m_activeEntry = 0;
};
#endif // MENUBAR_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef MYDEVICES_H
#define MYDEVICES_H
#pragma once
#include "Box.h"
@ -13,5 +12,3 @@ class MyDevices : public Box
public:
MyDevices( QQuickItem* parent );
};
#endif // MYDEVICES_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef PIECHART_H
#define PIECHART_H
#pragma once
#include <QskControl.h>
@ -27,5 +26,3 @@ class PieChart : public QskControl
QVector< float > m_angles;
QVector< QString > m_labels;
};
#endif // PIECHART_H

View File

@ -3,11 +3,9 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef PIECHARTPAINTED_H
#define PIECHARTPAINTED_H
#pragma once
#include <QskControl.h>
#include "CircularProgressBar.h"
class ProgressBarAnimator;
@ -20,7 +18,8 @@ class PieChartPainted : public QskControl
public:
QSK_SUBCONTROLS( Panel )
PieChartPainted( const QColor& color, const QskGradient& gradient, int progress, int value, QQuickItem* parent = nullptr );
PieChartPainted( const QColor&, const QskGradient&,
int progress, int value, QQuickItem* parent = nullptr );
QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override final;
@ -35,5 +34,3 @@ class PieChartPainted : public QskControl
QskTextLabel* m_progressLabel;
ProgressBarAnimator* m_animator;
};
#endif // PIECHARTPAINTED_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef PIECHART_SKINLET_H
#define PIECHART_SKINLET_H
#pragma once
#include <QskSkinlet.h>
@ -23,14 +22,14 @@ class PieChartSkinlet : public QskSkinlet
Q_INVOKABLE PieChartSkinlet( QskSkin* skin = nullptr );
QRectF subControlRect( const QskSkinnable*, const QRectF&, QskAspect::Subcontrol ) const override;
QRectF subControlRect( const QskSkinnable*,
const QRectF&, QskAspect::Subcontrol ) const override;
protected:
virtual QSGNode* updateSubNode( const QskSkinnable*, quint8 nodeRole, QSGNode* node ) const override;
virtual QSGNode* updateSubNode( const QskSkinnable*,
quint8 nodeRole, QSGNode* node ) const override;
private:
QSGNode* updatePanelNode( const PieChart*, QSGNode* ) const;
QSGNode* updateLabelsNode( const PieChart*, QSGNode* ) const;
};
#endif // PIECHART_SKINLET_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef ROUNDEDICON_H
#define ROUNDEDICON_H
#pragma once
#include <QskBox.h>
#include <QskGradient.h>
@ -41,5 +40,3 @@ class RoundedIcon : public QskBox
QString m_iconName;
QskGraphicLabel* m_graphicLabel = nullptr;
};
#endif // ROUNDEDICON_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef SKIN_H
#define SKIN_H
#pragma once
#include <QskGradient.h>
#include <QskSkin.h>
@ -78,5 +77,3 @@ class NighttimeSkin : public Skin
{
}
};
#endif // SKIN_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef TOPBAR_H
#define TOPBAR_H
#pragma once
#include <QskLinearBox.h>
#include <QskTextLabel.h>
@ -106,5 +105,3 @@ class TopBar : public QskLinearBox
private:
QList< TopBarItem* > m_entries;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef UPANDDOWNBUTTON_H
#define UPANDDOWNBUTTON_H
#pragma once
#include <QskLinearBox.h>
#include <QskPushButton.h>
@ -30,5 +29,3 @@ class UpAndDownButton : public QskLinearBox
public:
UpAndDownButton( QQuickItem* parent );
};
#endif // UPANDDOWNBUTTON_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef USAGE_H
#define USAGE_H
#pragma once
#include "Box.h"
@ -40,5 +39,3 @@ class Usage : public Box
public:
Usage( QQuickItem* parent );
};
#endif // USAGE_H

View File

@ -3,13 +3,11 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef USAGEDIAGRAM_H
#define USAGEDIAGRAM_H
#pragma once
#include "Box.h"
#include <QskTextLabel.h>
#include <QQuickPaintedItem>
class Diagram;
@ -157,5 +155,3 @@ class UsageDiagram : public Box
QskLinearBox* m_captionBox;
QskGridBox* m_weekdays;
};
#endif // USAGEDIAGRAM_H

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef DIAGRAMDATANODE_H
#define DIAGRAMDATANODE_H
#pragma once
#include <QskNamespace.h>
@ -23,7 +22,8 @@ class DiagramDataNode : public QSGGeometryNode
DiagramDataNode();
void update( const QRectF& rect, Type type, const QColor& color, const QVector< QPointF >& dataPoints, const qreal yMax, Qsk::Position position, int lineWidth );
void update( const QRectF&, Type, const QColor&,
const QVector< QPointF >&, const qreal yMax, Qsk::Position, int lineWidth );
private:
QSGFlatColorMaterial m_material;
@ -37,5 +37,3 @@ class DiagramDataNode : public QSGGeometryNode
Qsk::Position m_position;
int m_lineWidth;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef DIAGRAMSEGMENTSNODE_H
#define DIAGRAMSEGMENTSNODE_H
#pragma once
#include <QPolygonF>
#include <QSGFlatColorMaterial>
@ -15,7 +14,8 @@ class DiagramSegmentsNode : public QSGGeometryNode
public:
DiagramSegmentsNode();
void update( const QRectF& rect, const QColor& color, const QVector< QVector< QPointF > >& dataPoints, int xGridLines );
void update( const QRectF&, const QColor&,
const QVector< QVector< QPointF > >&, int xGridLines );
private:
QSGFlatColorMaterial m_material;
@ -26,5 +26,3 @@ class DiagramSegmentsNode : public QSGGeometryNode
QVector< QVector< QPointF > > m_dataPoints;
int m_xGridLines;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef BUTTON_BOX
#define BUTTON_BOX 1
#pragma once
#include <QskLinearBox.h>
#include <functional>
@ -17,5 +16,3 @@ class ButtonBox : public QskLinearBox
void addButton( const QString& text,
std::function< void() > func, bool autoRepeat = false );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef DYNAMIC_CONSTRAINTS_PAGE
#define DYNAMIC_CONSTRAINTS_PAGE 1
#pragma once
#include <QskLinearBox.h>
@ -13,5 +12,3 @@ class DynamicConstraintsPage : public QskLinearBox
public:
DynamicConstraintsPage( QQuickItem* parent = nullptr );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef FLOW_LAYOUT_PAGE
#define FLOW_LAYOUT_PAGE 1
#pragma once
#include <QskLinearBox.h>
@ -13,5 +12,3 @@ class FlowLayoutPage : public QskLinearBox
public:
FlowLayoutPage( QQuickItem* parent = nullptr );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef GRID_LAYOUT_PAGE
#define GRID_LAYOUT_PAGE
#pragma once
#include <QskControl.h>
@ -13,5 +12,3 @@ class GridLayoutPage : public QskControl
public:
GridLayoutPage( QQuickItem* parent = nullptr );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef LINERAR_LAYOUT_PAGE
#define LINEAR_LAYOUT_PAGE 1
#pragma once
#include <QskLinearBox.h>
@ -13,5 +12,3 @@ class LinearLayoutPage : public QskLinearBox
public:
LinearLayoutPage( QQuickItem* parent = nullptr );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef STACK_LAYOUT_PAGE
#define STACK_LAYOUT_PAGE 1
#pragma once
#include <QskLinearBox.h>
@ -13,5 +12,3 @@ class StackLayoutPage : public QskLinearBox
public:
StackLayoutPage( QQuickItem* parent = nullptr );
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef TEST_RECTANGLE
#define TEST_RECTANGLE
#pragma once
#include <QskTextLabel.h>
@ -24,5 +23,3 @@ class TestRectangle : public QskTextLabel
private:
QString m_colorName;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef MY_SKIN_H
#define MY_SKIN_H
#pragma once
#include <QskSkinFactory.h>
@ -17,5 +16,3 @@ class MySkinFactory : public QskSkinFactory
QStringList skinNames() const override;
QskSkin* createSkin( const QString& skinName ) override;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef MY_TOGGLE_BUTTON_H
#define MY_TOGGLE_BUTTON_H
#pragma once
#include <QskAbstractButton.h>
@ -49,5 +48,3 @@ class MyToggleButton : public QskAbstractButton
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef MY_TOGGLE_BUTTON_SKINLET_H
#define MY_TOGGLE_BUTTON_SKINLET_H
#pragma once
#include <QskSkinlet.h>
@ -44,5 +43,3 @@ class MyToggleButtonSkinlet : public QskSkinlet
QSGNode* updateSubNode( const QskSkinnable*,
quint8 nodeRole, QSGNode* ) const override;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef MAIN_WINDOW_H_
#define MAIN_WINDOW_H_
#pragma once
#include <QskWindow.h>
@ -25,5 +24,3 @@ class MainWindow : public QskWindow
private:
QskTabView* m_tabView;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef ANCHOR_BOX_H
#define ANCHOR_BOX_H
#pragma once
#include "QskControl.h"
@ -42,6 +41,3 @@ class AnchorBox : public QskControl
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef WINDOW_H
#define WINDOW_H 1
#pragma once
#include <QskDialog.h>
#include <QskWindow.h>
@ -34,5 +33,3 @@ class Window : public QskWindow
QskLinearBox* m_layoutBox;
Qt::Orientation m_orientation;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef GRID_ACCESSOR_H
#define GRID_ACCESSOR_H
#pragma once
#include <Qt>
@ -61,5 +60,3 @@ class GridAccessor
virtual QSize preferredSize() const = 0;
};
#endif

View File

@ -3,15 +3,14 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef GRID_GRAPHICS_H
#define GRID_GRAPHICS_H
#pragma once
#include "GridAccessor.h"
#include <QGraphicsView>
class QGraphicsGridLayout;
class GridGraphics : public QGraphicsView, public GridAccessor
class GridGraphics final : public QGraphicsView, public GridAccessor
{
public:
GridGraphics( QWidget* parent = nullptr );
@ -39,5 +38,3 @@ class GridGraphics : public QGraphicsView, public GridAccessor
private:
QGraphicsGridLayout* m_layout;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef GRID_QUICK_H
#define GRID_QUICK_H
#pragma once
#include "GridAccessor.h"
#include <QQuickWidget>
@ -39,5 +38,3 @@ class GridQuick : public QQuickWidget, public GridAccessor
private:
QQuickItem* m_grid;
};
#endif

View File

@ -3,15 +3,14 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef GRID_SKINNY_H
#define GRID_SKINNY_H
#pragma once
#include "GridAccessor.h"
#include <QQuickWidget>
class QskGridBox;
class GridSkinny : public QQuickWidget, public GridAccessor
class GridSkinny final : public QQuickWidget, public GridAccessor
{
public:
GridSkinny( QWidget* parent = nullptr );
@ -36,5 +35,3 @@ class GridSkinny : public QQuickWidget, public GridAccessor
private:
QskGridBox* m_grid;
};
#endif

View File

@ -3,15 +3,14 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef GRID_WIDGETS_H
#define GRID_WIDGETS_H
#pragma once
#include "GridAccessor.h"
#include <QWidget>
class QGridLayout;
class GridWidgets : public QWidget, public GridAccessor
class GridWidgets final : public QWidget, public GridAccessor
{
public:
GridWidgets( QWidget* parent = nullptr );
@ -36,5 +35,3 @@ class GridWidgets : public QWidget, public GridAccessor
private:
QGridLayout* m_layout;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef TEST_BOX_H
#define TEST_BOX_H
#pragma once
#include "GridAccessor.h"
#include <QWidget>
@ -62,5 +61,3 @@ class TestBox : public QWidget, public GridAccessor
int m_columnCount = 2;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef IMAGE_H
#define IMAGE_H
#pragma once
#include "QskGlobal.h"
@ -78,5 +77,3 @@ class Image : public QQuickImage
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef CALLBACK_H
#define CALLBACK_H 1
#pragma once
#include <QskMetaInvokable.h>
@ -40,5 +39,3 @@ inline const QskMetaInvokable& Callback::invokable() const
{
return m_invokable;
}
#endif

View File

@ -3,8 +3,7 @@
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef INVOKER_H
#define INVOKER_H 1
#pragma once
#include "Callback.h"
#include <QskMetaFunction.h>
@ -33,5 +32,3 @@ inline void Invoker::addFunctionCall( const QskMetaFunction& function )
{
addFunctionCall( this, function );
}
#endif

View File

@ -1,3 +1,8 @@
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#include "BoxShadowNode.h"
#include "QskBoxShapeMetrics.h"

View File

@ -1,5 +1,9 @@
#ifndef BOX_SHADOW_NODE_H
#define BOX_SHADOW_NODE_H
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#pragma once
#include <QSGGeometryNode>
@ -24,5 +28,3 @@ class BoxShadowNode : public QSGGeometryNode
private:
Q_DECLARE_PRIVATE( BoxShadowNode )
};
#endif

View File

@ -1,3 +1,8 @@
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#include "ShadowedBox.h"
#include "BoxShadowNode.h"

View File

@ -1,5 +1,9 @@
#ifndef SHADOWED_BOX_H
#define SHADOWED_BOX_H
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#pragma once
#include <QskControl.h>
#include <QskBoxShapeMetrics.h>
@ -42,5 +46,3 @@ class ShadowedBox : public QskControl
QskGradient m_gradient;
QskBoxShapeMetrics m_shape;
};
#endif