Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mathias Wein
Krita
Commits
b1078694
Commit
b1078694
authored
Apr 01, 2007
by
Daniel Laidig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port to the new API of KCharSelect (r648943).
svn path=/trunk/koffice/; revision=648949
parent
6fa8ffaa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
libs/kofficeui/KoCharSelectDia.cpp
libs/kofficeui/KoCharSelectDia.cpp
+5
-5
libs/koproperty/editors/symbolcombo.cpp
libs/koproperty/editors/symbolcombo.cpp
+3
-2
No files found.
libs/kofficeui/KoCharSelectDia.cpp
View file @
b1078694
...
...
@@ -73,10 +73,10 @@ void KoCharSelectDia::initDialog(const QChar &_chr, const QString &_font, bool /
grid
->
setMargin
(
0
);
grid
->
setSpacing
(
KDialog
::
spacingHint
());
charSelect
=
new
KCharSelect
(
page
,
_font
,
_chr
);
connect
(
charSelect
,
SIGNAL
(
doubleClick
ed
()),
this
,
SLOT
(
slotDoubleClicked
()));
charSelect
=
new
KCharSelect
(
page
,
_chr
,
QFont
(
_font
)
);
connect
(
charSelect
,
SIGNAL
(
charSelect
ed
()),
this
,
SLOT
(
slotDoubleClicked
()));
charSelect
->
resize
(
charSelect
->
sizeHint
()
);
charSelect
->
enableFontCombo
(
true
);
//
charSelect->enableFontCombo( true );
grid
->
addWidget
(
charSelect
,
0
,
0
);
grid
->
addItem
(
new
QSpacerItem
(
charSelect
->
width
(),
0
),
0
,
0
);
...
...
@@ -114,12 +114,12 @@ bool KoCharSelectDia::selectChar( QString &_font, QChar &_chr, bool _enableFont,
QChar
KoCharSelectDia
::
chr
()
const
{
return
charSelect
->
c
h
r
();
return
charSelect
->
c
urrentCha
r
();
}
QString
KoCharSelectDia
::
font
()
const
{
return
charSelect
->
font
();
return
charSelect
->
font
()
.
family
()
;
}
void
KoCharSelectDia
::
slotUser1
()
...
...
libs/koproperty/editors/symbolcombo.cpp
View file @
b1078694
...
...
@@ -103,14 +103,15 @@ SymbolCombo::selectChar()
dialog
.
setModal
(
false
);
dialog
.
showButtonSeparator
(
true
);
KCharSelect
*
select
=
new
KCharSelect
(
&
dialog
,
"select_char"
);
KCharSelect
*
select
=
new
KCharSelect
(
&
dialog
);
dialog
.
setObjectName
(
"select_char"
);
dialog
.
setMainWidget
(
select
);
if
(
!
(
m_edit
->
text
().
isNull
()))
select
->
setChar
(
m_edit
->
text
().
at
(
0
));
if
(
dialog
.
exec
()
==
QDialog
::
Accepted
)
m_edit
->
setText
(
select
->
c
h
r
());
m_edit
->
setText
(
select
->
c
urrentCha
r
());
}
void
...
...
Write
Preview
Markdown
is supported
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