summaryrefslogtreecommitdiffstats
path: root/libkonq/konq_string_compare.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkonq/konq_string_compare.h')
-rw-r--r--libkonq/konq_string_compare.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/libkonq/konq_string_compare.h b/libkonq/konq_string_compare.h
index 0c1e6bde0..8d17d409f 100644
--- a/libkonq/konq_string_compare.h
+++ b/libkonq/konq_string_compare.h
@@ -48,47 +48,4 @@ static inline int stringCompare(
}
}
-/*
-
-The above function implements a string comparison function whose operation varies
-depending on the "sortorder" the caller specifies. Calls are to it is intended to
-(eventually) replace code in the following konqueror view-specific comparison
-functions that are called many times when sorting:
-
-* konqueror/listview/konq_listviewitems.cpp: KonqBaseListViewItem::compare()
- Replaces the following code at end of function:
-
- if ( m_pListViewWidget->caseInsensitiveSort() )
- return text( col ).lower().localeAwareCompare( k->text( col ).lower() );
- else {
- return m_pListViewWidget->m_pSettings->caseSensitiveCompare( text( col ), k->text( col ) );
-
- Note that the stringCompare function does NOT utilize TQT localeAwareCompare
- with lower() function because of subtle but undesirable side effects for the
- en_US locale and possibly other locales. For example: while 'a' will sort
- just before 'A', 'ā' will sort just AFTER 'Ā'.
-
-* libkonq/tdefileivi.cpp: KFileIVI::compare()
- Replaces the following code at end of function:
-
- if ( view->caseInsensitiveSort() )
- return key().localeAwareCompare( i->key() );
- else
- return view->m_pSettings->caseSensitiveCompare( key(), i->key() );
-
- Notice that unlike the listview function referenced above, this function does
- NOT use lower() in calls to localeAwareCompare() for caseInsensitveSort.
-
-* libkonq/konq_settings.cpp: KonqFMSettingsPrivate::localeAwareCompareIsCaseSensitive
- libkonq/konq_settings.cpp: KonqFMSettings::caseSensitiveCompare()
-
- Obsoletes struct variable and function using it, thereby addressing issue 252.
-
-The last 2 groups of code will need to remain in place until iconview is
-retrofitted with user interface and code to bring it up to par with listview.
-
-Please leave this comment in this header until above changes have been made.
-
-*/
-
#endif // KONQ_STRING_COMPARE_H