mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
some fixes which was introduced with the latest patches
This commit is contained in:
parent
03af5f0e49
commit
4387bb1e76
@ -202,10 +202,7 @@ void AwesomeWidget::init()
|
||||
setLayout(mainLayout);
|
||||
textLabel = new CustomLabel(this, debug);
|
||||
QGraphicsProxyWidget *pw = new QGraphicsProxyWidget(this);
|
||||
pw->setAttribute(Qt::WA_TranslucentBackground, true);
|
||||
pw->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
textLabel->setAttribute(Qt::WA_TranslucentBackground, true);
|
||||
textLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
pw->setWidget(textLabel);
|
||||
mainLayout->addItem(pw, 0, 0);
|
||||
|
||||
|
@ -67,6 +67,7 @@ void CustomPlasmaLabel::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
if (event->button() == Qt::LeftButton)
|
||||
widget->setCurrentDesktop(number);
|
||||
emit(QLabel::mousePressEvent(event));
|
||||
}
|
||||
|
||||
|
||||
@ -200,12 +201,9 @@ void DesktopPanel::reinit()
|
||||
// labels
|
||||
for (int i=0; i<desktopNames.count(); i++) {
|
||||
proxyWidgets.append(new QGraphicsProxyWidget(this));
|
||||
proxyWidgets[i]->setAttribute(Qt::WA_TranslucentBackground, true);
|
||||
proxyWidgets[i]->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
labels.append(new CustomPlasmaLabel(this, i, debug));
|
||||
labels[i]->setWordWrap(false);
|
||||
labels[i]->setAttribute(Qt::WA_TranslucentBackground, true);
|
||||
labels[i]->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
proxyWidgets[i]->setWidget(labels[i]);
|
||||
if (configuration[QString("layout")].toInt() == 0)
|
||||
layout->addItem(proxyWidgets[i], 0, i);
|
||||
|
Loading…
Reference in New Issue
Block a user