Lines Matching +defs:code +defs:key
74 const char * PREF_KEY( "pref-key" );
177 foreach( int key, initKeys )
178 refreshPref( key );
228 Details :: refreshPref( int key )
232 switch( key )
238 myTrackerDelegate->setShowMore( myPrefs.getBool( key ) );
247 myTrackerFilter->setShowBackupTrackers( myPrefs.getBool( key ) );
768 const QString key = idStr + ":" + peer.address;
769 PeerItem * item = (PeerItem*) myPeers.value( key, 0 );
786 const QString code = peer.flagStr;
787 item->setStatus( code );
791 foreach( QChar ch, code ) {
817 item->setText( COL_STATUS, code );
820 peers2.insert( key, item );
824 foreach( QString key, myPeers.keys() ) {
825 if( !peers2.contains( key ) ) { // old peer has disconnected
826 QTreeWidgetItem * item = myPeers.value( key, 0 );
922 const QString key = spin->property( PREF_KEY ).toString( );
925 mySession.torrentSet( myIds, key, d->value( ) );
927 mySession.torrentSet( myIds, key, qobject_cast<const QSpinBox*>(spin)->value( ) );
1317 QString key;
1319 case TR_PRI_LOW: key = "priority-low"; break;
1320 case TR_PRI_HIGH: key = "priority-high"; break;
1321 default: key = "priority-normal"; break;
1323 mySession.torrentSet( myIds, key, indices.toList( ) );
1330 QString key( wanted ? "files-wanted" : "files-unwanted" );
1331 mySession.torrentSet( myIds, key, indices.toList( ) );