X-Git-Url: https://vaikene.ee/gitweb/highlight.css?a=blobdiff_plain;f=src%2Fplugins%2FLogView%2Flogview.h;h=e652f619b7d3e4aec5a1a1b10608ec50231449b1;hb=13dedf19c628b9967e4c4106ab0fd967f1df0b90;hp=1bfe6a8228b62c30943efa09787ee95fd3ecfa25;hpb=0957525838e501a4609a15b8d7a765da43362025;p=evaf diff --git a/src/plugins/LogView/logview.h b/src/plugins/LogView/logview.h index 1bfe6a8..e652f61 100644 --- a/src/plugins/LogView/logview.h +++ b/src/plugins/LogView/logview.h @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -78,11 +79,11 @@ public: QString where; }; - Model(QObject * parent = 0); + Model(QObject * parent = nullptr); Message const & messageAt(int idx) const { return mData.at(idx); } - virtual int rowCount(QModelIndex const & parent = QModelIndex()) const { return mData.size(); } + virtual int rowCount(QModelIndex const & = QModelIndex()) const { return mData.size(); } virtual QVariant data(QModelIndex const & index, int role = Qt::DisplayRole) const; @@ -134,7 +135,7 @@ class Widget : public QWidget public: - Widget(QString const & source, QWidget * parent = 0); + Widget(QString const & source, QWidget * parent = nullptr); QString const & source() const { return mSource; } @@ -171,13 +172,13 @@ private: /** * The log view window */ -class Window : public QWidget +class Window : public Gui::Panel { Q_OBJECT public: - Window(QWidget * parent = 0, Qt::WindowFlags flags = 0); + Window(QString const & args, QWidget * parent = nullptr, Qt::WindowFlags flags = 0); virtual ~Window(); @@ -195,6 +196,8 @@ private: // Methods void restoreSettings(); + QString getPanelName(QString const & args) const; + private: // Members @@ -223,7 +226,7 @@ public: virtual void done(); - virtual bool isReady() const { return wWindow != 0; } + virtual bool isReady() const { return wWindow != nullptr; } private: // Members