mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 10:24:26 +01:00
std::string -> QString
This commit is contained in:
parent
3d7b6fbe08
commit
8f8d8a75b1
@ -14,9 +14,9 @@ QRWidget::QRWidget(QWidget* parent) :
|
||||
{
|
||||
}
|
||||
|
||||
void QRWidget::setQRData(const std::string &data)
|
||||
void QRWidget::setQRData(const QString &data)
|
||||
{
|
||||
_data = QString::fromStdString(data);
|
||||
_data = data;
|
||||
update();
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ class QRWidget : public QWidget
|
||||
|
||||
public:
|
||||
explicit QRWidget(QWidget *parent = nullptr);
|
||||
void setQRData(const std::string &data);
|
||||
void setQRData(const QString &data);
|
||||
|
||||
private:
|
||||
QString _data;
|
||||
|
Loading…
Reference in New Issue
Block a user