Showing the changes to interface/src/ui/ScriptLineNumberArea.cpp (1 of 8 files). Show all
Unified · Split
| @@ -0,0 +1,28 @@ | ||
| 1 | +// | |
| 2 | +// ScriptLineNumberArea.cpp | |
| 3 | +// interface/src/ui | |
| 4 | +// | |
| 5 | +// Created by Thijs Wenker on 4/30/14. | |
| 6 | +// Copyright 2014 High Fidelity, Inc. | |
| 7 | +// | |
| 8 | +// Distributed under the Apache License, Version 2.0. | |
| 9 | +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
| 10 | +// | |
| 11 | + | |
| 12 | +#include "ScriptLineNumberArea.h" | |
| 13 | + | |
| 14 | +#include "Application.h" | |
| 15 | + | |
| 16 | +ScriptLineNumberArea::ScriptLineNumberArea(ScriptEditBox* scriptEditBox) : | |
| 17 | + QWidget(scriptEditBox) | |
| 18 | +{ | |
| 19 | + _scriptEditBox = scriptEditBox; | |
| 20 | +} | |
| 21 | + | |
| 22 | +QSize ScriptLineNumberArea::sizeHint() { | |
| 23 | + return QSize(_scriptEditBox->lineNumberAreaWidth(), 0); | |
| 24 | +} | |
| 25 | + | |
| 26 | +void ScriptLineNumberArea::paintEvent(QPaintEvent* event) { | |
| 27 | + _scriptEditBox->lineNumberAreaPaintEvent(event); | |
| 28 | +} | |