mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-08-30 12:19:56 +00:00
system source, some code improvements
This commit is contained in:
@ -30,13 +30,13 @@ class AbstractExtSysMonSource : public QObject
|
||||
public:
|
||||
explicit AbstractExtSysMonSource(QObject *_parent, const QStringList &)
|
||||
: QObject(_parent){};
|
||||
virtual ~AbstractExtSysMonSource(){};
|
||||
~AbstractExtSysMonSource() override = default;
|
||||
virtual QVariant data(const QString &_source) = 0;
|
||||
virtual QVariantMap initialData(const QString &_source) const = 0;
|
||||
virtual void run() = 0;
|
||||
virtual QStringList sources() const = 0;
|
||||
// used by extensions
|
||||
int index(const QString &_source) const
|
||||
static int index(const QString &_source)
|
||||
{
|
||||
QRegExp rx("\\d+");
|
||||
rx.indexIn(_source);
|
||||
|
Reference in New Issue
Block a user