Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
System Settings
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
System Settings
Commits
1cdc3942
Commit
1cdc3942
authored
Sep 27, 2017
by
Marco Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better placing for tooltips
put them on the side, don't obstruct the mouse from moving
parent
29259ef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
sidebar/ToolTips/tooltipmanager.cpp
sidebar/ToolTips/tooltipmanager.cpp
+5
-1
No files found.
sidebar/ToolTips/tooltipmanager.cpp
View file @
1cdc3942
...
...
@@ -128,7 +128,11 @@ void ToolTipManager::showToolTip( QModelIndex menuItem )
QWidget
*
tip
=
createTipContent
(
menuItem
);
d
->
tooltip
->
showBelow
(
d
->
itemRect
,
tip
,
d
->
view
->
nativeParentWidget
()
->
windowHandle
());
if
(
qApp
->
isRightToLeft
())
{
d
->
tooltip
->
showAt
(
d
->
itemRect
.
topLeft
()
-
QPoint
(
d
->
tooltip
->
width
(),
0
),
tip
,
d
->
view
->
nativeParentWidget
()
->
windowHandle
());
}
else
{
d
->
tooltip
->
showAt
(
d
->
itemRect
.
topRight
(),
tip
,
d
->
view
->
nativeParentWidget
()
->
windowHandle
());
}
connect
(
d
->
tooltip
,
&
KToolTipWidget
::
hidden
,
tip
,
&
QObject
::
deleteLater
);
...
...
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