diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2017-10-19 19:48:11 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2017-10-20 08:21:29 +0200 |
commit | 2161abff3510dd591db30d94911241436c90c4d4 (patch) | |
tree | 72da770df91435c8394f50bc7b9699105c1f753d | |
parent | 44f54bf392375b789e3e3c3e868c9426d6cd4e41 (diff) |
tdf#87808 Add missing tooltips to Media Playback toolbar
For the Position and the Volume sliders
Change-Id: Ie7eee332b05e9a6cfc8165cf7b7b59695c58b458
Reviewed-on: https://gerrit.libreoffice.org/43571
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r-- | avmedia/inc/strings.hrc | 2 | ||||
-rw-r--r-- | avmedia/source/framework/MediaControlBase.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/avmedia/inc/strings.hrc b/avmedia/inc/strings.hrc index b4e260ad4363..78c39db02682 100644 --- a/avmedia/inc/strings.hrc +++ b/avmedia/inc/strings.hrc @@ -34,6 +34,8 @@ #define AVMEDIA_STR_ZOOM_100 NC_("AVMEDIA_STR_ZOOM_100", "100%") #define AVMEDIA_STR_ZOOM_200 NC_("AVMEDIA_STR_ZOOM_200", "200%") #define AVMEDIA_STR_ZOOM_FIT NC_("AVMEDIA_STR_ZOOM_FIT", "Scaled") +#define AVMEDIA_STR_VOLUME NC_("AVMEDIA_STR_VOLUME", "Volume") +#define AVMEDIA_STR_POSITION NC_("AVMEDIA_STR_POSITION", "Position") #define AVMEDIA_STR_MEDIAPLAYER NC_("AVMEDIA_STR_MEDIAPLAYER", "Media Player") #define AVMEDIA_MEDIA_PATH NC_("AVMEDIA_MEDIA_PATH", "Media Path") #define AVMEDIA_MEDIA_PATH_DEFAULT NC_("AVMEDIA_MEDIA_PATH_DEFAULT", "No Media Selected") diff --git a/avmedia/source/framework/MediaControlBase.cxx b/avmedia/source/framework/MediaControlBase.cxx index 9b844907cbec..22d2b8896d3b 100644 --- a/avmedia/source/framework/MediaControlBase.cxx +++ b/avmedia/source/framework/MediaControlBase.cxx @@ -129,10 +129,12 @@ void MediaControlBase::InitializeWidgets() mpVolumeSlider->SetRange( Range( AVMEDIA_DB_RANGE, 0 ) ); mpVolumeSlider->SetUpdateMode( true ); + mpVolumeSlider->SetQuickHelpText( AvmResId( AVMEDIA_STR_VOLUME )); mpVolumeSlider->SetHelpId( HID_AVMEDIA_VOLUMESLIDER ); mpTimeSlider->SetRange( Range( 0, AVMEDIA_TIME_RANGE ) ); mpTimeSlider->SetUpdateMode( true ); + mpTimeSlider->SetQuickHelpText( AvmResId( AVMEDIA_STR_POSITION )); mpTimeSlider->SetStyle(WB_HORZ | WB_DRAG | WB_3DLOOK); mpTimeSlider->SetScrollTypeSet(true); } |