Removed use of deprecated Qt APIs.
This commit is contained in:
@@ -10,6 +10,7 @@ endif ()
|
||||
|
||||
# Uncomment to build with pedantic flags
|
||||
#add_compile_options (-Werror -Wall -Wpedantic)
|
||||
#add_definitions (-DQT_DISABLE_DEPRECATED_BEFORE=0x050400)
|
||||
|
||||
if (${GNUBARCODE_FOUND})
|
||||
add_definitions (-DHAVE_GNU_BARCODE=1)
|
||||
|
||||
+3
-1
@@ -31,6 +31,8 @@
|
||||
#include <QtDebug>
|
||||
#include <QtGlobal>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
namespace glabels
|
||||
{
|
||||
@@ -668,7 +670,7 @@ namespace glabels
|
||||
|
||||
// TODO: Read user directories
|
||||
|
||||
qStableSort( mTemplates.begin(), mTemplates.end(), partNameLessThan );
|
||||
std::stable_sort( mTemplates.begin(), mTemplates.end(), partNameLessThan );
|
||||
}
|
||||
|
||||
|
||||
|
||||
+3
-1
@@ -22,6 +22,8 @@
|
||||
|
||||
#include "Markup.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
namespace glabels
|
||||
{
|
||||
@@ -96,7 +98,7 @@ namespace glabels
|
||||
}
|
||||
}
|
||||
|
||||
qStableSort( origins.begin(), origins.end() );
|
||||
std::stable_sort( origins.begin(), origins.end() );
|
||||
|
||||
return origins;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user