/* * This file Copyright (C) 2009-2015 Mnemosyne LLC * * It may be used under the GNU GPL versions 2 or 3 * or any future license endorsed by Mnemosyne LLC. * * $Id$ */ #include "Filters.h" const QString FilterMode::names[NUM_MODES] = { QLatin1String ("show-all"), QLatin1String ("show-active"), QLatin1String ("show-downloading"), QLatin1String ("show-seeding"), QLatin1String ("show-paused"), QLatin1String ("show-finished"), QLatin1String ("show-verifying"), QLatin1String ("show-error") }; int FilterMode::modeFromName (const QString& name) { for (int i=0; i