comparison src/changesetitem.h @ 678:c0b46d0514a7 scale

Incomplete scaling updates. Should do this differently
author Chris Cannam
date Thu, 06 Dec 2018 14:55:45 +0000
parents ae67ea0af696
children
comparison
equal deleted inserted replaced
677:0329bbd4b57c 678:c0b46d0514a7
19 #define CHANGESETITEM_H 19 #define CHANGESETITEM_H
20 20
21 #include <QGraphicsObject> 21 #include <QGraphicsObject>
22 #include <QFont> 22 #include <QFont>
23 23
24 #include "common.h"
25
24 class Changeset; 26 class Changeset;
25 class ChangesetDetailItem; 27 class ChangesetDetailItem;
26 28
27 class QAction; 29 class QAction;
28 class QImage; 30 class QImage;
41 Changeset *getChangeset() { return m_changeset; } 43 Changeset *getChangeset() { return m_changeset; }
42 QString getId(); 44 QString getId();
43 45
44 int column() const { return m_column; } 46 int column() const { return m_column; }
45 int row() const { return m_row; } 47 int row() const { return m_row; }
46 void setColumn(int c) { m_column = c; setX(c * 100); } 48 void setColumn(int c) { m_column = c; setX(c * scalePixelSize(100)); }
47 void setRow(int r) { m_row = r; setY(r * 90); } 49 void setRow(int r) { m_row = r; setY(r * scalePixelSize(90)); }
48 50
49 bool isWide() const { return m_wide; } 51 bool isWide() const { return m_wide; }
50 void setWide(bool w) { m_wide = w; } 52 void setWide(bool w) { m_wide = w; }
51 53
52 bool isCurrent() const { return m_current; } 54 bool isCurrent() const { return m_current; }