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
62a5ad33
Commit
62a5ad33
authored
Feb 19, 2019
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added possibility to start in Document Mode
parent
aee477ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
preferences.ui
resources/forms/preferences.ui
+6
-1
UBApplication.cpp
src/core/UBApplication.cpp
+5
-3
No files found.
resources/forms/preferences.ui
View file @
62a5ad33
...
...
@@ -82,7 +82,7 @@
<item
row=
"1"
column=
"0"
>
<widget
class=
"QTabWidget"
name=
"mainTabWidget"
>
<property
name=
"currentIndex"
>
<number>
7
</number>
<number>
0
</number>
</property>
<widget
class=
"QWidget"
name=
"displayTab"
>
<attribute
name=
"title"
>
...
...
@@ -387,6 +387,11 @@
<string>
Desktop
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Document
</string>
</property>
</item>
</widget>
</item>
<item
row=
"0"
column=
"2"
>
...
...
src/core/UBApplication.cpp
View file @
62a5ad33
...
...
@@ -351,10 +351,12 @@ int UBApplication::exec(const QString& pFileToImport)
if
(
pFileToImport
.
length
()
>
0
)
UBApplication
::
applicationController
->
importFile
(
pFileToImport
);
if
(
UBSettings
::
settings
()
->
appStartMode
->
get
().
toInt
())
applicationController
->
showDesktop
();
else
if
(
UBSettings
::
settings
()
->
appStartMode
->
get
().
toInt
()
==
0
)
applicationController
->
showBoard
();
else
if
(
UBSettings
::
settings
()
->
appStartMode
->
get
().
toInt
()
==
1
)
applicationController
->
showDesktop
();
else
if
(
UBSettings
::
settings
()
->
appStartMode
->
get
().
toInt
()
==
2
)
applicationController
->
showDocument
();
emit
UBDrawingController
::
drawingController
()
->
colorPaletteChanged
();
...
...
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