Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Miguel Lopez
Krita
Commits
6b6cf26c
Commit
6b6cf26c
authored
Jan 10, 2015
by
Halla Rempt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG:342654 Don't show the floating message over the document tabs
parent
ec063246
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
krita/ui/KisViewManager.cpp
krita/ui/KisViewManager.cpp
+1
-1
krita/ui/widgets/kis_floating_message.cpp
krita/ui/widgets/kis_floating_message.cpp
+1
-1
No files found.
krita/ui/KisViewManager.cpp
View file @
6b6cf26c
...
...
@@ -1180,7 +1180,7 @@ void KisViewManager::showFloatingMessage(const QString message, const QIcon& ico
if
(
d
->
savedFloatingMessage
)
{
d
->
savedFloatingMessage
->
tryOverrideMessage
(
message
,
icon
,
timeout
,
priority
,
alignment
);
}
else
{
d
->
savedFloatingMessage
=
new
KisFloatingMessage
(
message
,
qtMainWindow
()
->
central
Widget
(),
false
,
timeout
,
priority
,
alignment
);
d
->
savedFloatingMessage
=
new
KisFloatingMessage
(
message
,
d
->
currentImageView
->
canvasBase
()
->
canvas
Widget
(),
false
,
timeout
,
priority
,
alignment
);
d
->
savedFloatingMessage
->
setShowOverParent
(
true
);
d
->
savedFloatingMessage
->
setIcon
(
icon
);
d
->
savedFloatingMessage
->
showMessage
();
...
...
krita/ui/widgets/kis_floating_message.cpp
View file @
6b6cf26c
...
...
@@ -223,7 +223,7 @@ QRect KisFloatingMessage::determineMetrics( const int M )
if
(
parentWidget
()
&&
m_showOverParent
)
{
screen
=
parentWidget
()
->
geometry
();
screen
.
setTopLeft
(
parentWidget
()
->
mapToGlobal
(
QPoint
(
MARGIN
,
MARGIN
)));
screen
.
setTopLeft
(
parentWidget
()
->
mapToGlobal
(
QPoint
(
MARGIN
,
MARGIN
+
50
)));
newPos
=
screen
.
topLeft
();
}
else
{
...
...
Write
Preview
Markdown
is supported
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