summaryrefslogtreecommitdiffstats
path: root/libksirtet/base/highscores.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libksirtet/base/highscores.cpp')
-rw-r--r--libksirtet/base/highscores.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/libksirtet/base/highscores.cpp b/libksirtet/base/highscores.cpp
new file mode 100644
index 00000000..2b3596d7
--- /dev/null
+++ b/libksirtet/base/highscores.cpp
@@ -0,0 +1,19 @@
+#include "highscores.h"
+
+#include <kurl.h>
+
+#include "factory.h"
+
+
+using namespace KExtHighscore;
+
+BaseHighscores::BaseHighscores()
+{
+ setWWHighscores(KURL( bfactory->mainData.homepage ), bfactory->mainData.version);
+ const BaseBoardInfo &bi = bfactory->bbi;
+ if ( bi.histogramSize!=0 ) {
+ QMemArray<uint> a;
+ a.duplicate(bi.histogram, bi.histogramSize);
+ setScoreHistogram(a, bi.scoreBound ? ScoreBound : ScoreNotBound);
+ }
+}