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
35828719
Commit
35828719
authored
May 30, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/modules/Linphone/Chat/Message): supports copy of messages
parent
545f39cf
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
337 additions
and
17 deletions
+337
-17
CMakeLists.txt
linphone-desktop/CMakeLists.txt
+2
-0
en.ts
linphone-desktop/assets/languages/en.ts
+14
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+14
-0
resources.qrc
linphone-desktop/resources.qrc
+5
-0
Utils.hpp
linphone-desktop/src/Utils.hpp
+0
-1
App.cpp
linphone-desktop/src/app/App.cpp
+3
-1
Clipboard.cpp
linphone-desktop/src/app/clipboard/Clipboard.cpp
+25
-0
Clipboard.hpp
linphone-desktop/src/app/clipboard/Clipboard.hpp
+36
-0
Paths.cpp
linphone-desktop/src/app/paths/Paths.cpp
+2
-2
AvatarProvider.cpp
linphone-desktop/src/app/providers/AvatarProvider.cpp
+1
-1
ThumbnailProvider.cpp
linphone-desktop/src/app/providers/ThumbnailProvider.cpp
+1
-1
Components.hpp
linphone-desktop/src/components/Components.hpp
+1
-0
CallModel.cpp
linphone-desktop/src/components/call/CallModel.cpp
+2
-2
Clipboard.cpp
linphone-desktop/src/components/clipboard/Clipboard.cpp
+49
-0
Clipboard.hpp
linphone-desktop/src/components/clipboard/Clipboard.hpp
+57
-0
Menu.qml
linphone-desktop/ui/modules/Common/Menus/Menu.qml
+21
-0
MenuItem.qml
linphone-desktop/ui/modules/Common/Menus/MenuItem.qml
+34
-0
MenuItemStyle.qml
...-desktop/ui/modules/Common/Styles/Menus/MenuItemStyle.qml
+26
-0
MenuStyle.qml
...hone-desktop/ui/modules/Common/Styles/Menus/MenuStyle.qml
+11
-0
qmldir
linphone-desktop/ui/modules/Common/Styles/qmldir
+2
-0
qmldir
linphone-desktop/ui/modules/Common/qmldir
+2
-0
Message.qml
linphone-desktop/ui/modules/Linphone/Chat/Message.qml
+13
-3
MessageMenu.qml
linphone-desktop/ui/modules/Linphone/Chat/MessageMenu.qml
+10
-0
CallTransfer.qml
linphone-desktop/ui/views/App/Calls/Dialogs/CallTransfer.qml
+6
-6
No files found.
linphone-desktop/CMakeLists.txt
View file @
35828719
...
...
@@ -105,6 +105,7 @@ set(SOURCES
src/components/camera/MSFunctions.cpp
src/components/chat/ChatModel.cpp
src/components/chat/ChatProxyModel.cpp
src/components/clipboard/Clipboard.cpp
src/components/codecs/AbstractCodecsModel.cpp
src/components/codecs/AudioCodecsModel.cpp
src/components/codecs/VideoCodecsModel.cpp
...
...
@@ -149,6 +150,7 @@ set(HEADERS
src/components/camera/MSFunctions.hpp
src/components/chat/ChatModel.hpp
src/components/chat/ChatProxyModel.hpp
src/components/clipboard/Clipboard.cpp
src/components/codecs/AbstractCodecsModel.hpp
src/components/codecs/AudioCodecsModel.hpp
src/components/codecs/VideoCodecsModel.hpp
...
...
linphone-desktop/assets/languages/en.ts
View file @
35828719
...
...
@@ -822,6 +822,20 @@ your friend's SIP address or username.</translation>
<
translation
>
Select
you
active
account
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
Message
<
/name
>
<
message
>
<
source
>
menuCopy
<
/source
>
<
translation
>
Copy
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
MessageMenu
<
/name
>
<
message
>
<
source
>
copy
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
OutgoingMessage
<
/name
>
<
message
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
35828719
...
...
@@ -821,6 +821,20 @@ un chat ou ajouter un contact.</translation>
<
translation
>
S
é
lectionner
votre
compte
principal
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
Message
<
/name
>
<
message
>
<
source
>
menuCopy
<
/source
>
<
translation
>
Copier
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
MessageMenu
<
/name
>
<
message
>
<
source
>
copy
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
OutgoingMessage
<
/name
>
<
message
>
...
...
linphone-desktop/resources.qrc
View file @
35828719
...
...
@@ -243,6 +243,8 @@
<file>
ui/modules/Common/Menus/DropDownDynamicMenu.qml
</file>
<file>
ui/modules/Common/Menus/DropDownStaticMenuEntry.qml
</file>
<file>
ui/modules/Common/Menus/DropDownStaticMenu.qml
</file>
<file>
ui/modules/Common/Menus/MenuItem.qml
</file>
<file>
ui/modules/Common/Menus/Menu.qml
</file>
<file>
ui/modules/Common/Misc/Borders.qml
</file>
<file>
ui/modules/Common/Misc/Collapse.qml
</file>
<file>
ui/modules/Common/Misc/ForceScrollBar.qml
</file>
...
...
@@ -281,6 +283,8 @@
<file>
ui/modules/Common/Styles/Indicators/VuMeterStyle.qml
</file>
<file>
ui/modules/Common/Styles/Menus/ApplicationMenuStyle.qml
</file>
<file>
ui/modules/Common/Styles/Menus/DropDownStaticMenuStyle.qml
</file>
<file>
ui/modules/Common/Styles/Menus/MenuItemStyle.qml
</file>
<file>
ui/modules/Common/Styles/Menus/MenuStyle.qml
</file>
<file>
ui/modules/Common/Styles/Misc/CollapseStyle.qml
</file>
<file>
ui/modules/Common/Styles/Misc/ForceScrollBarStyle.qml
</file>
<file>
ui/modules/Common/Styles/Misc/PanedStyle.qml
</file>
...
...
@@ -310,6 +314,7 @@
<file>
ui/modules/Linphone/Chat/FileMessage.qml
</file>
<file>
ui/modules/Linphone/Chat/IncomingMessage.qml
</file>
<file>
ui/modules/Linphone/Chat/Message.js
</file>
<file>
ui/modules/Linphone/Chat/MessageMenu.qml
</file>
<file>
ui/modules/Linphone/Chat/Message.qml
</file>
<file>
ui/modules/Linphone/Chat/OutgoingMessage.qml
</file>
<file>
ui/modules/Linphone/Codecs/CodecAttribute.qml
</file>
...
...
linphone-desktop/src/Utils.hpp
View file @
35828719
...
...
@@ -23,7 +23,6 @@
#ifndef UTILS_H_
#define UTILS_H_
#include <QObject>
#include <QString>
// =============================================================================
...
...
linphone-desktop/src/app/App.cpp
View file @
35828719
...
...
@@ -151,8 +151,9 @@ void App::initContentApp () {
);
}
// Init core.
// Init core
and clipboard
.
CoreManager
::
init
(
this
,
mParser
.
value
(
"config"
));
Clipboard
::
init
(
this
);
// Init engine content.
mEngine
=
new
QQmlApplicationEngine
();
...
...
@@ -373,6 +374,7 @@ void App::registerSharedTypes () {
qInfo
()
<<
QStringLiteral
(
"Registering shared types..."
);
registerSharedSingletonType
(
App
,
"App"
,
App
::
getInstance
);
registerSharedSingletonType
(
Clipboard
,
"Clipboard"
,
Clipboard
::
getInstance
);
registerSharedSingletonType
(
CoreManager
,
"CoreManager"
,
CoreManager
::
getInstance
);
registerSharedSingletonType
(
SettingsModel
,
"SettingsModel"
,
CoreManager
::
getInstance
()
->
getSettingsModel
);
registerSharedSingletonType
(
AccountSettingsModel
,
"AccountSettingsModel"
,
CoreManager
::
getInstance
()
->
getAccountSettingsModel
);
...
...
linphone-desktop/src/app/clipboard/Clipboard.cpp
0 → 100644
View file @
35828719
/*
* Clipboard.cpp
* Copyright (C) 2017 Belledonne Communications, Grenoble, France
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Created on: May 30, 2017
* Author: Ronan Abhamon
*/
#include "Clipboard.hpp"
// =============================================================================
linphone-desktop/src/app/clipboard/Clipboard.hpp
0 → 100644
View file @
35828719
/*
* Clipboard.hpp
* Copyright (C) 2017 Belledonne Communications, Grenoble, France
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Created on: May 30, 2017
* Author: Ronan Abhamon
*/
#ifndef CLIPBOARD_H_
#define CLIPBOARD_H_
#include <QObject>
// =============================================================================
class
Clipboard
:
public
QObject
{
Q_OBJECT
;
Q_PRO
};
#endif // ifndef CLIPBOARD_H_
linphone-desktop/src/app/paths/Paths.cpp
View file @
35828719
...
...
@@ -80,7 +80,7 @@ inline void ensureFilePathExists (const QString &path) {
}
inline
string
getReadableDirPath
(
const
QString
&
dirname
)
{
return
Utils
::
appStringToCoreString
(
QDir
::
toNativeSeparators
(
dirname
));
return
::
Utils
::
appStringToCoreString
(
QDir
::
toNativeSeparators
(
dirname
));
}
inline
string
getWritableDirPath
(
const
QString
&
dirname
)
{
...
...
@@ -89,7 +89,7 @@ inline string getWritableDirPath (const QString &dirname) {
}
inline
string
getReadableFilePath
(
const
QString
&
filename
)
{
return
Utils
::
appStringToCoreString
(
QDir
::
toNativeSeparators
(
filename
));
return
::
Utils
::
appStringToCoreString
(
QDir
::
toNativeSeparators
(
filename
));
}
inline
string
getWritableFilePath
(
const
QString
&
filename
)
{
...
...
linphone-desktop/src/app/providers/AvatarProvider.cpp
View file @
35828719
...
...
@@ -33,7 +33,7 @@ AvatarProvider::AvatarProvider () : QQuickImageProvider(
QQmlImageProviderBase
::
Image
,
QQmlImageProviderBase
::
ForceAsynchronousImageLoading
)
{
mAvatarsPath
=
Utils
::
coreStringToAppString
(
Paths
::
getAvatarsDirPath
());
mAvatarsPath
=
::
Utils
::
coreStringToAppString
(
Paths
::
getAvatarsDirPath
());
}
QImage
AvatarProvider
::
requestImage
(
const
QString
&
id
,
QSize
*
,
const
QSize
&
)
{
...
...
linphone-desktop/src/app/providers/ThumbnailProvider.cpp
View file @
35828719
...
...
@@ -33,7 +33,7 @@ ThumbnailProvider::ThumbnailProvider () : QQuickImageProvider(
QQmlImageProviderBase
::
Image
,
QQmlImageProviderBase
::
ForceAsynchronousImageLoading
)
{
mThumbnailsPath
=
Utils
::
coreStringToAppString
(
Paths
::
getThumbnailsDirPath
());
mThumbnailsPath
=
::
Utils
::
coreStringToAppString
(
Paths
::
getThumbnailsDirPath
());
}
QImage
ThumbnailProvider
::
requestImage
(
const
QString
&
id
,
QSize
*
,
const
QSize
&
)
{
...
...
linphone-desktop/src/components/Components.hpp
View file @
35828719
...
...
@@ -30,6 +30,7 @@
#include "camera/Camera.hpp"
#include "camera/CameraPreview.hpp"
#include "chat/ChatProxyModel.hpp"
#include "clipboard/Clipboard.hpp"
#include "codecs/AudioCodecsModel.hpp"
#include "codecs/VideoCodecsModel.hpp"
#include "conference/ConferenceAddModel.hpp"
...
...
linphone-desktop/src/components/call/CallModel.cpp
View file @
35828719
...
...
@@ -606,7 +606,7 @@ void CallModel::updateStats (const shared_ptr<const linphone::CallStats> &callSt
statsList
<<
createStat
(
tr
(
"callStatsJitterBuffer"
),
QString
(
"%1 ms"
).
arg
(
callStats
->
getJitterBufferSizeMs
()));
break
;
case
linphone
:
:
StreamTypeVideo
:
{
QString
sentVideoDefinitionName
=
Utils
::
coreStringToAppString
(
params
->
getSentVideoDefinition
()
->
getName
());
QString
sentVideoDefinitionName
=
::
Utils
::
coreStringToAppString
(
params
->
getSentVideoDefinition
()
->
getName
());
QString
sentVideoDefinition
=
QString
(
"%1x%2"
)
.
arg
(
params
->
getSentVideoDefinition
()
->
getWidth
())
.
arg
(
params
->
getSentVideoDefinition
()
->
getHeight
());
...
...
@@ -615,7 +615,7 @@ void CallModel::updateStats (const shared_ptr<const linphone::CallStats> &callSt
?
sentVideoDefinition
:
QString
(
"%1 (%2)"
).
arg
(
sentVideoDefinition
).
arg
(
sentVideoDefinitionName
));
QString
receivedVideoDefinitionName
=
Utils
::
coreStringToAppString
(
params
->
getReceivedVideoDefinition
()
->
getName
());
QString
receivedVideoDefinitionName
=
::
Utils
::
coreStringToAppString
(
params
->
getReceivedVideoDefinition
()
->
getName
());
QString
receivedVideoDefinition
=
QString
(
"%1x%2"
)
.
arg
(
params
->
getReceivedVideoDefinition
()
->
getWidth
())
.
arg
(
params
->
getReceivedVideoDefinition
()
->
getHeight
());
...
...
linphone-desktop/src/components/clipboard/Clipboard.cpp
0 → 100644
View file @
35828719
/*
* Clipboard.cpp
* Copyright (C) 2017 Belledonne Communications, Grenoble, France
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Created on: May 30, 2017
* Author: Ronan Abhamon
*/
#include <QClipboard>
#include <QGuiApplication>
#include "Clipboard.hpp"
// =============================================================================
Clipboard
*
Clipboard
::
mInstance
=
nullptr
;
Clipboard
::
Clipboard
(
QObject
*
parent
)
:
QObject
(
parent
)
{
connect
(
QGuiApplication
::
clipboard
(),
&
QClipboard
::
dataChanged
,
this
,
&
Clipboard
::
textChanged
);
}
// -----------------------------------------------------------------------------
void
Clipboard
::
init
(
QObject
*
parent
)
{
if
(
!
mInstance
)
mInstance
=
new
Clipboard
(
parent
);
}
QString
Clipboard
::
getText
()
const
{
return
QGuiApplication
::
clipboard
()
->
text
(
QClipboard
::
Clipboard
);
}
void
Clipboard
::
setText
(
const
QString
&
text
)
{
QGuiApplication
::
clipboard
()
->
setText
(
text
,
QClipboard
::
Clipboard
);
}
linphone-desktop/src/components/clipboard/Clipboard.hpp
0 → 100644
View file @
35828719
/*
* Clipboard.hpp
* Copyright (C) 2017 Belledonne Communications, Grenoble, France
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Created on: May 30, 2017
* Author: Ronan Abhamon
*/
#ifndef CLIPBOARD_H_
#define CLIPBOARD_H_
#include <QObject>
// =============================================================================
class
Clipboard
:
public
QObject
{
Q_OBJECT
;
Q_PROPERTY
(
QString
text
READ
getText
WRITE
setText
NOTIFY
textChanged
);
public:
~
Clipboard
()
=
default
;
static
void
init
(
QObject
*
parent
);
static
Clipboard
*
getInstance
()
{
Q_ASSERT
(
mInstance
!=
nullptr
);
return
mInstance
;
}
signals:
void
textChanged
();
private:
Clipboard
(
QObject
*
parent
);
QString
getText
()
const
;
void
setText
(
const
QString
&
text
);
static
Clipboard
*
mInstance
;
};
#endif // ifndef CLIPBOARD_H_
linphone-desktop/ui/modules/Common/Menus/Menu.qml
0 → 100644
View file @
35828719
import
QtQuick
2.7
import
QtQuick
.
Controls
2.1
as
Controls
import
Common
1.0
import
Common
.
Styles
1.0
// =============================================================================
Controls.Menu
{
id
:
menu
background
:
Rectangle
{
implicitWidth
:
MenuStyle
.
width
color
:
MenuStyle
.
color
layer
{
enabled
:
true
effect
:
PopupShadow
{}
}
}
}
linphone-desktop/ui/modules/Common/Menus/MenuItem.qml
0 → 100644
View file @
35828719
import
QtQuick
2.7
import
QtQuick
.
Controls
2.1
import
Common
.
Styles
1.0
// =============================================================================
MenuItem
{
id
:
button
background
:
Rectangle
{
color
:
button
.
down
?
MenuItemStyle
.
background
.
color
.
pressed
:
(
button
.
hovered
?
MenuItemStyle
.
background
.
color
.
hovered
:
MenuItemStyle
.
background
.
color
.
normal
)
implicitHeight
:
MenuItemStyle
.
background
.
height
}
contentItem
:
Text
{
color
:
MenuItemStyle
.
text
.
color
elide
:
Text
.
ElideRight
font.bold
:
true
font.pointSize
:
MenuItemStyle
.
text
.
fontSize
text
:
button
.
text
leftPadding
:
MenuItemStyle
.
leftPadding
rightPadding
:
MenuItemStyle
.
rightPadding
verticalAlignment
:
Text
.
AlignVCenter
}
hoverEnabled
:
true
}
linphone-desktop/ui/modules/Common/Styles/Menus/MenuItemStyle.qml
0 → 100644
View file @
35828719
pragma
Singleton
import
QtQuick
2.7
import
Common
1.0
// =============================================================================
QtObject
{
property
int
leftPadding
:
5
property
int
rightPadding
:
5
property
QtObject
background
:
QtObject
{
property
int
height
:
30
property
QtObject
color
:
QtObject
{
property
color
hovered
:
Colors
.
y
property
color
normal
:
Colors
.
k
property
color
pressed
:
Colors
.
y
}
}
property
QtObject
text
:
QtObject
{
property
color
color
:
Colors
.
j
property
int
fontSize
:
10
}
}
linphone-desktop/ui/modules/Common/Styles/Menus/MenuStyle.qml
0 → 100644
View file @
35828719
pragma
Singleton
import
QtQuick
2.7
import
Common
1.0
// =============================================================================
QtObject
{
property
color
color
:
Colors
.
k
property
int
width
:
130
}
linphone-desktop/ui/modules/Common/Styles/qmldir
View file @
35828719
...
...
@@ -42,6 +42,8 @@ singleton VuMeterStyle 1.0 Indicators/VuMeterStyle.qml
singleton ApplicationMenuStyle 1.0 Menus/ApplicationMenuStyle.qml
singleton DropDownStaticMenuStyle 1.0 Menus/DropDownStaticMenuStyle.qml
singleton MenuItemStyle 1.0 Menus/MenuItemStyle.qml
singleton MenuStyle 1.0 Menus/MenuStyle.qml
singleton CollapseStyle 1.0 Misc/CollapseStyle.qml
singleton ForceScrollBarStyle 1.0 Misc/ForceScrollBarStyle.qml
...
...
linphone-desktop/ui/modules/Common/qmldir
View file @
35828719
...
...
@@ -65,6 +65,8 @@ ApplicationMenu 1.0 Menus/ApplicationMenu.qml
DropDownDynamicMenu 1.0 Menus/DropDownDynamicMenu.qml
DropDownStaticMenu 1.0 Menus/DropDownStaticMenu.qml
DropDownStaticMenuEntry 1.0 Menus/DropDownStaticMenuEntry.qml
Menu 1.0 Menus/Menu.qml
MenuItem 1.0 Menus/MenuItem.qml
Borders 1.0 Misc/Borders.qml
Collapse 1.0 Misc/Collapse.qml
...
...
linphone-desktop/ui/modules/Linphone/Chat/Message.qml
View file @
35828719
import
QtQuick
2.7
import
Common
1.0
import
Linphone
1.0
import
Linphone
.
Styles
1.0
import
Utils
1.0
...
...
@@ -66,15 +67,24 @@ Item {
onActiveFocusChanged
:
deselect
()
Menu
{
id
:
messageMenu
MenuItem
{
text
:
qsTr
(
'
menuCopy
'
)
onTriggered
:
Clipboard
.
text
=
$chatEntry
.
content
}
}
// Handle hovered link.
MouseArea
{
id
:
mouseArea
anchors.fill
:
parent
acceptedButtons
:
Qt
.
No
Button
acceptedButtons
:
Qt
.
Right
Button
cursorShape
:
parent
.
hoveredLink
?
Qt
.
PointingHandCursor
:
Qt
.
IBeamCursor
onClicked
:
mouse
.
button
===
Qt
.
RightButton
&&
messageMenu
.
open
()
}
}
...
...
linphone-desktop/ui/modules/Linphone/Chat/MessageMenu.qml
0 → 100644
View file @
35828719
import
QtQuick
2.7
import
QtQuick
.
Controls
2.1
// =============================================================================
Menu
{
MenuItem
{
text
:
qsTr
(
'
copy
'
)
}
}
linphone-desktop/ui/views/App/Calls/Dialogs/CallTransfer.qml
View file @
35828719
...
...
@@ -9,13 +9,13 @@ import App.Styles 1.0
// =============================================================================
DialogPlus
{
id
:
callTransfer
id
:
callTransfer
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
property
var
call
property
var
call
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
buttons
:
[
TextButtonA
{
...
...
@@ -31,7 +31,7 @@ DialogPlus {
height
:
CallTransferStyle
.
height
width
:
CallTransferStyle
.
width
onCallChanged
:
!
call
&&
exit
(
0
)
onCallChanged
:
!
call
&&
exit
(
0
)
// ---------------------------------------------------------------------------
...
...
@@ -87,7 +87,7 @@ DialogPlus {
icon
:
'
transfer
'
,
handler
:
function
(
entry
)
{
callTransfer
.
call
.
transferTo
(
entry
.
sipAddress
)
exit
(
1
)
exit
(
1
)
}
}]
...
...
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