Commit 6ef52bd4 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Made "You have no Xinerama set up" message prettier

REVIEW: 101810
parent 0a237a11
......@@ -113,9 +113,19 @@ KCMXinerama::KCMXinerama(QWidget *parent, const QVariantList &)
connect(xw, SIGNAL(configChanged()), this, SLOT(changed()));
} else { // no Xinerama
QLabel *ql = new QLabel(i18n("<qt><p>This module is only for configuring systems with a single desktop spread across multiple monitors. You do not appear to have this configuration.</p></qt>"), this);
ql->setWordWrap(true);
grid->addWidget(ql, 0, 0);
QGridLayout *layout = new QGridLayout(this);
m_noXineramaMessage = new QWidget();
QLabel *labelicon = new QLabel(m_noXineramaMessage);
labelicon->setPixmap(KIcon("dialog-information").pixmap(128, 128));
layout->addWidget(labelicon, 0, 1, Qt::AlignHCenter);
QLabel *labeltext = new QLabel(i18n("You do not appear to have a single desktop spread across multiple monitors."), m_noXineramaMessage);
layout->addWidget(labeltext,1, 1, Qt::AlignHCenter);
layout->setRowStretch(2, 1);
layout->setColumnStretch(0, 1);
layout->setColumnStretch(2, 1);
m_noXineramaMessage->setLayout(layout);
grid->addWidget(m_noXineramaMessage);
}
grid->activate();
......
......@@ -51,6 +51,7 @@ private:
XineramaWidget *xw;
QTimer _timer;
QList<QWidget *> _indicators;
QWidget* m_noXineramaMessage;
int _displays;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment