Qt: make image drop indicator translatable

This commit is contained in:
CozmoP 2019-01-31 23:01:39 +01:00
parent cc18bd6023
commit 9eaa703d4f
3 changed files with 6 additions and 1 deletions

View File

@ -6858,6 +6858,10 @@ MSG_HASH(
MENU_ENUM_LABEL_VALUE_QT_ITEMS_COUNT,
"%1 items"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_QT_DROP_IMAGE_HERE,
"Drop image here"
)
#ifdef HAVE_QT
MSG_HASH(
MENU_ENUM_LABEL_VALUE_QT_SCAN_FINISHED,

View File

@ -2126,6 +2126,7 @@ enum msg_hash_enums
MENU_ENUM_LABEL_VALUE_QT_DOWNLOAD_PLAYLIST_THUMBNAIL_PROGRESS,
MENU_ENUM_LABEL_VALUE_QT_CORE_OPTIONS,
MENU_ENUM_LABEL_VALUE_QT_ITEMS_COUNT,
MENU_ENUM_LABEL_VALUE_QT_DROP_IMAGE_HERE,
MENU_LABEL(MIDI_INPUT),
MENU_LABEL(MIDI_OUTPUT),

View File

@ -67,7 +67,7 @@ ThumbnailWidget::ThumbnailWidget(ThumbnailType type, QWidget *parent) :
QStackedWidget(parent)
,m_thumbnailType(type)
,m_thumbnailLabel(new ThumbnailLabel(this))
,m_dropIndicator(new QLabel("Drop image here", this))
,m_dropIndicator(new QLabel(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_DROP_IMAGE_HERE), this))
{
m_dropIndicator->setObjectName("dropIndicator");
m_dropIndicator->setAlignment(Qt::AlignCenter);