Removed obsolete TQCollection and replaced with TQPtrCollection.

The definition of -UTQT_NO_COMPAT is no longer needed.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 6 years ago
parent 4dcfd6496e
commit 76fb9f0887
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -58,7 +58,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings
add_definitions( -DHAVE_CONFIG_H -UTQT_NO_COMPAT -UTQT_NO_ASCII_CAST )
add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )

@ -380,7 +380,7 @@ KFileInfoList::sumTotalSizes()
int
KFileInfoList::compareItems( TQCollection::Item it1, TQCollection::Item it2 )
KFileInfoList::compareItems( TQPtrCollection::Item it1, TQPtrCollection::Item it2 )
{
if ( it1 == it2 )
return 0;

@ -349,7 +349,7 @@ namespace KDirStat
/**
* Comparison function. This is why this class is needed at all.
**/
virtual int compareItems( TQCollection::Item it1, TQCollection::Item it2 );
virtual int compareItems( TQPtrCollection::Item it1, TQPtrCollection::Item it2 );
KFileInfoSortOrder _sortOrder;
bool _ascending;

Loading…
Cancel
Save