@@ -38,7 +38,7 @@ ItemList::ItemList(QWidget *parent)
3838 ui->download ->hide ();
3939 ui->count ->setFont (Styles::font (Styles::Condensed, 12 ));
4040 ui->count ->hide ();
41- connect (this , &ItemList::idChanged, [this ](const QString &code, const QString &mobile, const QByteArray& serial)
41+ connect (this , &ItemList::idChanged, this , [this ](const QString &code, const QString &mobile, const QByteArray& serial)
4242 {idCode = code; mobileCode = mobile; serialNumber = serial;});
4343}
4444
@@ -57,8 +57,8 @@ void ItemList::addHeader(const QString &label)
5757 header->resize (415 , 64 );
5858 header->setFixedHeight (64 );
5959 header->setFont ( Styles::font (Styles::Regular, 20 ));
60- header->setStyleSheet (" border: solid rgba(217, 217, 216, 0.45);"
61- " border-width: 0px 0px 1px 0px;" );
60+ header->setStyleSheet (QStringLiteral ( " border: solid rgba(217, 217, 216, 0.45);"
61+ " border-width: 0px 0px 1px 0px;" )) ;
6262 ui->itemLayout ->insertWidget (0 , header);
6363 headerItems++;
6464}
@@ -73,6 +73,8 @@ void ItemList::changeEvent(QEvent* event)
7373{
7474 if (event->type () == QEvent::LanguageChange)
7575 {
76+ tr (" Add recipients" );
77+ tr (" Added recipients" );
7678 tr (" Recipients" );
7779 tr (" Encrypted files" );
7880 tr (" Container is not signed" );
@@ -85,7 +87,7 @@ void ItemList::changeEvent(QEvent* event)
8587 ui->listHeader ->setText (tr (qPrintable (listText)));
8688 ui->txtFind ->setPlaceholderText (tr (" Enter the personal code, institution or registry code" ));
8789
88- if (header != nullptr )
90+ if (header)
8991 header->setText (tr (qPrintable (headerText)));
9092
9193 ui->add ->setText (addLabel ());
@@ -201,8 +203,8 @@ void ItemList::init(ItemType item, const QString &header)
201203 ui->txtFind ->setFont (Styles::font (Styles::Regular, 12 ));
202204 ui->findGroup ->show ();
203205 ui->txtFind ->setPlaceholderText (tr (" Enter personal code, company or registry code" ));
204- connect (ui->txtFind , &QLineEdit::returnPressed, [this ]() { emit search (ui->txtFind ->text ()); });
205- connect (ui->btnFind , &QPushButton::clicked, [this ]() { emit search (ui->txtFind ->text ()); });
206+ connect (ui->txtFind , &QLineEdit::returnPressed, [this ]{ emit search (ui->txtFind ->text ()); });
207+ connect (ui->btnFind , &QPushButton::clicked, [this ]{ emit search (ui->txtFind ->text ()); });
206208 ui->btnFind ->setDisabled (ui->txtFind ->text ().isEmpty ());
207209 connect (ui->txtFind , &QLineEdit::textChanged, [=](const QString &text){
208210 ui->btnFind ->setDisabled (text.isEmpty ());
0 commit comments