summaryrefslogtreecommitdiffstats
path: root/kbounce/highscores.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbounce/highscores.cpp')
-rw-r--r--kbounce/highscores.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/kbounce/highscores.cpp b/kbounce/highscores.cpp
new file mode 100644
index 00000000..fec2d1e6
--- /dev/null
+++ b/kbounce/highscores.cpp
@@ -0,0 +1,18 @@
+#include "highscores.h"
+
+#include <klocale.h>
+
+using namespace KExtHighscore;
+
+ExtManager::ExtManager()
+{
+ Item *item = new Item((uint)0, i18n("Level"), Qt::AlignRight);
+ addScoreItem("level", item);
+}
+
+bool ExtManager::isStrictlyLess(const Score &s1, const Score &s2) const
+{
+ if ( s1.score()==s2.score() )
+ return s1.data("level").toUInt()>s2.data("level").toUInt();
+ return Manager::isStrictlyLess(s1, s2);
+}