Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
KolourPaint
Commits
a58d261b
Commit
a58d261b
authored
Dec 26, 2020
by
Friedrich W. H. Kossebau
Browse files
Use more nullptr
parent
ddf2c4fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
scan/sanedialog.h
View file @
a58d261b
...
...
@@ -35,7 +35,7 @@ class SaneDialog : public KPageDialog
Q_OBJECT
public:
explicit
SaneDialog
(
QWidget
*
parent
=
0
);
explicit
SaneDialog
(
QWidget
*
parent
=
nullptr
);
~
SaneDialog
();
bool
setup
();
...
...
tools/selection/text/kpToolText_CursorCalc.cpp
View file @
a58d261b
...
...
@@ -140,7 +140,7 @@ int kpToolText::MoveCursorToWordStart (const QList <QString> &textLines,
#define IS_ON_ANCHOR() \
(CursorIsOnWordChar (textLines, *cursorRow, *cursorCol) && \
(cursorCol ==
0 ||
\
(cursorCol ==
nullptr ||
\
!CursorIsOnWordChar (textLines, *cursorRow, *cursorCol - 1)))
#define MOVE_CURSOR_LEFT() \
(MoveCursorLeft (textLines, cursorRow, cursorCol), ++numMoves)
...
...
widgets/imagelib/effects/kpNumInput.h
View file @
a58d261b
...
...
@@ -46,7 +46,7 @@ public:
* window. If parent is another widget, this widget becomes a child
* window inside parent. The new widget is deleted when its parent is deleted.
*/
explicit
kpNumInput
(
QWidget
*
parent
=
0
);
explicit
kpNumInput
(
QWidget
*
parent
=
nullptr
);
/**
* Destructor
...
...
@@ -162,7 +162,7 @@ public:
* Constructs an input control for integer values
* with initial value 0.
*/
explicit
kpIntNumInput
(
QWidget
*
parent
=
0
);
explicit
kpIntNumInput
(
QWidget
*
parent
=
nullptr
);
/**
* Constructor
* It constructs a QSpinBox that allows the input of integer numbers
...
...
@@ -173,7 +173,7 @@ public:
* @param value initial value for the control
* @param parent parent QWidget
*/
explicit
kpIntNumInput
(
int
value
,
QWidget
*
parent
=
0
);
explicit
kpIntNumInput
(
int
value
,
QWidget
*
parent
=
nullptr
);
/**
* Destructor
...
...
@@ -350,7 +350,7 @@ public:
* Constructs an input control for double values
* with initial value 0.00.
*/
explicit
kpDoubleNumInput
(
QWidget
*
parent
=
0
);
explicit
kpDoubleNumInput
(
QWidget
*
parent
=
nullptr
);
/**
* Constructor
...
...
@@ -362,7 +362,7 @@ public:
* @param precision number of digits after the decimal point
* @param parent parent QWidget
*/
kpDoubleNumInput
(
double
lower
,
double
upper
,
double
value
,
QWidget
*
parent
=
0
,
double
singleStep
=
0.01
,
kpDoubleNumInput
(
double
lower
,
double
upper
,
double
value
,
QWidget
*
parent
=
nullptr
,
double
singleStep
=
0.01
,
int
precision
=
2
);
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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