score
Home
Classes
Namespaces
Files
MetroView.hpp
1
#pragma once
2
#include <Process/LayerView.hpp>
3
4
#include <Media/Metro/MetroModel.hpp>
5
6
#include <QGraphicsSceneMouseEvent>
7
#include <QPainter>
8
9
#include <wobjectimpl.h>
10
11
#include <verdigris>
12
namespace
Media::Metro
13
{
14
15
class
View
final :
public
Process::LayerView
16
{
17
W_OBJECT(
View
)
18
public
:
19
explicit
View
(QGraphicsItem* parent)
20
:
Process::LayerView
{parent}
21
{
22
setFlag(QGraphicsItem::ItemClipsToShape);
23
}
24
25
private
:
26
void
paint_impl(QPainter* p)
const override
27
{
28
// TODO paint the current time
29
}
30
};
31
}
32
33
W_OBJECT_IMPL(
Media::Metro::View
)
Media::Metro::View
Definition:
MetroView.hpp:16
Process::LayerView
Definition:
LayerView.hpp:21