mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-15 06:45:48 +00:00
start work on porting extscripts to *.desktop configuration
This commit is contained in:
@ -280,6 +280,7 @@ void GraphicalItem::setHeight(const int height)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Height" << height;
|
||||
if (height <= 0) return;
|
||||
|
||||
_height = height;
|
||||
}
|
||||
@ -289,6 +290,7 @@ void GraphicalItem::setWidth(const int width)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Width" << width;
|
||||
if (width <= 0) return;
|
||||
|
||||
_width = width;
|
||||
}
|
||||
|
@ -55,15 +55,15 @@ public:
|
||||
int getHeight();
|
||||
int getWidth();
|
||||
// set methods
|
||||
void setName(const QString name);
|
||||
void setComment(const QString comment);
|
||||
void setBar(const QString bar);
|
||||
void setActiveColor(const QColor color);
|
||||
void setInactiveColor(const QColor color);
|
||||
void setType(const QString type);
|
||||
void setDirection(const QString direction);
|
||||
void setHeight(const int height);
|
||||
void setWidth(const int width);
|
||||
void setName(const QString name = QString("none"));
|
||||
void setComment(const QString comment = QString("empty"));
|
||||
void setBar(const QString bar = QString("cpu"));
|
||||
void setActiveColor(const QColor color = QColor(255, 255, 255, 0));
|
||||
void setInactiveColor(const QColor color = QColor(255, 255, 255, 255));
|
||||
void setType(const QString type = QString("Horizontal"));
|
||||
void setDirection(const QString direction = QString("LeftToRight"));
|
||||
void setHeight(const int height = 100);
|
||||
void setWidth(const int width = 100);
|
||||
|
||||
public slots:
|
||||
void readConfiguration();
|
||||
|
@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>408</width>
|
||||
<width>420</width>
|
||||
<height>329</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -39,6 +39,12 @@
|
||||
<layout class="QHBoxLayout" name="layout_comment">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_comment">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Comment</string>
|
||||
</property>
|
||||
|
Reference in New Issue
Block a user