9#include "AbstractLeafItem.h"
11#include "IException.h"
16 AbstractLeafItem::AbstractLeafItem(AbstractTreeItem *parent) :
17 AbstractTreeItem(parent) {
21 AbstractLeafItem::~AbstractLeafItem() {
25 AbstractTreeItem *AbstractLeafItem::childAt(
int row)
const {
26 IString msg =
"childAt() called on an AbstractLeafItem!";
27 throw IException(IException::Programmer, msg, _FILEINFO_);
31 QList< AbstractTreeItem * > AbstractLeafItem::getChildren()
const {
32 IString msg =
"getChildren() called on an AbstractLeafItem!";
33 throw IException(IException::Programmer, msg, _FILEINFO_);
37 int AbstractLeafItem::indexOf(AbstractTreeItem *child)
const {
38 IString msg =
"indexOf() called on an AbstractLeafItem!";
39 throw IException(IException::Programmer, msg, _FILEINFO_);
43 int AbstractLeafItem::childCount()
const {
48 void AbstractLeafItem::addChild(AbstractTreeItem *child) {
49 IString msg =
"addChild() called on an AbstractLeafItem!";
50 throw IException(IException::Programmer, msg, _FILEINFO_);
54 AbstractTreeItem *AbstractLeafItem::getFirstVisibleChild()
const {
59 AbstractTreeItem *AbstractLeafItem::getLastVisibleChild()
const {
64 void AbstractLeafItem::setFirstVisibleChild(AbstractTreeItem *) {
65 IString msg =
"setFirstVisibleChild() called on an AbstractLeafItem!";
66 throw IException(IException::Programmer, msg, _FILEINFO_);
70 void AbstractLeafItem::setLastVisibleChild(AbstractTreeItem *) {
71 IString msg =
"setLastVisibleChild() called on an AbstractLeafItem!";
72 throw IException(IException::Programmer, msg, _FILEINFO_);
This is free and unencumbered software released into the public domain.