Commit 52915b7a authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

use std::numeric_limits instead of posix defines

the latter isn't portable for windows. also kinda 1980's
parent 43937ee5
......@@ -20,7 +20,7 @@
#include <QFontDatabase>
#include <math.h>
#include <limits.h>
#include <limits>
ProgressBox::ProgressBox(QWidget *parent, Filelight::MainWindow *mainWindow, Filelight::ScanManager *scanManager)
: QWidget(parent)
......@@ -32,7 +32,7 @@ ProgressBox::ProgressBox(QWidget *parent, Filelight::MainWindow *mainWindow, Fil
setObjectName(QStringLiteral( "ProgressBox" ));
setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
setText(std::numeric_limits<int>::max(), std::numeric_limits<size_t>::max());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
const int textSize = qMax(m_textWidth + LABEL_TEXT_HMARGIN, m_textHeight + LABEL_TEXT_VMARGIN);
Supports Markdown
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