Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
linphone-desktop
Commits
d35ca30b
Commit
d35ca30b
authored
Feb 15, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
b81f52dd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
129 additions
and
100 deletions
+129
-100
resources.qrc
linphone-desktop/resources.qrc
+1
-0
MainWindow.qml
linphone-desktop/ui/views/App/Main/MainWindow.qml
+117
-100
MainWindowMenuBar.qml
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
+11
-0
No files found.
linphone-desktop/resources.qrc
View file @
d35ca30b
...
...
@@ -303,6 +303,7 @@
<file>
ui/views/App/Main/Contacts.qml
</file>
<file>
ui/views/App/Main/Conversation.qml
</file>
<file>
ui/views/App/Main/Home.qml
</file>
<file>
ui/views/App/Main/MainWindowMenuBar.qml
</file>
<file>
ui/views/App/Main/MainWindow.qml
</file>
<file>
ui/views/App/ManageAccounts.qml
</file>
<file>
ui/views/App/qmldir
</file>
...
...
linphone-desktop/ui/views/App/Main/MainWindow.qml
View file @
d35ca30b
...
...
@@ -2,6 +2,8 @@ import QtQuick 2.7
import
QtQuick
.
Controls
2.0
import
QtQuick
.
Layouts
1.3
import
QtQuick
.
Controls
1.4
as
Controls1
import
Common
1.0
import
Linphone
1.0
import
Utils
1.0
...
...
@@ -10,7 +12,7 @@ import App.Styles 1.0
// =============================================================================
ApplicationWindow
{
Controls1.
ApplicationWindow
{
id
:
window
property
string
_currentView
:
''
...
...
@@ -62,7 +64,7 @@ ApplicationWindow {
}
function
_setView
(
view
,
props
)
{
window
.
s
how
(
)
window
.
s
etVisible
(
true
)
window
.
requestActivate
()
collapse
.
setCollapsed
(
true
)
...
...
@@ -84,12 +86,24 @@ ApplicationWindow {
onActiveFocusItemChanged
:
activeFocusItem
==
null
&&
smartSearchBar
.
hideMenu
()
// ---------------------------------------------------------------------------
//
Toolbar properties
.
//
Menu bar
.
// ---------------------------------------------------------------------------
header
:
ToolBar
{
menuBar
:
MainWindowMenuBar
{}
ColumnLayout
{
anchors.fill
:
parent
spacing
:
0
// -------------------------------------------------------------------------
// Toolbar properties.
// -------------------------------------------------------------------------
ToolBar
{
background
:
MainWindowStyle
.
toolBar
.
background
height
:
MainWindowStyle
.
toolBar
.
height
Layout.preferredHeight
:
MainWindowStyle
.
toolBar
.
height
Layout.fillWidth
:
true
RowLayout
{
anchors
{
...
...
@@ -171,12 +185,14 @@ ApplicationWindow {
}
}
// --
-------------------------------------------------------------------------
//
-------------------------------------------------------------------------
// Content.
// --
-------------------------------------------------------------------------
//
-------------------------------------------------------------------------
RowLayout
{
anchors.fill
:
parent
Layout.fillHeight
:
true
Layout.fillWidth
:
true
spacing
:
0
// Main menu.
...
...
@@ -225,4 +241,5 @@ ApplicationWindow {
Component.onCompleted
:
setView
(
'
Home
'
)
}
}
}
}
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
0 → 100644
View file @
d35ca30b
import
QtQuick
.
Controls
1.4
MenuBar
{
Menu
{
title
:
"
File
"
MenuItem
{
text
:
"
Open...
"
}
MenuItem
{
text
:
"
Close
"
}
}
}
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