Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
KCharSelect
Commits
b6eeb4d7
Commit
b6eeb4d7
authored
Sep 24, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix clazy warning
parent
67f933b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
kcharselectdia.cc
kcharselectdia.cc
+5
-5
kcharselectdia.h
kcharselectdia.h
+2
-2
No files found.
kcharselectdia.cc
View file @
b6eeb4d7
...
...
@@ -44,7 +44,7 @@ public:
:
d
(
dia
)
{
}
~
KCharSelectBookmarkOwner
()
{
}
QString
currentTitle
()
const
Q_DECL_OVERRIDE
QString
currentTitle
()
const
override
{
uint
ucs4
=
d
->
charSelect
->
currentCodePoint
();
if
(
QChar
::
isPrint
(
ucs4
))
{
...
...
@@ -54,12 +54,12 @@ public:
}
}
QUrl
currentUrl
()
const
Q_DECL_OVERRIDE
QUrl
currentUrl
()
const
override
{
return
QUrl
(
formatCodePoint
(
d
->
charSelect
->
currentCodePoint
()));
}
void
openBookmark
(
const
KBookmark
&
bm
,
Qt
::
MouseButtons
,
Qt
::
KeyboardModifiers
)
Q_DECL_OVERRIDE
void
openBookmark
(
const
KBookmark
&
bm
,
Qt
::
MouseButtons
,
Qt
::
KeyboardModifiers
)
override
{
QString
c
=
bm
.
url
().
toString
(
QUrl
::
PreferLocalFile
|
QUrl
::
RemoveScheme
);
if
(
c
.
startsWith
(
QLatin1String
(
"U+"
)))
{
...
...
@@ -87,8 +87,8 @@ private:
/******************************************************************/
//==================================================================
KCharSelectDia
::
KCharSelectDia
()
:
KXmlGuiWindow
()
KCharSelectDia
::
KCharSelectDia
(
QWidget
*
parent
)
:
KXmlGuiWindow
(
parent
)
{
KSharedConfig
::
Ptr
config
=
KSharedConfig
::
openConfig
();
KConfigGroup
gr
=
config
->
group
(
"General"
);
...
...
kcharselectdia.h
View file @
b6eeb4d7
...
...
@@ -33,12 +33,12 @@ class KCharSelectDia : public KXmlGuiWindow
Q_OBJECT
public:
KCharSelectDia
();
explicit
KCharSelectDia
(
QWidget
*
parent
=
nullptr
);
friend
class
KCharSelectBookmarkOwner
;
protected:
void
closeEvent
(
QCloseEvent
*
event
)
Q_DECL_OVERRIDE
;
void
closeEvent
(
QCloseEvent
*
event
)
override
;
QGridLayout
*
grid
;
KCharSelect
*
charSelect
;
...
...
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