Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
58d8b666
Commit
58d8b666
authored
14 years ago
by
Merov Linden
Browse files
Options
Downloads
Plain Diff
STORM-833 : pull into viewer-development
parents
924be3f2
65e88ce6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llnamelistctrl.cpp
+24
-0
24 additions, 0 deletions
indra/newview/llnamelistctrl.cpp
with
24 additions
and
0 deletions
indra/newview/llnamelistctrl.cpp
+
24
−
0
View file @
58d8b666
...
@@ -143,6 +143,30 @@ void LLNameListCtrl::mouseOverHighlightNthItem( S32 target_index )
...
@@ -143,6 +143,30 @@ void LLNameListCtrl::mouseOverHighlightNthItem( S32 target_index )
S32
cur_index
=
getHighlightedItemInx
();
S32
cur_index
=
getHighlightedItemInx
();
if
(
cur_index
!=
target_index
)
if
(
cur_index
!=
target_index
)
{
{
bool
is_mouse_over_name_cell
=
false
;
S32
mouse_x
,
mouse_y
;
LLUI
::
getMousePositionLocal
(
this
,
&
mouse_x
,
&
mouse_y
);
S32
column_index
=
getColumnIndexFromOffset
(
mouse_x
);
LLScrollListItem
*
hit_item
=
hitItem
(
mouse_x
,
mouse_y
);
if
(
hit_item
&&
column_index
==
mNameColumnIndex
)
{
// Get the name cell which is currently under the mouse pointer.
LLScrollListCell
*
hit_cell
=
hit_item
->
getColumn
(
column_index
);
if
(
hit_cell
)
{
is_mouse_over_name_cell
=
getCellRect
(
cur_index
,
column_index
).
pointInRect
(
mouse_x
,
mouse_y
);
}
}
// If the tool tip is visible and the mouse is over the currently highlighted item's name cell,
// we should not reset the highlighted item index i.e. set mHighlightedItem = -1
// and should not increase the width of the text inside the cell because it may
// overlap the tool tip icon.
if
(
LLToolTipMgr
::
getInstance
()
->
toolTipVisible
()
&&
is_mouse_over_name_cell
)
return
;
if
(
0
<=
cur_index
&&
cur_index
<
(
S32
)
getItemList
().
size
())
if
(
0
<=
cur_index
&&
cur_index
<
(
S32
)
getItemList
().
size
())
{
{
LLScrollListItem
*
item
=
getItemList
()[
cur_index
];
LLScrollListItem
*
item
=
getItemList
()[
cur_index
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment