summaryrefslogtreecommitdiffstats
path: root/libksirtet/base/highscores.cpp
blob: 2b3596d708af11093a5167453887c8d8df178b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
    }
}