mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Use QString literals
This patch covers src/gui and some leftovers from previous commit.
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user