Browse Source

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 11 months ago
parent
commit
76fb9f0887
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      CMakeLists.txt
  2. 1
    1
      kdirstat/kdirtreeiterators.cpp
  3. 1
    1
      kdirstat/kdirtreeiterators.h

+ 1
- 1
CMakeLists.txt View File

@@ -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" )

+ 1
- 1
kdirstat/kdirtreeiterators.cpp View File

@@ -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;

+ 1
- 1
kdirstat/kdirtreeiterators.h View File

@@ -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