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
Konsole
Commits
e79af97c
Commit
e79af97c
authored
Jul 16, 2020
by
Kurt Hindenburg
Browse files
Fix bool implicit conversions
parent
18ef6bc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Filter.cpp
View file @
e79af97c
...
...
@@ -710,7 +710,7 @@ void FileFilter::HotSpot::thumbnailRequested() {
_thumbnailPos
=
QPoint
(
_eventPos
.
x
()
+
100
,
_eventPos
.
y
()
-
settings
->
thumbnailSize
()
/
2
);
const
int
size
=
KonsoleSettings
::
thumbnailSize
();
if
(
_previewJob
)
{
if
(
_previewJob
!=
nullptr
)
{
_previewJob
->
deleteLater
();
}
...
...
src/widgets/ViewContainer.cpp
View file @
e79af97c
...
...
@@ -286,8 +286,8 @@ QSize TabbedViewContainer::sizeHint() const
const
auto
tabsSize
=
tabBar
()
->
sizeHint
();
const
auto
*
leftWidget
=
cornerWidget
(
Qt
::
TopLeftCorner
);
const
auto
*
rightWidget
=
cornerWidget
(
Qt
::
TopRightCorner
);
const
auto
leftSize
=
leftWidget
?
leftWidget
->
sizeHint
()
:
QSize
(
0
,
0
);
const
auto
rightSize
=
rightWidget
?
rightWidget
->
sizeHint
()
:
QSize
(
0
,
0
);
const
auto
leftSize
=
leftWidget
!=
nullptr
?
leftWidget
->
sizeHint
()
:
QSize
(
0
,
0
);
const
auto
rightSize
=
rightWidget
!=
nullptr
?
rightWidget
->
sizeHint
()
:
QSize
(
0
,
0
);
auto
tabBarSize
=
QSize
(
0
,
0
);
// isVisible() won't work; this is called when the window is not yet visible
...
...
@@ -296,7 +296,7 @@ QSize TabbedViewContainer::sizeHint() const
tabBarSize
.
setHeight
(
qMax
(
tabsSize
.
height
(),
qMax
(
leftSize
.
height
(),
rightSize
.
height
())));
}
const
auto
terminalSize
=
currentWidget
()
?
currentWidget
()
->
sizeHint
()
:
QSize
(
0
,
0
);
const
auto
terminalSize
=
currentWidget
()
!=
nullptr
?
currentWidget
()
->
sizeHint
()
:
QSize
(
0
,
0
);
// width
// ├──────────────────┤
...
...
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