Commit a04b972d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: reverse Button.

Make it checkable, change the text for the toolbar editor and show it only on input.
parent 498b9a36
......@@ -380,7 +380,11 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
setupButton( reverseButton );
CONNECT_MAP_SET( reverseButton, REVERSE_ACTION );
BUTTON_SET_BAR( reverseButton );
ENABLE_ON_INPUT( reverseButton );
reverseButton->setCheckable( true );
/* You should, of COURSE change this to the correct event,
when/if we have one, that tells us if trickplay is possible . */
CONNECT( this, inputExists( bool ), reverseButton, setVisible( bool ) );
reverseButton->setVisible( false );
widget = reverseButton;
}
break;
......
......@@ -101,7 +101,7 @@ typedef enum buttonType_e
static const QString nameL[BUTTON_MAX] = { "Play", "Stop", "Open",
"Previous", "Next", "Slower", "Faster", "Fullscreen", "De-Fullscreen",
"Extended panel", "Playlist", "Snapshot", "Record", "A->B Loop",
"Frame By Frame", "Reverse", "Skip backward" , "Skip forward",
"Frame By Frame", "Trickplay Reverse", "Skip backward" , "Skip forward",
"Quit" };
static const QString tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP,
_("Stop playback"), _("Open a media"),
......
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