mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-01 16:05:56 +00:00
update additional files
update translations add "Add lambda" button to ui
This commit is contained in:
@ -67,6 +67,20 @@ public:
|
||||
m_items = getItems();
|
||||
};
|
||||
|
||||
T *itemByTag(const QString _tag) const
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
T *found = nullptr;
|
||||
foreach(T *item, m_items) {
|
||||
if (item->tag() != _tag) continue;
|
||||
found = item;
|
||||
break;
|
||||
}
|
||||
|
||||
return found;
|
||||
}
|
||||
|
||||
T *itemByTagNumber(const int _number) const
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
@ -185,6 +185,14 @@ QString GraphicalItem::inactiveColor() const
|
||||
}
|
||||
|
||||
|
||||
QString GraphicalItem::tag() const
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return name() + m_bar;
|
||||
}
|
||||
|
||||
|
||||
GraphicalItem::Type GraphicalItem::type() const
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
@ -59,6 +59,7 @@ public:
|
||||
QString bar() const;
|
||||
QString activeColor() const;
|
||||
QString inactiveColor() const;
|
||||
QString tag() const;
|
||||
Type type() const;
|
||||
QString strType() const;
|
||||
Direction direction() const;
|
||||
@ -94,9 +95,6 @@ private:
|
||||
QColor stringToColor(const QString _color) const;
|
||||
void translate();
|
||||
// properties
|
||||
int m_apiVersion = 0;
|
||||
QString m_name = QString("none");
|
||||
QString m_comment = QString("empty");
|
||||
QString m_bar = QString("cpu");
|
||||
QString m_activeColor = QString("0,0,0,130");
|
||||
QString m_inactiveColor = QString("255,255,255,130");
|
||||
|
Reference in New Issue
Block a user