From e64c7469d5b8f4e4e7d3840058f0d6a9c73b1a91 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Thu, 8 Aug 2019 18:51:24 -0400 Subject: [PATCH] SIP transfer: translate string for contact picker title Change-Id: I7c3e827072f5f97812f0e80ef68c6047c6c20cbc --- contactpicker.cpp | 4 ++-- contactpicker.h | 2 +- videooverlay.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contactpicker.cpp b/contactpicker.cpp index 4830882..c1bf9a1 100644 --- a/contactpicker.cpp +++ b/contactpicker.cpp @@ -100,9 +100,9 @@ ContactPicker::mousePressEvent(QMouseEvent *event) } void -ContactPicker::setTitle(const std::string& title) +ContactPicker::setTitle(const QString& title) { - ui->title->setText(QString::fromStdString(title)); + ui->title->setText(title); } void diff --git a/contactpicker.h b/contactpicker.h index c491b5f..35c8ac2 100644 --- a/contactpicker.h +++ b/contactpicker.h @@ -69,7 +69,7 @@ public: explicit ContactPicker(QWidget *parent = 0); ~ContactPicker(); - void setTitle(const std::string& title); + void setTitle(const QString& title); void setType(const Type& type); void setCurrentCalleeDisplayName(const QString& CalleeDisplayName); diff --git a/videooverlay.cpp b/videooverlay.cpp index 30cb5dc..e0136e2 100644 --- a/videooverlay.cpp +++ b/videooverlay.cpp @@ -47,7 +47,7 @@ VideoOverlay::VideoOverlay(QWidget* parent) : ui->transferCallButton->setCheckable(true); contactPicker_->setVisible(false); - contactPicker_->setTitle("Select Peer to Tranfer"); + contactPicker_->setTitle(QObject::tr("Select peer to transfer to")); connect(ui->transferCallButton, &QPushButton::toggled, this, &VideoOverlay::on_transferButton_toggled); connect(contactPicker_, &ContactPicker::contactWillDoTransfer, this, &VideoOverlay::on_transferCall_requested); -- GitLab