rename Card to Box
This commit is contained in:
parent
5199e1af1e
commit
af16ec3696
|
@ -1,4 +1,4 @@
|
|||
#include "Card.h"
|
||||
#include "Box.h"
|
||||
#include "DaytimeSkin.h"
|
||||
|
||||
#include <QskBoxBorderColors.h>
|
||||
|
@ -6,7 +6,7 @@
|
|||
#include <QskBoxShapeMetrics.h>
|
||||
#include <QskTextLabel.h>
|
||||
|
||||
Card::Card( const QString& title, QQuickItem* parent )
|
||||
Box::Box( const QString& title, QQuickItem* parent )
|
||||
: QskLinearBox( Qt::Vertical, parent )
|
||||
, m_title( title )
|
||||
, m_label( new QskTextLabel( m_title, this ) )
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
class QskTextLabel;
|
||||
|
||||
class Card : public QskLinearBox
|
||||
class Box : public QskLinearBox
|
||||
{
|
||||
public:
|
||||
Card( const QString& title, QQuickItem* parent );
|
||||
Box( const QString& title, QQuickItem* parent );
|
||||
|
||||
private:
|
||||
QString m_title;
|
|
@ -1,6 +1,6 @@
|
|||
#include "MainContent.h"
|
||||
|
||||
#include "Card.h"
|
||||
#include "Box.h"
|
||||
#include "Diagram.h"
|
||||
#include "Humidity.h"
|
||||
#include "IndoorTemperature.h"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <QskTextLabel.h>
|
||||
|
||||
Usage::Usage( QQuickItem* parent )
|
||||
: Card( "Usage", parent )
|
||||
: Box( "Usage", parent )
|
||||
{
|
||||
auto* content = new QskLinearBox( Qt::Vertical, this );
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#ifndef USAGE_H
|
||||
#define USAGE_H
|
||||
|
||||
#include "Card.h"
|
||||
#include "Box.h"
|
||||
#include <QskLinearBox.h>
|
||||
|
||||
class Usage : public Card
|
||||
class Usage : public Box
|
||||
{
|
||||
public:
|
||||
Usage( QQuickItem* parent );
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG += qskexample
|
||||
|
||||
SOURCES += \
|
||||
Card.cpp \
|
||||
Box.cpp \
|
||||
CircularProgressBar.cpp \
|
||||
DaytimeSkin.cpp \
|
||||
Diagram.cpp \
|
||||
|
@ -21,7 +21,7 @@ SOURCES += \
|
|||
MainWindow.cpp
|
||||
|
||||
HEADERS += \
|
||||
Card.h \
|
||||
Box.h \
|
||||
CircularProgressBar.h \
|
||||
DaytimeSkin.h \
|
||||
Diagram.h \
|
||||
|
|
Loading…
Reference in New Issue