mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
some fixes, prepare to release 2.0.2
This commit is contained in:
parent
db7573de80
commit
17bef06c98
@ -1,12 +0,0 @@
|
||||
aticonfig --od-gettemperature
|
||||
|
||||
Default Adapter - AMD Radeon HD 7800 Series
|
||||
Sensor 0: Temperature - 50.00 C
|
||||
aticonfig --od-getclocks
|
||||
|
||||
Default Adapter - AMD Radeon HD 7800 Series
|
||||
Core (MHz) Memory (MHz)
|
||||
Current Clocks : 1100 1250
|
||||
Current Peak : 1100 1250
|
||||
Configurable Peak Range : [300-1050] [150-1450]
|
||||
GPU load : 99%
|
@ -94,9 +94,6 @@ DesktopPanel::DesktopPanel(QObject *parent, const QVariantList &args)
|
||||
|
||||
DesktopPanel::~DesktopPanel()
|
||||
{
|
||||
// for (int i=0; i<labels.count(); i++)
|
||||
// delete labels[i];
|
||||
// delete layout;
|
||||
}
|
||||
|
||||
|
||||
@ -204,6 +201,7 @@ void DesktopPanel::reinit()
|
||||
for (int i=0; i<desktopNames.count(); i++) {
|
||||
labels.append(new CustomPlasmaLabel(this, i));
|
||||
labels[i]->setWordWrap(false);
|
||||
labels[i]->setAttribute(Qt::WA_NoSystemBackground, true);
|
||||
if (configuration[QString("layout")].toInt() == 0)
|
||||
layout->addItem(labels[i], 0, i);
|
||||
else
|
||||
@ -211,8 +209,6 @@ void DesktopPanel::reinit()
|
||||
}
|
||||
|
||||
updateText(true);
|
||||
// layout->updateGeometry();
|
||||
resize(10, 10);
|
||||
}
|
||||
|
||||
|
||||
@ -274,6 +270,7 @@ void DesktopPanel::updateText(const bool first)
|
||||
text = formatLine[0] + line + formatLine[1];
|
||||
labels[i]->setText(text);
|
||||
}
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user