return QPoint(0, visual_v_offset());
}
-void RowItem::paint_back(QPainter &p, const ViewItemPaintParams &pp)
-{
- (void)p;
- (void)pp;
-}
-
-void RowItem::paint_mid(QPainter &p, const ViewItemPaintParams &pp)
-{
- (void)p;
- (void)pp;
-}
-
-void RowItem::paint_fore(QPainter &p, const ViewItemPaintParams &pp)
-{
- (void)p;
- (void)pp;
-}
-
void RowItem::hover_point_changed()
{
}
#include <QPropertyAnimation>
-#include "viewitempaintparams.hpp"
#include "viewitem.hpp"
namespace pv {
*/
virtual std::pair<int, int> v_extents() const = 0;
- /**
- * Paints the background layer of the trace with a QPainter
- * @param p the QPainter to paint into.
- * @param pp the painting parameters object to paint with.
- **/
- virtual void paint_back(QPainter &p, const ViewItemPaintParams &pp);
-
- /**
- * Paints the mid-layer of the trace with a QPainter
- * @param p the QPainter to paint into.
- * @param pp the painting parameters object to paint with.
- **/
- virtual void paint_mid(QPainter &p, const ViewItemPaintParams &pp);
-
- /**
- * Paints the foreground layer of the trace with a QPainter
- * @param p the QPainter to paint into.
- * @param pp the painting parameters object to paint with.
- **/
- virtual void paint_fore(QPainter &p, const ViewItemPaintParams &pp);
-
/**
* Paints the signal label.
* @param p the QPainter to paint into.
Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
}
+void ViewItem::paint_back(QPainter &p, const ViewItemPaintParams &pp)
+{
+ (void)p;
+ (void)pp;
+}
+
+void ViewItem::paint_mid(QPainter &p, const ViewItemPaintParams &pp)
+{
+ (void)p;
+ (void)pp;
+}
+
+void ViewItem::paint_fore(QPainter &p, const ViewItemPaintParams &pp)
+{
+ (void)p;
+ (void)pp;
+}
+
QColor ViewItem::select_text_colour(QColor background)
{
return (background.lightness() > 64) ? Qt::black : Qt::white;
#include <QPen>
+#include "viewitempaintparams.hpp"
+
class QAction;
class QMenu;
class QWidget;
*/
virtual QRectF label_rect(const QRectF &rect) const = 0;
+ /**
+ * Paints the background layer of the item with a QPainter
+ * @param p the QPainter to paint into.
+ * @param pp the painting parameters object to paint with.
+ **/
+ virtual void paint_back(QPainter &p, const ViewItemPaintParams &pp);
+
+ /**
+ * Paints the mid-layer of the item with a QPainter
+ * @param p the QPainter to paint into.
+ * @param pp the painting parameters object to paint with.
+ **/
+ virtual void paint_mid(QPainter &p, const ViewItemPaintParams &pp);
+
+ /**
+ * Paints the foreground layer of the item with a QPainter
+ * @param p the QPainter to paint into.
+ * @param pp the painting parameters object to paint with.
+ **/
+ virtual void paint_fore(QPainter &p, const ViewItemPaintParams &pp);
+
public:
/**
* Gets the text colour.