summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2015-11-02 18:58:17 +0200
committerandreykproductengine <akleshchev@productengine.com>2015-11-02 18:58:17 +0200
commit14c91b939ef151e662d47892407c622c39f01d3a (patch)
tree09eeaee88a21ecf56c927eba16ab1b5642ac82c8 /indra/newview
parent31abaa8f1a9c4b65be85771d5becba0b86d3b275 (diff)
MAINT-5620 double clicking on Graphics Preset title triggers favorite
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelpresetspulldown.cpp14
-rw-r--r--indra/newview/llpanelpresetspulldown.h2
2 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llpanelpresetspulldown.cpp b/indra/newview/llpanelpresetspulldown.cpp
index ed67c34bd6..175f281ca4 100644
--- a/indra/newview/llpanelpresetspulldown.cpp
+++ b/indra/newview/llpanelpresetspulldown.cpp
@@ -122,6 +122,20 @@ BOOL LLPanelPresetsPulldown::handleMouseDown(S32 x, S32 y, MASK mask)
}
/*virtual*/
+BOOL LLPanelPresetsPulldown::handleRightMouseDown(S32 x, S32 y, MASK mask)
+{
+ LLPanel::handleRightMouseDown(x, y, mask);
+ return TRUE;
+}
+
+/*virtual*/
+BOOL LLPanelPresetsPulldown::handleDoubleClick(S32 x, S32 y, MASK mask)
+{
+ LLPanel::handleDoubleClick(x, y, mask);
+ return TRUE;
+}
+
+/*virtual*/
void LLPanelPresetsPulldown::onMouseLeave(S32 x, S32 y, MASK mask)
{
mHoverTimer.start();
diff --git a/indra/newview/llpanelpresetspulldown.h b/indra/newview/llpanelpresetspulldown.h
index e1e2c26a86..322bf5a58f 100644
--- a/indra/newview/llpanelpresetspulldown.h
+++ b/indra/newview/llpanelpresetspulldown.h
@@ -41,6 +41,8 @@ class LLPanelPresetsPulldown : public LLPanel
/*virtual*/ void onMouseEnter(S32 x, S32 y, MASK mask);
/*virtual*/ void onMouseLeave(S32 x, S32 y, MASK mask);
/*virtual*/ BOOL handleMouseDown(S32 x, S32 y, MASK mask);
+ /*virtual*/ BOOL handleRightMouseDown(S32 x, S32 y, MASK mask);
+ /*virtual*/ BOOL handleDoubleClick(S32 x, S32 y, MASK mask);
/*virtual*/ void onTopLost();
/*virtual*/ void onVisibilityChange ( BOOL new_visibility );
/*virtual*/ BOOL postBuild();