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
c1275cab
Commit
c1275cab
authored
May 17, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui/views/App/Main/MainWindowMenuBar): clean file and remove useless code
parent
533d57fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
80 deletions
+24
-80
resources.qrc
linphone-desktop/resources.qrc
+0
-1
MainWindowMenuBar.qml
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
+24
-27
MainWindowMenuBarStyle.qml
...sktop/ui/views/App/Styles/Main/MainWindowMenuBarStyle.qml
+0
-51
qmldir
linphone-desktop/ui/views/App/Styles/qmldir
+0
-1
No files found.
linphone-desktop/resources.qrc
View file @
c1275cab
...
...
@@ -405,7 +405,6 @@
<file>
ui/views/App/Styles/Main/ConversationStyle.qml
</file>
<file>
ui/views/App/Styles/Main/HomeStyle.qml
</file>
<file>
ui/views/App/Styles/Main/InviteFriendsStyle.qml
</file>
<file>
ui/views/App/Styles/Main/MainWindowMenuBarStyle.qml
</file>
<file>
ui/views/App/Styles/Main/MainWindowStyle.qml
</file>
<file>
ui/views/App/Styles/Main/ManageAccountsStyle.qml
</file>
<file>
ui/views/App/Styles/qmldir
</file>
...
...
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
View file @
c1275cab
import
QtQuick
2.7
import
QtQuick
.
Controls
2.1
import
QtQuick
.
Controls
.
Styles
1.4
import
QtQuick
.
Window
2.2
// Experimental.
import
Qt
.
labs
.
platform
1.0
import
Linphone
1.0
import
App
.
Styles
1.0
// =============================================================================
Item
{
function
open
()
{
function
open
()
{
menu
.
open
()
}
// ---------------------------------------------------------------------------
// Shortcuts.
// ---------------------------------------------------------------------------
Shortcut
{
id
:
settings_shortcut
id
:
settingsShortcut
context
:
Qt
.
ApplicationShortcut
sequence
:
StandardKey
.
Preferences
onActivated
:
{
var
window
=
App
.
getSettingsWindow
()
if
(
window
.
visibility
===
Window
.
Minimized
)
{
window
.
visibility
=
Window
.
AutomaticVisibility
}
else
{
window
.
setVisible
(
true
)
}
}
onActivated
:
App
.
smartShowWindow
(
App
.
getSettingsWindow
())
}
Shortcut
{
id
:
quit
_s
hortcut
sequence
:
StandardKey
.
Quit
id
:
quit
S
hortcut
context
:
Qt
.
ApplicationShortcut
sequence
:
StandardKey
.
Quit
onActivated
:
Qt
.
quit
()
}
Shortcut
{
id
:
about_shortcut
id
:
aboutShortcut
sequence
:
StandardKey
.
HelpContents
onActivated
:
{
window
.
detachVirtualWindow
()
window
.
attachVirtualWindow
(
Qt
.
resolvedUrl
(
'
About.qml
'
))
...
...
@@ -59,19 +56,19 @@ Item {
title
:
qsTr
(
'
options
'
)
MenuItem
{
shortcut
:
settings
_s
hortcut
.
sequence
shortcut
:
settings
S
hortcut
.
sequence
text
:
qsTr
(
'
settings
'
)
onTriggered
:
settings
_s
hortcut
.
onActivated
()
onTriggered
:
settings
S
hortcut
.
onActivated
()
}
MenuSeparator
{}
MenuItem
{
shortcut
:
quit
_s
hortcut
.
sequence
shortcut
:
quit
S
hortcut
.
sequence
text
:
qsTr
(
'
quit
'
)
onTriggered
:
quit
_s
hortcut
.
onActivated
()
onTriggered
:
quit
S
hortcut
.
onActivated
()
}
}
...
...
@@ -97,10 +94,10 @@ Item {
title
:
qsTr
(
'
help
'
)
MenuItem
{
shortcut
:
about
_s
hortcut
.
sequence
shortcut
:
about
S
hortcut
.
sequence
text
:
qsTr
(
'
about
'
)
onTriggered
:
about
_s
hortcut
.
onActivated
()
onTriggered
:
about
S
hortcut
.
onActivated
()
}
MenuSeparator
{}
...
...
@@ -112,4 +109,4 @@ Item {
}
}
}
}
\ No newline at end of file
}
linphone-desktop/ui/views/App/Styles/Main/MainWindowMenuBarStyle.qml
deleted
100644 → 0
View file @
533d57fd
pragma
Singleton
import
QtQuick
2.7
import
Common
1.0
// =============================================================================
QtObject
{
property
color
color
:
Colors
.
v
property
int
height
:
27
property
QtObject
menu
:
QtObject
{
property
QtObject
text
:
QtObject
{
property
int
fontSize
:
10
property
int
horizontalMargins
:
9
property
int
verticalMargins
:
4
property
QtObject
color
:
QtObject
{
property
color
selected
:
Colors
.
i
property
color
normal
:
Colors
.
b
}
}
property
QtObject
indicator
:
QtObject
{
property
color
color
:
Colors
.
i
property
int
height
:
2
}
}
property
QtObject
separator
:
QtObject
{
property
color
color
:
Colors
.
u
property
int
height
:
1
property
int
spacing
:
4
}
property
QtObject
subMenu
:
QtObject
{
property
QtObject
color
:
QtObject
{
property
color
selected
:
Colors
.
i
property
color
normal
:
Colors
.
k
}
property
QtObject
text
:
QtObject
{
property
int
fontSize
:
10
property
QtObject
color
:
QtObject
{
property
color
selected
:
Colors
.
k
property
color
normal
:
Colors
.
b
}
}
}
}
linphone-desktop/ui/views/App/Styles/qmldir
View file @
c1275cab
...
...
@@ -22,7 +22,6 @@ singleton ContactsStyle 1.0 Main/ContactsStyle.qml
singleton ConversationStyle 1.0 Main/ConversationStyle.qml
singleton HomeStyle 1.0 Main/HomeStyle.qml
singleton InviteFriendsStyle 1.0 Main/InviteFriendsStyle.qml
singleton MainWindowMenuBarStyle 1.0 Main/MainWindowMenuBarStyle.qml
singleton MainWindowStyle 1.0 Main/MainWindowStyle.qml
singleton ManageAccountsStyle 1.0 Main/ManageAccountsStyle.qml
...
...
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