mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
Construct QString more efficiently
This commit is contained in:
@@ -27,7 +27,7 @@ LineEdit::LineEdit(QWidget *parent)
|
||||
m_searchButton->setStyleSheet("QToolButton {border: none; padding: 2px;}");
|
||||
|
||||
// padding between text and widget borders
|
||||
setStyleSheet(QString("QLineEdit {padding-left: %1px;}").arg(m_searchButton->sizeHint().width()));
|
||||
setStyleSheet(QString::fromLatin1("QLineEdit {padding-left: %1px;}").arg(m_searchButton->sizeHint().width()));
|
||||
|
||||
setClearButtonEnabled(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user