Changeset 3525
- Timestamp:
- 05/25/03 23:44:26 (5 years ago)
- Location:
- trunk/qt-gui/src
- Files:
-
- 4 modified
-
mainwin.cpp (modified) (2 diffs)
-
mainwin.h (modified) (2 diffs)
-
userbox.cpp (modified) (3 diffs)
-
userbox.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/mainwin.cpp
r3510 r3525 342 342 licqConf.ReadBool("ShowDividers", m_bShowDividers, true); 343 343 licqConf.ReadNum("SortByStatus", m_nSortByStatus, 1); 344 licqConf.ReadNum("SortColumn", m_nSortColumn, 0); 345 licqConf.ReadBool("SortColumnAscending", m_bSortColumnAscending, true); 344 346 licqConf.ReadBool("ShowGroupIfNoMsg", m_bShowGroupIfNoMsg, true); 345 347 licqConf.ReadBool("BoldOnMsg", m_bBoldOnMsg, true); … … 3008 3010 licqConf.WriteBool("ShowDividers", m_bShowDividers); 3009 3011 licqConf.WriteNum("SortByStatus", m_nSortByStatus); 3012 licqConf.WriteNum("SortColumn", m_nSortColumn); 3013 licqConf.WriteBool("SortColumnAscending", m_bSortColumnAscending); 3010 3014 licqConf.WriteBool("ShowGroupIfNoMsg", m_bShowGroupIfNoMsg); 3011 3015 licqConf.WriteBool("UseThreadView", m_bThreadView); -
trunk/qt-gui/src/mainwin.h
r3462 r3525 135 135 m_bPopIdleTime, 136 136 m_bShowAllEncodings, 137 m_bTabbedChatting; 137 m_bTabbedChatting, 138 m_bSortColumnAscending; 138 139 139 140 QString m_MsgAutopopupKey; … … 145 146 146 147 unsigned long m_nCurrentGroup, m_nGroupStates; 147 unsigned short m_nSortByStatus; 148 unsigned short m_nSortByStatus, 149 m_nSortColumn; 148 150 GroupType m_nGroupType; 149 151 QString usprintfHelp; -
trunk/qt-gui/src/userbox.cpp
r3449 r3525 795 795 return (m_sPrefix + m_sSortKey + text(1).lower()); 796 796 else 797 return (QListViewItem::key(column, ascending).lower());797 return (m_sPrefix + QListViewItem::key(column, ascending).lower()); 798 798 } 799 799 … … 835 835 setAllColumnsShowFocus(true); 836 836 setTreeStepSize(0); 837 setSorting( 0);837 setSorting(gMainWindow->m_nSortColumn, gMainWindow->m_bSortColumnAscending); 838 838 setVScrollBarMode(gMainWindow->m_bScrollBar ? Auto : AlwaysOff); 839 839 … … 1584 1584 } 1585 1585 } 1586 1587 void CUserView::setSorting( int column, bool ascending) 1588 { 1589 gMainWindow->m_nSortColumn = column; 1590 gMainWindow->m_bSortColumnAscending = ascending; 1591 QListView::setSorting( column, ascending ); 1592 } -
trunk/qt-gui/src/userbox.h
r3449 r3525 149 149 #endif 150 150 static void UpdateFloaties(); 151 virtual void setSorting( int column, bool ascending = true); 151 152 152 153 protected:
