[Tux4kids-commits] r1450 - in tux4kids-admin/trunk: libtux4kidsadmin libtux4kidsadmin_tuxmath libtux4kidsadmin_tuxtype tux4kids-admin/plugins/tuxtypePlugin
Michał Świtakowski
swistakers-guest at alioth.debian.org
Sun Aug 16 20:09:33 UTC 2009
Author: swistakers-guest
Date: 2009-08-16 20:09:33 +0000 (Sun, 16 Aug 2009)
New Revision: 1450
Modified:
tux4kids-admin/trunk/libtux4kidsadmin/schoolData.cpp
tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/profileDirTuxmathRegister.cpp
tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtypeRegister.cpp
tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.cpp
Log:
fixed various bugs
Modified: tux4kids-admin/trunk/libtux4kidsadmin/schoolData.cpp
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin/schoolData.cpp 2009-08-16 20:04:34 UTC (rev 1449)
+++ tux4kids-admin/trunk/libtux4kidsadmin/schoolData.cpp 2009-08-16 20:09:33 UTC (rev 1450)
@@ -65,7 +65,7 @@
{
QString baseName = "student_";
int number = 1;
- while(mainDir.exists(baseName + QString::number(number)))
+ while(studentsDir.exists(baseName + QString::number(number)))
++number;
return baseName + QString::number(number);
Modified: tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/profileDirTuxmathRegister.cpp
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/profileDirTuxmathRegister.cpp 2009-08-16 20:04:34 UTC (rev 1449)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/profileDirTuxmathRegister.cpp 2009-08-16 20:09:33 UTC (rev 1450)
@@ -1,13 +1,15 @@
#include "profileDirFactory.h"
#include "profileDirTuxmath.h"
+#include "libtux4kidsadmin_tuxmath_global.h"
#include <QDebug>
-class ProfileDirTuxmathRegister
+class LIBTUX4KIDSADMIN_TUXMATH_SHARED_EXPORT ProfileDirTuxmathRegister
{
public:
ProfileDirTuxmathRegister()
{
+ qDebug() << "tuxmath register";
ProfileDirFactory::instance().registerType<ProfileDirTuxmath>("tuxmath");
}
@@ -17,4 +19,4 @@
}
};
-static const ProfileDirTuxmathRegister reg;
+static const ProfileDirTuxmathRegister regTuxmath;
Modified: tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtypeRegister.cpp
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtypeRegister.cpp 2009-08-16 20:04:34 UTC (rev 1449)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtypeRegister.cpp 2009-08-16 20:09:33 UTC (rev 1450)
@@ -1,13 +1,15 @@
#include "profileDirFactory.h"
#include "profileDirTuxtype.h"
+#include "libtux4kidsadmin_tuxtype_global.h"
#include <QDebug>
-class ProfileDirTuxtypeRegister
+class LIBTUX4KIDSADMIN_TUXTYPE_SHARED_EXPORT ProfileDirTuxtypeRegister
{
public:
ProfileDirTuxtypeRegister()
{
+ qDebug() << "tuxtype register";
ProfileDirFactory::instance().registerType<ProfileDirTuxtype>("tuxtype");
}
@@ -17,4 +19,4 @@
}
};
-static const ProfileDirTuxtypeRegister reg;
+static const ProfileDirTuxtypeRegister regTuxtype;
Modified: tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.cpp
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.cpp 2009-08-16 20:04:34 UTC (rev 1449)
+++ tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.cpp 2009-08-16 20:09:33 UTC (rev 1450)
@@ -5,6 +5,7 @@
TuxtypePlugin::TuxtypePlugin(QObject *parent) : QObject(parent)
{
+
qDebug() << "tux type plugin constructed";
}
More information about the Tux4kids-commits
mailing list