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 6 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 )
58 58
 
59 59
 ###### global compiler settings
60 60
 
61
-add_definitions( -DHAVE_CONFIG_H -UTQT_NO_COMPAT -UTQT_NO_ASCII_CAST )
61
+add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST )
62 62
 
63 63
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
64 64
 set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )

+ 1
- 1
kdirstat/kdirtreeiterators.cpp View File

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

+ 1
- 1
kdirstat/kdirtreeiterators.h View File

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

Loading…
Cancel
Save