Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
fd9fc419
Commit
fd9fc419
authored
Jan 16, 2012
by
Ivan Ilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sankore-341 Sankore-363 Sankore-365
parent
cca8ac7f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
2 deletions
+9
-2
UBSettings.cpp
src/core/UBSettings.cpp
+1
-0
UBSettings.h
src/core/UBSettings.h
+2
-0
UBGraphicsScene.cpp
src/domain/UBGraphicsScene.cpp
+1
-1
UBDocumentThumbnailWidget.cpp
src/gui/UBDocumentThumbnailWidget.cpp
+2
-0
UBKeyboardPalette.cpp
src/gui/UBKeyboardPalette.cpp
+3
-1
No files found.
src/core/UBSettings.cpp
View file @
fd9fc419
...
...
@@ -363,6 +363,7 @@ void UBSettings::init()
intranetPodcastPublishingUrl
=
new
UBSetting
(
this
,
"IntranetPodcast"
,
"PublishingUrl"
,
""
);
intranetPodcastAuthor
=
new
UBSetting
(
this
,
"IntranetPodcast"
,
"Author"
,
""
);
KeyboardLocale
=
new
UBSetting
(
this
,
"Board"
,
"StartupKeyboardLocale"
,
0
);
}
...
...
src/core/UBSettings.h
View file @
fd9fc419
...
...
@@ -318,6 +318,8 @@ class UBSettings : public QObject
static int libPaletteWidth;
*/
UBSetting
*
KeyboardLocale
;
public
slots
:
void
setPenWidthIndex
(
int
index
);
...
...
src/domain/UBGraphicsScene.cpp
View file @
fd9fc419
...
...
@@ -1938,7 +1938,7 @@ void UBGraphicsScene::keyReleaseEvent(QKeyEvent * keyEvent)
QList
<
QGraphicsItem
*>
si
=
selectedItems
();
if
(
si
.
size
()
>
0
&&
!
keyEvent
->
isAccepted
(
))
if
(
(
si
.
size
()
>
0
)
&&
(
keyEvent
->
isAccepted
()
))
{
#ifdef Q_OS_MAC
if
(
keyEvent
->
key
()
==
Qt
::
Key_Backspace
)
...
...
src/gui/UBDocumentThumbnailWidget.cpp
View file @
fd9fc419
...
...
@@ -254,4 +254,6 @@ void UBDocumentThumbnailWidget::hightlightItem(int index)
if
(
thumbnail
)
thumbnail
->
highlight
();
}
selectItemAt
(
index
);
}
src/gui/UBKeyboardPalette.cpp
View file @
fd9fc419
...
...
@@ -54,7 +54,7 @@ UBKeyboardPalette::UBKeyboardPalette(QWidget *parent)
createCtrlButtons
();
nCurrentLocale
=
0
;
nCurrentLocale
=
UBSettings
::
settings
()
->
KeyboardLocale
->
get
().
toInt
()
;
setInput
(
locales
[
nCurrentLocale
]);
setContentsMargins
(
22
,
22
,
22
,
22
);
...
...
@@ -166,6 +166,8 @@ void UBKeyboardPalette::setLocale(int nLocale)
setInput
(
locales
[
nCurrentLocale
]);
onLocaleChanged
(
locales
[
nCurrentLocale
]);
update
();
UBSettings
::
settings
()
->
KeyboardLocale
->
set
(
nCurrentLocale
);
}
emit
localeChanged
(
nLocale
);
}
...
...
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