summaryrefslogtreecommitdiffstats
path: root/pokemod/Object.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-08-02 18:49:43 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-08-02 18:49:43 +0000
commit63417b1c5057d22bd853e92cd3a25aa812b8d917 (patch)
treeaf1651766457c28d90b7b710be61048c0b0b034b /pokemod/Object.cpp
parent9fea55f75252462c1efbc90372ace45092fe6aca (diff)
downloadsigen-63417b1c5057d22bd853e92cd3a25aa812b8d917.tar.gz
sigen-63417b1c5057d22bd853e92cd3a25aa812b8d917.tar.xz
sigen-63417b1c5057d22bd853e92cd3a25aa812b8d917.zip
[ADD] Added XMLGUI file for pokemodr
[FIX] Pokemodr is now a KXmlGuiWindow (working on KatePart fixes) [FIX] Started Doxygen stuff [FIX] Object names of Pokemod classes are now determined using metaObject [FIX] Updated to use KDE 4.1 git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@232 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Object.cpp')
-rw-r--r--pokemod/Object.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/pokemod/Object.cpp b/pokemod/Object.cpp
index 6cd96e19..7568d540 100644
--- a/pokemod/Object.cpp
+++ b/pokemod/Object.cpp
@@ -24,15 +24,13 @@
Pokemod::Object::Object(const Object& object) :
QObject(NULL),
m_id(object.id()),
- m_className(object.className()),
m_parent(object.parent())
{
}
-Pokemod::Object::Object(const QString& className, const Object* parent, const int id) :
+Pokemod::Object::Object(const Object* parent, const int id) :
QObject(NULL),
m_id(id),
- m_className(className),
m_parent(parent)
{
}
@@ -54,14 +52,14 @@ int Pokemod::Object::id() const
return m_id;
}
-QString Pokemod::Object::className() const
+void Pokemod::Object::setId(const int id)
{
- return m_className;
+ CHECK(id);
}
-void Pokemod::Object::setId(const int id)
+QString Pokemod::Object::className() const
{
- CHECK(id);
+ return QString(metaObject()->className()).section(':', -1);
}
QString Pokemod::Object::unused(const QString& variable)