Commit 83605c31 authored by Laurent Montel's avatar Laurent Montel 😁

Use directly QString

parent 407a37af
......@@ -49,10 +49,10 @@
using namespace KPIM;
static const int MAX_LABEL_WIDTH = 650;
TransactionItemView::TransactionItemView(QWidget *parent, const char *name)
TransactionItemView::TransactionItemView(QWidget *parent, const QString &name)
: QScrollArea(parent)
{
setObjectName(QLatin1String(name));
setObjectName(name);
setFrameStyle(NoFrame);
mBigBox = new QWidget(this);
QVBoxLayout *mBigBoxVBoxLayout = new QVBoxLayout(mBigBox);
......@@ -261,7 +261,7 @@ ProgressDialog::ProgressDialog(QWidget *alignWidget, QWidget *parent)
setAutoFillBackground(true);
mScrollView = new TransactionItemView(this, "ProgressScrollView");
mScrollView = new TransactionItemView(this, QStringLiteral("ProgressScrollView"));
layout()->addWidget(mScrollView);
/*
* Get the singleton ProgressManager item which will inform us of
......
......@@ -54,7 +54,7 @@ class TransactionItemView : public QScrollArea
{
Q_OBJECT
public:
explicit TransactionItemView(QWidget *parent = nullptr, const char *name = nullptr);
explicit TransactionItemView(QWidget *parent = nullptr, const QString &name = QString());
virtual ~TransactionItemView()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment