Loading...
Searching...
No Matches
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>
12namespace Media::Metro
13{
14
15class View final : public Process::LayerView
16{
17 W_OBJECT(View)
18public:
19 explicit View(QGraphicsItem* parent)
20 : Process::LayerView{parent}
21 {
22 setFlag(QGraphicsItem::ItemClipsToShape);
23 }
24
25private:
26 void paint_impl(QPainter* p) const override
27 {
28 // TODO paint the current time
29 }
30};
31}
32
33W_OBJECT_IMPL(Media::Metro::View)
Definition MetroView.hpp:16
Definition LayerView.hpp:21