[apps] Move the graph/cursor view to the apps root to be used by other

app (as regression app)

Change-Id: Ie3b7f1028333fe136b0ac761cc728a05a90ffc7f
This commit is contained in:
Émilie Feral
2016-12-30 16:12:25 +01:00
parent 7e44dfee12
commit 71f9913b08
5 changed files with 4 additions and 11 deletions

8
apps/cursor_view.cpp Normal file
View File

@@ -0,0 +1,8 @@
#include "cursor_view.h"
void CursorView::drawRect(KDContext * ctx, KDRect rect) const {
KDCoordinate width = bounds().width();
KDCoordinate height = bounds().height();
ctx->fillRect(KDRect(width/2, 0, 1, height), KDColorBlack);
ctx->fillRect(KDRect(0, height/2, width, 1), KDColorBlack);
}