Changeset 6258 for branches/qt-gui_group/src/userbox.cpp
- Timestamp:
- 06/11/08 08:21:55 (7 months ago)
- Files:
-
- 1 modified
-
branches/qt-gui_group/src/userbox.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt-gui_group/src/userbox.cpp
r6113 r6258 134 134 } 135 135 136 CUserViewItem::CUserViewItem(unsigned short Id, const char* name, QListView* lv)136 CUserViewItem::CUserViewItem(unsigned short Id, const char* name, unsigned short sortKey, QListView* lv) 137 137 : QListViewItem(lv), 138 138 m_nGroupId(Id), … … 158 158 m_bNotInList = true; 159 159 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 170 166 m_sPrefix = "1"; 171 167 setPixmap(0, gMainWindow->pmCollapsed); 172 168 setText(1, QString::fromLocal8Bit(name)); 173 174 169 } 175 170
