~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to okteta/kasten/controllers/view/structures/datatypes/uniondatainformation.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-06 11:49:54 UTC
  • mfrom: (0.4.21)
  • Revision ID: package-import@ubuntu.com-20120606114954-rdls73fzlpzxglbx
Tags: 4:4.8.80-0ubuntu1
* New uptream beta release
* Update dont_export_private_classes.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "uniondatainformation.h"
23
23
#include "topleveldatainformation.h"
24
24
 
 
25
#include <KLocale>
 
26
 
25
27
QString UnionDataInformation::typeName() const
26
28
{
27
29
    return i18nc("data type in C/C++, then name", "union %1", name());
68
70
    return readBits;
69
71
}
70
72
 
71
 
void UnionDataInformation::addDataTypeToUnion(DataInformation* field)
72
 
{
73
 
    appendChild(field);
74
 
}
75
 
 
76
73
UnionDataInformation::~UnionDataInformation()
77
74
{
78
75
}
79
76
 
80
 
UnionDataInformation::UnionDataInformation(QString name, DataInformation* parent) :
81
 
    DataInformationWithChildren(name, parent)
82
 
{
83
 
}
84
 
 
85
 
UnionDataInformation::UnionDataInformation(const UnionDataInformation& d) :
86
 
    DataInformationWithChildren(d)
 
77
UnionDataInformation::UnionDataInformation(const QString& name, const QVector<DataInformation*>& children,
 
78
        DataInformation* parent)
 
79
        : DataInformationWithChildren(name, children, parent)
 
80
{
 
81
}
 
82
 
 
83
UnionDataInformation::UnionDataInformation(const QString& name, DataInformation* parent)
 
84
        : DataInformationWithChildren(name, QVector<DataInformation*>(), parent)
 
85
{
 
86
}
 
87
 
 
88
UnionDataInformation::UnionDataInformation(const UnionDataInformation& d)
 
89
        : DataInformationWithChildren(d)
87
90
{
88
91
}