Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
J
jami-client-windows
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
savoirfairelinux
jami-client-windows
Commits
7cf39e2d
Commit
7cf39e2d
authored
Feb 02, 2016
by
Edric Milaret
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
im: add a copy button to cm combobox
Change-Id: Id5b023beef399403d92056bc83a21db0df7a3838 Tuleap: #321
parent
7ef617b7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
3 deletions
+46
-3
callwidget.cpp
callwidget.cpp
+7
-0
callwidget.h
callwidget.h
+1
-0
callwidget.ui
callwidget.ui
+29
-0
images/ic_content_copy_white.svg
images/ic_content_copy_white.svg
+4
-0
ressources.qrc
ressources.qrc
+1
-0
stylesheet.css
stylesheet.css
+4
-3
No files found.
callwidget.cpp
View file @
7cf39e2d
...
...
@@ -698,3 +698,10 @@ CallWidget::slideToRight(QPropertyAnimation* anim, QWidget* widget)
anim
->
setEasingCurve
(
QEasingCurve
::
OutQuad
);
anim
->
start
();
}
void
CallWidget
::
on_copyCMButton_clicked
()
{
auto
text
=
ui
->
contactMethodComboBox
->
currentText
();
QApplication
::
clipboard
()
->
setText
(
text
);
}
callwidget.h
View file @
7cf39e2d
...
...
@@ -79,6 +79,7 @@ private slots:
void
on_contactMethodComboBox_currentIndexChanged
(
const
QString
&
number
);
void
on_ringContactLineEdit_textChanged
(
const
QString
&
text
);
void
on_imBackButton_clicked
();
void
on_copyCMButton_clicked
();
private
slots
:
void
callIncoming
(
Call
*
call
);
...
...
callwidget.ui
View file @
7cf39e2d
...
...
@@ -773,6 +773,35 @@
</property>
</widget>
</item>
<item>
<widget
class=
"QPushButton"
name=
"copyCMButton"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Fixed"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
30
</width>
<height>
30
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
30
</width>
<height>
30
</height>
</size>
</property>
<property
name=
"text"
>
<string/>
</property>
<property
name=
"icon"
>
<iconset
resource=
"ressources.qrc"
>
<normaloff>
:/images/ic_content_copy_white.svg
</normaloff>
:/images/ic_content_copy_white.svg
</iconset>
</property>
</widget>
</item>
</layout>
</item>
<item
alignment=
"Qt::AlignHCenter|Qt::AlignVCenter"
>
...
...
images/ic_content_copy_white.svg
0 → 100644
View file @
7cf39e2d
<svg
fill=
"#FFFFFF"
height=
"48"
viewBox=
"0 0 24 24"
width=
"48"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M0 0h24v24H0z"
fill=
"none"
/>
<path
d=
"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"
/>
</svg>
\ No newline at end of file
ressources.qrc
View file @
7cf39e2d
...
...
@@ -45,5 +45,6 @@
<file>images/video-conf/ic_high_quality_white.svg</file>
<file>images/ic_send_white.svg</file>
<file>images/ic_pause_white.svg</file>
<file>images/ic_content_copy_white.svg</file>
</qresource>
</RCC>
stylesheet.css
View file @
7cf39e2d
...
...
@@ -126,17 +126,18 @@ QPushButton#hangupButton:pressed{
background-color
:
rgba
(
255
,
0
,
0
,
0.8
);
}
QPushButton
#imBackButton
,
QPushButton
#addToContactButton
{
QPushButton
#addToContactButton
,
QPushButton
#imBackButton
,
QPushButton
#copyCMButton
{
background-color
:
#414141
;
border-radius
:
15px
;
border
:
solid
1px
;
}
QPushButton
#imBackButton
:hover
{
QPushButton
#imBackButton
:hover
,
QPushButton
#copyCMButton
:hover
{
background-color
:
#515151
;
}
QPushButton
#imBackButton
:pressed
{
QPushButton
#imBackButton
:pressed
,
QPushButton
#copyCMButton
:pressed
{
background-color
:
#313131
;
}
...
...
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