summaryrefslogtreecommitdiffstats
path: root/kbounce/highscores.cpp
blob: 5dc3bf47def4792d2f1c92d9f44fa73f4689966d (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"), TQt::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);
}