Commit 78b5e05c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove qt include namespace.

parent 53034ada
......@@ -24,9 +24,9 @@
#ifndef KSG_SENSORAGENT_H
#define KSG_SENSORAGENT_H
#include <QtCore/QObject>
#include <QtCore/QQueue>
#include <QtCore/QPointer>
#include <QObject>
#include <QQueue>
#include <QPointer>
class QString;
......
......@@ -25,9 +25,9 @@
#ifndef KSG_SENSORCLIENT_H
#define KSG_SENSORCLIENT_H
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QString>
#include <QByteArray>
#include <QList>
#include <QString>
namespace KSGRD {
......
......@@ -26,11 +26,11 @@
#include <kconfig.h>
#include <QtCore/QEvent>
#include <QtCore/QHash>
#include <QtCore/QStringList>
#include <QtCore/QObject>
#include <QtCore/QPointer>
#include <QEvent>
#include <QHash>
#include <QStringList>
#include <QObject>
#include <QPointer>
#include "SensorAgent.h"
......
......@@ -24,9 +24,9 @@
#ifndef KSG_SENSORSHELLAGENT_H
#define KSG_SENSORSHELLAGENT_H
#include <QtCore/QObject>
#include <QtCore/QPointer>
#include <QtCore/QProcess>
#include <QObject>
#include <QPointer>
#include <QProcess>
#include "SensorAgent.h"
......
......@@ -39,8 +39,7 @@ LsofSearchWidget::LsofSearchWidget(QWidget* parent, int pid )
setWindowTitle( i18n("Renice Process") );
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(mainWidget);
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
......
......@@ -22,9 +22,9 @@
#ifndef PROCESS_H
#define PROCESS_H
#include <QtCore/QList>
#include <QtCore/QTime>
#include <QtCore/QFlags>
#include <QList>
#include <QTime>
#include <QFlags>
namespace KSysGuard
{
......
......@@ -23,8 +23,8 @@
#define PROCESSES_H_
#include "process.h"
#include <QtCore/QObject>
#include <QtCore/QHash>
#include <QObject>
#include <QHash>
namespace KSysGuard
{
......
......@@ -91,7 +91,7 @@ class Q_DECL_EXPORT KSignalPlotter : public QWidget
Q_PROPERTY(int fillOpacity READ fillOpacity WRITE setFillOpacity)
public:
KSignalPlotter( QWidget *parent = nullptr);
explicit KSignalPlotter( QWidget *parent = nullptr);
~KSignalPlotter() override;
/** \brief Add a new line to the graph plotter, with the specified color.
......
......@@ -143,7 +143,7 @@ public:
/* A class to draw the actual widget. This is used for the QWidget version of KSignalPlotter in order to speed up redraws */
class GraphWidget : public QWidget {
public:
GraphWidget(QWidget *parent);
explicit GraphWidget(QWidget *parent);
void paintEvent ( QPaintEvent * event ) override;
KSignalPlotterPrivate *signalPlotterPrivate;
......
......@@ -20,7 +20,7 @@
#ifndef CHRONOTEST_H
#define CHRONOTEST_H
#include <QtCore/QObject>
#include <QObject>
class testChrono : public QObject
{
Q_OBJECT
......
......@@ -20,7 +20,7 @@
#ifndef GUITESTPROCESS_H
#define GUITESTPROCESS_H
#include <QtCore/QObject>
#include <QObject>
class testGuiProcess: public QObject
{
Q_OBJECT
......
......@@ -20,7 +20,7 @@
#ifndef TESTPROCESS_H
#define TESTPROCESS_H
#include <QtCore/QObject>
#include <QObject>
namespace KSysGuard
{
class Process;
......
Supports Markdown
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