Commit 5bea502c authored by Frédéric Brière's avatar Frédéric Brière
Browse files

radselect: No longer set RadicalButton status to Related on right-click

Right-clicking on a selected radical button would set its (visual)
status to Related, and thus no longer Selected, even though the
underlying radical remained selected.  Furthermore, right-clicking on it
again would have no effect; there was no way to remove the Related
status of a single button, except by left-clicking on it to toggle its
selected status.

From the comment left in ButtonGrid::radicalClicked(), the original
author seemed to have some idea in mind, but left it unimplemented.
Right-clicking therefore does nothing, except confuse the user, so let's
just disable it.

(I'm not ripping the whole thing out just yet, in case someone else want
to do something with it.)
parent fdef930a
......@@ -54,7 +54,7 @@ void RadicalButton::mousePressEvent( QMouseEvent *e )
QPushButton::mousePressEvent( e );
if( e->button() == Qt::RightButton )
{
setStatus( Related );
//setStatus( Related );
emit userClicked( text(), Related );
}
}
......@@ -107,7 +107,6 @@ void RadicalButton::setStatus( RadicalButton::ButtonStatus newStatus )
disabled = true;
break;
case Related:
italic = true;
break;
case Hidden:
hidden = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment