X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=inline;f=src%2Fplugins%2FLogView%2Flogview.h;h=228a6895623b62e2a6791e3759abee7ca0b41092;hb=HEAD;hp=1bfe6a8228b62c30943efa09787ee95fd3ecfa25;hpb=31e526453fe2983e8855342c980a1814bd39db7b;p=evaf
diff --git a/src/plugins/LogView/logview.h b/src/plugins/LogView/logview.h
index 1bfe6a8..228a689 100644
--- a/src/plugins/LogView/logview.h
+++ b/src/plugins/LogView/logview.h
@@ -3,7 +3,7 @@
* @brief Implementation of the LogView module
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -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;
@@ -119,7 +120,7 @@ private: // Members
private: // Methods
- inline char const * const severityText(Common::iLogger::Severity s) const;
+ inline char const * severityText(Common::iLogger::Severity s) 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 = Qt::WindowFlags());
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