summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-11-04 11:37:46 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2018-11-04 11:43:13 (GMT)
commit76fb9f08873a6808bd4d07d327549b7441b7758d (patch)
tree3981458457dc44da0054085bfb98e6a6be242968
parent4dcfd6496e0e93f80c12dcc87fd5786456d3aae3 (diff)
downloadkdirstat-76fb9f08.zip
kdirstat-76fb9f08.tar.gz
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>
-rw-r--r--CMakeLists.txt2
-rw-r--r--kdirstat/kdirtreeiterators.cpp2
-rw-r--r--kdirstat/kdirtreeiterators.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 893131b..6eb345f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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" )
diff --git a/kdirstat/kdirtreeiterators.cpp b/kdirstat/kdirtreeiterators.cpp
index fb70446..0ede37d 100644
--- a/kdirstat/kdirtreeiterators.cpp
+++ b/kdirstat/kdirtreeiterators.cpp
@@ -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;
diff --git a/kdirstat/kdirtreeiterators.h b/kdirstat/kdirtreeiterators.h
index f7a3ae8..f211e2f 100644
--- a/kdirstat/kdirtreeiterators.h
+++ b/kdirstat/kdirtreeiterators.h
@@ -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;