mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kinfocenter: use QGroupBox as base class for ProgressBoxWidget
because DefaultBoxWidget does Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c88dba88e2
commit
d1b853636f
3 changed files with 6 additions and 7 deletions
|
@ -50,7 +50,8 @@ void InfoSumPlugin::createDisplay()
|
|||
|
||||
createOsBox();
|
||||
createCpuBox();
|
||||
//createMemBox(); // Awaiting Mem class from kdereview
|
||||
#warning implment memory info
|
||||
// createMemBox();
|
||||
createHdBox();
|
||||
m_layout->addStretch();
|
||||
}
|
||||
|
@ -106,7 +107,7 @@ void InfoSumPlugin::createMemBox()
|
|||
{
|
||||
ProgressBoxWidget *memWidget = new ProgressBoxWidget();
|
||||
|
||||
memWidget->setIcon(KIcon("memory"));
|
||||
memWidget->setIcon(KIcon("media-flash-memory-stick"));
|
||||
memWidget->setLabelTitles(i18n("Memory Amount"),i18n("Memory Used/Free"));
|
||||
m_layout->addWidget(memWidget);
|
||||
}
|
||||
|
|
|
@ -30,9 +30,7 @@ ProgressBoxWidget::ProgressBoxWidget()
|
|||
m_layout = new QGridLayout(this);
|
||||
m_layout->setAlignment(Qt::AlignTop|Qt::AlignLeft);
|
||||
m_layout->setSpacing(10);
|
||||
|
||||
setStyleSheet("QFrame#OuterFrame { border: 2px solid grey; border-radius: 10px; };");
|
||||
|
||||
|
||||
createDisplay();
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#define PROGRESSBOXWIDGET
|
||||
|
||||
// Katie
|
||||
#include <QFrame>
|
||||
#include <QGroupBox>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QProgressBar>
|
||||
|
@ -33,7 +33,7 @@
|
|||
#include <KIcon>
|
||||
#include <KPixmapWidget>
|
||||
|
||||
class ProgressBoxWidget : public QFrame
|
||||
class ProgressBoxWidget : public QGroupBox
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue