Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Workspace
Commits
6ef52bd4
Commit
6ef52bd4
authored
Jul 22, 2011
by
Kai Uwe Broulik
🍇
Browse files
Made "You have no Xinerama set up" message prettier
REVIEW: 101810
parent
0a237a11
Changes
2
Hide whitespace changes
Inline
Side-by-side
kcontrol/xinerama/kcmxinerama.cpp
View file @
6ef52bd4
...
...
@@ -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
();
...
...
kcontrol/xinerama/kcmxinerama.h
View file @
6ef52bd4
...
...
@@ -51,6 +51,7 @@ private:
XineramaWidget
*
xw
;
QTimer
_timer
;
QList
<
QWidget
*>
_indicators
;
QWidget
*
m_noXineramaMessage
;
int
_displays
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment