mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Use QString literals
This patch covers src/gui and some leftovers from previous commit.
This commit is contained in:
parent
5341478036
commit
802ec5a14e
59 changed files with 912 additions and 902 deletions
|
@ -16,15 +16,16 @@
|
|||
#include <QStyle>
|
||||
#include <QToolButton>
|
||||
|
||||
#include "base/global.h"
|
||||
#include "uithememanager.h"
|
||||
|
||||
LineEdit::LineEdit(QWidget *parent)
|
||||
: QLineEdit(parent)
|
||||
{
|
||||
m_searchButton = new QToolButton(this);
|
||||
m_searchButton->setIcon(UIThemeManager::instance()->getIcon("edit-find"));
|
||||
m_searchButton->setIcon(UIThemeManager::instance()->getIcon(u"edit-find"_qs));
|
||||
m_searchButton->setCursor(Qt::ArrowCursor);
|
||||
m_searchButton->setStyleSheet("QToolButton {border: none; padding: 2px;}");
|
||||
m_searchButton->setStyleSheet(u"QToolButton {border: none; padding: 2px;}"_qs);
|
||||
|
||||
// padding between text and widget borders
|
||||
setStyleSheet(QString::fromLatin1("QLineEdit {padding-left: %1px;}").arg(m_searchButton->sizeHint().width()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue