Show
Ignore:
Timestamp:
04/17/08 03:04:12 (8 months ago)
Author:
flynd
Message:

Added option to hide phone statuses from extended icons without hiding other icons.

Location:
trunk/qt4-gui/src/config
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/config/contactlist.cpp

    r6126 r6156  
    5959  iniFile.ReadNum("TVGroupStates", myGroupStates, 0xFFFFFFFE); 
    6060  iniFile.ReadBool("ShowExtIcons", myShowExtendedIcons, true); 
     61  iniFile.ReadBool("ShowPhoneIcons", myShowPhoneIcons, true); 
    6162  iniFile.ReadBool("ShowUserIcons", myShowUserIcons, true); 
    6263  iniFile.ReadBool("ScrollBar", myAllowScrollBar, true); 
     
    122123  iniFile.WriteNum("TVGroupStates", myGroupStates); 
    123124  iniFile.WriteBool("ShowExtIcons", myShowExtendedIcons); 
     125  iniFile.WriteBool("ShowPhoneIcons", myShowPhoneIcons); 
    124126  iniFile.WriteBool("ShowUserIcons", myShowUserIcons); 
    125127  iniFile.WriteNum("Flash", static_cast<unsigned short>(myFlash)); 
     
    259261} 
    260262 
     263void Config::ContactList::setShowPhoneIcons(bool showPhoneIcons) 
     264{ 
     265  if (showPhoneIcons == myShowPhoneIcons) 
     266    return; 
     267 
     268  myShowPhoneIcons = showPhoneIcons; 
     269 
     270  changeListLook(); 
     271} 
     272 
    261273void Config::ContactList::setShowUserIcons(bool showUserIcons) 
    262274{ 
  • trunk/qt4-gui/src/config/contactlist.h

    r5885 r6156  
    105105  bool sortColumnAscending() const { return mySortColumnAscending; } 
    106106  bool showExtendedIcons() const { return myShowExtendedIcons; } 
     107  bool showPhoneIcons() const { return myShowPhoneIcons; } 
    107108  bool showUserIcons() const { return myShowUserIcons; } 
    108109  FlashMode flash() const { return myFlash; } 
     
    154155  void setGroupState(unsigned short group, bool expanded); 
    155156  void setShowExtendedIcons(bool showExtendedIcons); 
     157  void setShowPhoneIcons(bool showPhoneIcons); 
    156158  void setShowUserIcons(bool showUserIcons); 
    157159  void setFlash(FlashMode flash); 
     
    233235  bool myShowDividers; 
    234236  bool myShowExtendedIcons; 
     237  bool myShowPhoneIcons; 
    235238  bool myShowUserIcons; 
    236239  FlashMode myFlash;