summaryrefslogtreecommitdiffstats
path: root/examples/corelib/threads/queuedcustomtype/block.cpp
blob: 3fcc5383b7207555f376d21a6217a1244b8c00d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#include "block.h"

Block::Block()
{
}

Block::Block(const Block &other)
    : m_rect(other.m_rect), m_color(other.m_color)
{
}

Block::~Block()
{
}

Block::Block(const QRect &rect, const QColor &color)
    : m_rect(rect), m_color(color)
{
}

QColor Block::color() const
{
    return m_color;
}

QRect Block::rect() const
{
    return m_rect;
}