Commit 36e24e79 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We depend against qt5.15

parent 6a0c6913
...@@ -25,11 +25,7 @@ static QString toHex(It it, It end) ...@@ -25,11 +25,7 @@ static QString toHex(It it, It end)
QTextStream ts(&text); QTextStream ts(&text);
ts << ts <<
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
hex
#else
Qt::hex Qt::hex
#endif
<< qSetFieldWidth(2) << qSetPadChar(QLatin1Char('0')); << qSetFieldWidth(2) << qSetPadChar(QLatin1Char('0'));
while (it < end) { while (it < end) {
...@@ -77,11 +73,7 @@ void KWHexView::showData() ...@@ -77,11 +73,7 @@ void KWHexView::showData()
QString text; QString text;
QTextStream ts(&text); QTextStream ts(&text);
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
ts << left;
#else
ts << Qt::left; ts << Qt::left;
#endif
const auto stride = calculateStride(); const auto stride = calculateStride();
const auto hexwidth = stride * 2 + (stride / hexStride) + 1; const auto hexwidth = stride * 2 + (stride / hexStride) + 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment