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