Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Filelight
Commits
52915b7a
Commit
52915b7a
authored
Mar 29, 2021
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/progressBox.cpp
View file @
52915b7a
...
...
@@ -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
(
INT_MAX
,
SSIZE_MAX
);
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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment