Show
Ignore:
Timestamp:
06/11/08 08:21:55 (7 months ago)
Author:
eugene
Message:

Applied the latest version of flynd's qt-gui patch.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/qt-gui_group/src/userbox.cpp

    r6113 r6258  
    134134} 
    135135 
    136 CUserViewItem::CUserViewItem(unsigned short Id, const char* name, QListView* lv) 
     136CUserViewItem::CUserViewItem(unsigned short Id, const char* name, unsigned short sortKey, QListView* lv) 
    137137  : QListViewItem(lv), 
    138138    m_nGroupId(Id), 
     
    158158  m_bNotInList = true; 
    159159  m_pUserIcon = 0; 
    160   // Other users group is sorted at the end 
    161   if (m_nGroupId) 
    162   { 
    163     QString strTemp = QString("%1").arg((int)m_nGroupId); 
    164     while (strTemp.length() < 10) 
    165       strTemp = "0" + strTemp; 
    166     m_sSortKey = strTemp; 
    167   } 
    168   else 
    169     m_sSortKey = QString("9999999999"); 
     160 
     161  QString strTemp = QString("%1").arg((int)sortKey); 
     162  while (strTemp.length() < 10) 
     163    strTemp = "0" + strTemp; 
     164  m_sSortKey = strTemp; 
     165 
    170166  m_sPrefix = "1"; 
    171167  setPixmap(0, gMainWindow->pmCollapsed); 
    172168  setText(1, QString::fromLocal8Bit(name)); 
    173  
    174169} 
    175170