mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 18:34:25 +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();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ class QRWidget : public QWidget
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit QRWidget(QWidget *parent = nullptr);
|
explicit QRWidget(QWidget *parent = nullptr);
|
||||||
void setQRData(const std::string &data);
|
void setQRData(const QString &data);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString _data;
|
QString _data;
|
||||||
|
Loading…
Reference in New Issue
Block a user