summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-18 07:13:40 +0200
committerMontel Laurent <[email protected]>2017-09-18 07:13:40 +0200
commit83605c317c76e4d846c38f3f3e7f7c3b7339eb8b (patch)
treed1eb942d1053dc204f7298ed88fea56d803fb14a
parent407a37afd46846b924917f11026e68ea4268e6f3 (diff)
Use directly QString
-rw-r--r--src/libkdepim/progresswidget/progressdialog.cpp6
-rw-r--r--src/libkdepim/progresswidget/progressdialog.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libkdepim/progresswidget/progressdialog.cpp b/src/libkdepim/progresswidget/progressdialog.cpp
index bb7bc0a..8ace0e3 100644
--- a/src/libkdepim/progresswidget/progressdialog.cpp
+++ b/src/libkdepim/progresswidget/progressdialog.cpp
@@ -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
diff --git a/src/libkdepim/progresswidget/progressdialog.h b/src/libkdepim/progresswidget/progressdialog.h
index ec85212..4e19e94 100644
--- a/src/libkdepim/progresswidget/progressdialog.h
+++ b/src/libkdepim/progresswidget/progressdialog.h
@@ -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()
{