X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fviewitempaintparams.cpp;fp=pv%2Fview%2Fviewitempaintparams.cpp;h=0000000000000000000000000000000000000000;hp=5a0b815af67d20d8ed11f0f6cacacf06736ce5b3;hb=1573bf16ba50d1c023ad3a9ce596f0ab6eaeacff;hpb=4c7a19d3d7049bcc9fb3185ce2bc91333a7ca9e1 diff --git a/pv/view/viewitempaintparams.cpp b/pv/view/viewitempaintparams.cpp deleted file mode 100644 index 5a0b815a..00000000 --- a/pv/view/viewitempaintparams.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/* - * This file is part of the PulseView project. - * - * Copyright (C) 2014 Joel Holdsworth - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ - -#include - -#include -#include - -#include "viewitempaintparams.hpp" - -namespace pv { -namespace views { -namespace TraceView { - -ViewItemPaintParams::ViewItemPaintParams( - const QRect &rect, double scale, const pv::util::Timestamp& offset) : - rect_(rect), - scale_(scale), - offset_(offset), - bg_colour_state_(false) -{ - assert(scale > 0.0); -} - -QFont ViewItemPaintParams::font() -{ - return QApplication::font(); -} - -int ViewItemPaintParams::text_height() -{ - return QFontMetrics(font()).height(); -} - -} // namespace TraceView -} // namespace views -} // namespace pv