diff --git a/contactpicker.cpp b/contactpicker.cpp index 4830882210d3dd2a48dded4995ae9c20f1aee158..c1bf9a1cad34379a812d8ba91afb1e53f7ed79aa 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 c491b5f778c22e69cc0247a988907a2d58ebd62f..35c8ac2d809e9dc945dd6564f1e9b03d5c4c1dea 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 30cb5dc2bf7dec861ac5c552cd92947de2465eda..e0136e2dc52aa13bfc6b8911e8838b34e431c96c 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);