Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
4cf299a0
Commit
4cf299a0
authored
Jun 15, 2007
by
Robert Knight
Browse files
More useful text for font preview, includes the font family and point size.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=676001
parent
80d35c03
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/EditProfileDialog.cpp
View file @
4cf299a0
...
...
@@ -325,7 +325,7 @@ void EditProfileDialog::setupAppearancePage(const Profile* info)
// setup font preview
const
QFont
&
font
=
info
->
font
();
_ui
->
f
ontPreviewLabel
->
setFont
(
font
);
updateF
ontPreviewLabel
(
font
);
_ui
->
fontSizeSlider
->
setValue
(
font
.
pointSize
()
);
connect
(
_ui
->
fontSizeSlider
,
SIGNAL
(
valueChanged
(
int
))
,
this
,
...
...
@@ -333,6 +333,11 @@ void EditProfileDialog::setupAppearancePage(const Profile* info)
connect
(
_ui
->
editFontButton
,
SIGNAL
(
clicked
())
,
this
,
SLOT
(
showFontDialog
())
);
}
void
EditProfileDialog
::
updateFontPreviewLabel
(
const
QFont
&
font
)
{
_ui
->
fontPreviewLabel
->
setFont
(
font
);
_ui
->
fontPreviewLabel
->
setText
(
i18n
(
"%1, size %2"
,
font
.
family
(),
font
.
pointSize
()));
}
void
EditProfileDialog
::
updateColorSchemeList
()
{
delete
_ui
->
colorSchemeList
->
model
();
...
...
@@ -867,7 +872,7 @@ void EditProfileDialog::setFontSize(int pointSize)
{
QFont
newFont
=
_ui
->
fontPreviewLabel
->
font
();
newFont
.
setPointSize
(
pointSize
);
_ui
->
f
ontPreviewLabel
->
setFont
(
newFont
);
updateF
ontPreviewLabel
(
newFont
);
_tempProfile
->
setProperty
(
Profile
::
Font
,
newFont
);
...
...
src/EditProfileDialog.h
View file @
4cf299a0
...
...
@@ -161,6 +161,7 @@ private:
void
updateColorSchemeList
();
void
updateKeyBindingsList
();
void
updateFontPreviewLabel
(
const
QFont
&
font
);
void
showColorSchemeEditor
(
bool
newScheme
);
void
showKeyBindingEditor
(
bool
newTranslator
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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