some fixes which was introduced with the latest patches

This commit is contained in:
arcan1s 2014-10-02 06:13:10 +04:00
parent 03af5f0e49
commit 4387bb1e76
2 changed files with 1 additions and 6 deletions

View File

@ -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);

View File

@ -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);