Changeset 13683 for trunk/qt/prefs.h


Ignore:
Timestamp:
Dec 22, 2012, 8:35:19 PM (10 years ago)
Author:
jordan
Message:

(trunk, libT) first drop of the tr_quark patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/prefs.h

    r13667 r13683  
    2121
    2222#include "filters.h"
     23
     24#include <libtransmission/quark.h>
    2325
    2426extern "C"
     
    133135        struct PrefItem {
    134136            int id;
    135             const char * key;
     137            tr_quark key;
    136138            int type;
    137139        };
     
    148150        bool isCore( int key ) const { return FIRST_CORE_PREF<=key && key<=LAST_CORE_PREF; }
    149151        bool isClient( int key ) const { return !isCore( key ); }
    150         const char * keyStr( int i ) const { return myItems[i].key; }
     152        const char * keyStr( int i ) const { return tr_quark_get_string(myItems[i].key,NULL); }
     153        tr_quark getKey (int i) const { return myItems[i].key; }
    151154        int type( int i ) const { return myItems[i].type; }
    152155        const QVariant& variant( int i ) const { return myValues[i]; }
Note: See TracChangeset for help on using the changeset viewer.