9#include "AbstractNullDataItem.h"
14#include "IException.h"
19 AbstractNullDataItem::AbstractNullDataItem(AbstractTreeItem *parent)
20 : AbstractTreeItem(parent) {
24 AbstractNullDataItem::~AbstractNullDataItem() {
28 QVariant AbstractNullDataItem::getData()
const {
33 QVariant AbstractNullDataItem::getData(QString columnTitle)
const {
38 void AbstractNullDataItem::setData(QString
const &columnTitle, QString
const &newData) {
39 IString msg =
"Cannot set data on an AbstractNullDataItem";
40 throw IException(IException::Programmer, msg, _FILEINFO_);
44 bool AbstractNullDataItem::isDataEditable(QString columnTitle)
const {
49 void AbstractNullDataItem::deleteSource() {
50 IString msg =
"deleteSource called on an AbstractNullDataItem";
51 throw IException(IException::Programmer, msg, _FILEINFO_);
55 AbstractTreeItem::InternalPointerType AbstractNullDataItem::getPointerType()
const {
56 return AbstractTreeItem::None;
60 void *AbstractNullDataItem::getPointer()
const {
65 bool AbstractNullDataItem::operator<(AbstractTreeItem
const &other)
const {
66 IString msg =
"operator<() called on an AbstractNullDataItem";
67 throw IException(IException::Programmer, msg, _FILEINFO_);
71 void AbstractNullDataItem::sourceDeleted() {
This is free and unencumbered software released into the public domain.