rename Card to Box

This commit is contained in:
Peter Hartmann 2020-09-17 16:14:29 +02:00
parent 5199e1af1e
commit af16ec3696
6 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
#include "Card.h" #include "Box.h"
#include "DaytimeSkin.h" #include "DaytimeSkin.h"
#include <QskBoxBorderColors.h> #include <QskBoxBorderColors.h>
@ -6,7 +6,7 @@
#include <QskBoxShapeMetrics.h> #include <QskBoxShapeMetrics.h>
#include <QskTextLabel.h> #include <QskTextLabel.h>
Card::Card( const QString& title, QQuickItem* parent ) Box::Box( const QString& title, QQuickItem* parent )
: QskLinearBox( Qt::Vertical, parent ) : QskLinearBox( Qt::Vertical, parent )
, m_title( title ) , m_title( title )
, m_label( new QskTextLabel( m_title, this ) ) , m_label( new QskTextLabel( m_title, this ) )

View File

@ -5,10 +5,10 @@
class QskTextLabel; class QskTextLabel;
class Card : public QskLinearBox class Box : public QskLinearBox
{ {
public: public:
Card( const QString& title, QQuickItem* parent ); Box( const QString& title, QQuickItem* parent );
private: private:
QString m_title; QString m_title;

View File

@ -1,6 +1,6 @@
#include "MainContent.h" #include "MainContent.h"
#include "Card.h" #include "Box.h"
#include "Diagram.h" #include "Diagram.h"
#include "Humidity.h" #include "Humidity.h"
#include "IndoorTemperature.h" #include "IndoorTemperature.h"

View File

@ -4,7 +4,7 @@
#include <QskTextLabel.h> #include <QskTextLabel.h>
Usage::Usage( QQuickItem* parent ) Usage::Usage( QQuickItem* parent )
: Card( "Usage", parent ) : Box( "Usage", parent )
{ {
auto* content = new QskLinearBox( Qt::Vertical, this ); auto* content = new QskLinearBox( Qt::Vertical, this );

View File

@ -1,10 +1,10 @@
#ifndef USAGE_H #ifndef USAGE_H
#define USAGE_H #define USAGE_H
#include "Card.h" #include "Box.h"
#include <QskLinearBox.h> #include <QskLinearBox.h>
class Usage : public Card class Usage : public Box
{ {
public: public:
Usage( QQuickItem* parent ); Usage( QQuickItem* parent );

View File

@ -1,7 +1,7 @@
CONFIG += qskexample CONFIG += qskexample
SOURCES += \ SOURCES += \
Card.cpp \ Box.cpp \
CircularProgressBar.cpp \ CircularProgressBar.cpp \
DaytimeSkin.cpp \ DaytimeSkin.cpp \
Diagram.cpp \ Diagram.cpp \
@ -21,7 +21,7 @@ SOURCES += \
MainWindow.cpp MainWindow.cpp
HEADERS += \ HEADERS += \
Card.h \ Box.h \
CircularProgressBar.h \ CircularProgressBar.h \
DaytimeSkin.h \ DaytimeSkin.h \
Diagram.h \ Diagram.h \