11 #include "AbstractImageItem.h"
19 #include "ControlNet.h"
23 AbstractImageItem::AbstractImageItem(QString imageSerial, ControlNet *net,
24 int avgCharWidth, AbstractTreeItem *parent)
25 : AbstractTreeItem(parent) {
27 calcDataWidth(avgCharWidth);
31 AbstractImageItem::~AbstractImageItem() {
39 QVariant AbstractImageItem::getData()
const {
41 return QVariant(m_imageAndNet->first);
47 QVariant AbstractImageItem::getData(QString columnTitle)
const {
52 void AbstractImageItem::setData(QString
const &columnTitle,
53 QString
const &newData) {
57 bool AbstractImageItem::isDataEditable(QString columnTitle)
const {
62 void AbstractImageItem::deleteSource() { }
65 AbstractTreeItem::InternalPointerType AbstractImageItem::getPointerType()
const {
66 return AbstractTreeItem::ImageAndNet;
70 void *AbstractImageItem::getPointer()
const {
75 bool AbstractImageItem::hasImage(QString imageSerial)
const {
79 return (QString::compare(m_imageAndNet->first, imageSerial) == 0) ||
80 AbstractTreeItem::hasImage(imageSerial);