Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-client-windows
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-client-windows
Commits
fd0d7c0a
Commit
fd0d7c0a
authored
6 years ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
fix regression introduced by
37ccc1c3
Change-Id: I392b63a202673aa41b473e2a7073f7bdfc025211
parent
37ccc1c3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
callwidget.cpp
+7
-4
7 additions, 4 deletions
callwidget.cpp
callwidget.ui
+40
-67
40 additions, 67 deletions
callwidget.ui
currentaccountcombobox.cpp
+56
-59
56 additions, 59 deletions
currentaccountcombobox.cpp
with
103 additions
and
130 deletions
callwidget.cpp
+
7
−
4
View file @
fd0d7c0a
...
@@ -170,8 +170,11 @@ CallWidget::CallWidget(QWidget* parent) :
...
@@ -170,8 +170,11 @@ CallWidget::CallWidget(QWidget* parent) :
this
,
&
CallWidget
::
on_sendContactRequestButton_clicked
);
this
,
&
CallWidget
::
on_sendContactRequestButton_clicked
);
// connect conversation filter buttons to act as radio buttons
// connect conversation filter buttons to act as radio buttons
connect
(
ui
->
buttonInvites
,
&
ConversationFilterButton
::
clicked
,
ui
->
buttonConversations
,
&
ConversationFilterButton
::
setUnselected
);
connect
(
ui
->
buttonInvites
,
&
ConversationFilterButton
::
clicked
,
connect
(
ui
->
buttonConversations
,
&
ConversationFilterButton
::
clicked
,
ui
->
buttonInvites
,
&
ConversationFilterButton
::
setUnselected
);
ui
->
buttonConversations
,
&
ConversationFilterButton
::
setUnselected
);
connect
(
ui
->
buttonConversations
,
&
ConversationFilterButton
::
clicked
,
ui
->
buttonInvites
,
&
ConversationFilterButton
::
setUnselected
);
connect
(
ui
->
currentAccountComboBox
,
QOverload
<
int
>::
of
(
&
CurrentAccountComboBox
::
currentIndexChanged
),
connect
(
ui
->
currentAccountComboBox
,
QOverload
<
int
>::
of
(
&
CurrentAccountComboBox
::
currentIndexChanged
),
[
this
]
{
[
this
]
{
...
@@ -610,8 +613,8 @@ void CallWidget::slotShowIncomingCallView(const std::string& accountId,
...
@@ -610,8 +613,8 @@ void CallWidget::slotShowIncomingCallView(const std::string& accountId,
}
}
ui
->
videoWidget
->
pushRenderer
(
convInfo
.
callId
);
ui
->
videoWidget
->
pushRenderer
(
convInfo
.
callId
);
// TODO:(new lrc) in call chat
//
ui->instantMessagingWidget->set
MediaText(actualCall_
);
ui
->
instantMessagingWidget
->
set
upCallMessaging
(
convInfo
.
callId
,
messageModel_
.
get
()
);
disconnect
(
selectedCallChanged_
);
disconnect
(
selectedCallChanged_
);
selectedCallChanged_
=
connect
(
selectedCallChanged_
=
connect
(
...
...
This diff is collapsed.
Click to expand it.
callwidget.ui
+
40
−
67
View file @
fd0d7c0a
...
@@ -93,13 +93,16 @@
...
@@ -93,13 +93,16 @@
<number>
0
</number>
<number>
0
</number>
</property>
</property>
<item
row=
"0"
column=
"0"
>
<item
row=
"0"
column=
"0"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
stretch=
"0,0"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
stretch=
"0,0
,0
"
>
<property
name=
"spacing"
>
<property
name=
"spacing"
>
<number>
0
</number>
<number>
0
</number>
</property>
</property>
<property
name=
"sizeConstraint"
>
<property
name=
"sizeConstraint"
>
<enum>
QLayout::SetDefaultConstraint
</enum>
<enum>
QLayout::SetDefaultConstraint
</enum>
</property>
</property>
<property
name=
"topMargin"
>
<number>
4
</number>
</property>
<item>
<item>
<widget
class=
"CurrentAccountComboBox"
name=
"currentAccountComboBox"
native=
"true"
>
<widget
class=
"CurrentAccountComboBox"
name=
"currentAccountComboBox"
native=
"true"
>
<property
name=
"sizePolicy"
>
<property
name=
"sizePolicy"
>
...
@@ -240,7 +243,7 @@
...
@@ -240,7 +243,7 @@
</item>
</item>
<item>
<item>
<widget
class=
"QWidget"
name=
"smartListWidget"
native=
"true"
>
<widget
class=
"QWidget"
name=
"smartListWidget"
native=
"true"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_5"
stretch=
"0,0
,0
"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_5"
stretch=
"0,0"
>
<property
name=
"spacing"
>
<property
name=
"spacing"
>
<number>
0
</number>
<number>
0
</number>
</property>
</property>
...
@@ -256,22 +259,6 @@
...
@@ -256,22 +259,6 @@
<property
name=
"bottomMargin"
>
<property
name=
"bottomMargin"
>
<number>
1
</number>
<number>
1
</number>
</property>
</property>
<item>
<widget
class=
"QWidget"
name=
"missingButtonsDummyWidget"
native=
"true"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
10
</height>
</size>
</property>
</widget>
</item>
<item>
<item>
<widget
class=
"ConversationsFilterWidget"
name=
"conversationsFilterWidget"
native=
"true"
>
<widget
class=
"ConversationsFilterWidget"
name=
"conversationsFilterWidget"
native=
"true"
>
<layout
class=
"QHBoxLayout"
name=
"conversationFilterLayout"
>
<layout
class=
"QHBoxLayout"
name=
"conversationFilterLayout"
>
...
@@ -288,14 +275,14 @@
...
@@ -288,14 +275,14 @@
<number>
10
</number>
<number>
10
</number>
</property>
</property>
<property
name=
"bottomMargin"
>
<property
name=
"bottomMargin"
>
<number>
1
0
</number>
<number>
0
</number>
</property>
</property>
<item>
<item>
<widget
class=
"ConversationFilterButton"
name=
"buttonConversations"
>
<widget
class=
"ConversationFilterButton"
name=
"buttonConversations"
native=
"true"
>
<property
name=
"toolTip"
>
<property
name=
"toolTip"
>
<string>
Show conversations
</string>
<string>
Show conversations
</string>
</property>
</property>
<property
name=
"text"
>
<property
name=
"text"
stdset=
"0"
>
<string>
Conversations
</string>
<string>
Conversations
</string>
</property>
</property>
</widget>
</widget>
...
@@ -314,34 +301,12 @@
...
@@ -314,34 +301,12 @@
</widget>
</widget>
</item>
</item>
<item>
<item>
<widget
class=
"SmartListView"
name=
"smartList"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_13"
>
<property
name=
"autoScrollMargin"
>
<property
name=
"spacing"
>
<number>
16
</number>
</property>
<property
name=
"indentation"
>
<number>
0
</number>
<number>
0
</number>
</property>
</property>
<property
name=
"rootIsDecorated"
>
<bool>
false
</bool>
</property>
<property
name=
"itemsExpandable"
>
<bool>
false
</bool>
</property>
<property
name=
"expandsOnDoubleClick"
>
<bool>
false
</bool>
</property>
<attribute
name=
"headerVisible"
>
<bool>
false
</bool>
</attribute>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_13"
>
<property
name=
"topMargin"
>
<property
name=
"topMargin"
>
<number>
6
</number>
<number>
10
</number>
</property>
</property>
<item>
<item>
<widget
class=
"SmartListView"
name=
"smartList"
>
<widget
class=
"SmartListView"
name=
"smartList"
>
...
@@ -368,6 +333,9 @@
...
@@ -368,6 +333,9 @@
</layout>
</layout>
</item>
</item>
</layout>
</layout>
</widget>
</item>
</layout>
</item>
</item>
</layout>
</layout>
</widget>
</widget>
...
@@ -2074,6 +2042,11 @@
...
@@ -2074,6 +2042,11 @@
<extends>
QWidget
</extends>
<extends>
QWidget
</extends>
<header>
currentaccountcombobox.h
</header>
<header>
currentaccountcombobox.h
</header>
</customwidget>
</customwidget>
<customwidget>
<class>
ConversationFilterButton
</class>
<extends>
QWidget
</extends>
<header>
conversationfilterbutton.h
</header>
</customwidget>
</customwidgets>
</customwidgets>
<resources>
<resources>
<include
location=
"ressources.qrc"
/>
<include
location=
"ressources.qrc"
/>
...
...
This diff is collapsed.
Click to expand it.
currentaccountcombobox.cpp
+
56
−
59
View file @
fd0d7c0a
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#undef REGISTERED
#undef REGISTERED
CurrentAccountComboBox
::
CurrentAccountComboBox
(
QWidget
*
parent
)
CurrentAccountComboBox
::
CurrentAccountComboBox
(
QWidget
*
parent
)
{
{
Q_UNUSED
(
parent
);
Q_UNUSED
(
parent
);
...
@@ -75,9 +74,10 @@ CurrentAccountComboBox::paintEvent(QPaintEvent* e)
...
@@ -75,9 +74,10 @@ CurrentAccountComboBox::paintEvent(QPaintEvent* e)
{
{
Q_UNUSED
(
e
);
Q_UNUSED
(
e
);
gearPoint_
.
setX
(
this
->
width
()
-
gearSize_
-
2
*
gearBorder_
);
gearPoint_
.
setX
(
this
->
width
()
-
gearSize_
-
4
*
gearBorder_
);
gearPoint_
.
setY
(
this
->
height
()
/
2
-
gearLabel_
.
height
()
/
2
-
gearBorder_
);
gearPoint_
.
setY
(
this
->
height
()
/
2
-
gearLabel_
.
height
()
/
2
-
2
*
gearBorder_
);
gearLabel_
.
setGeometry
(
gearPoint_
.
x
()
-
3
,
gearPoint_
.
y
(),
gearSize_
+
2
*
gearBorder_
,
gearSize_
+
2
*
gearBorder_
);
gearLabel_
.
setGeometry
(
gearPoint_
.
x
()
-
3
,
gearPoint_
.
y
(),
gearSize_
+
2
*
gearBorder_
,
gearSize_
+
2
*
gearBorder_
);
gearLabel_
.
setMargin
(
gearBorder_
);
gearLabel_
.
setMargin
(
gearBorder_
);
QPoint
p
(
12
,
2
);
QPoint
p
(
12
,
2
);
...
@@ -123,11 +123,13 @@ CurrentAccountComboBox::paintEvent(QPaintEvent* e)
...
@@ -123,11 +123,13 @@ CurrentAccountComboBox::paintEvent(QPaintEvent* e)
// write primary and secondary account identifiers to combobox label
// write primary and secondary account identifiers to combobox label
QString
primaryAccountID
=
QString
::
fromStdString
(
Utils
::
bestNameForAccount
(
LRCInstance
::
getCurrentAccountInfo
()));
QString
primaryAccountID
=
QString
::
fromStdString
(
Utils
::
bestNameForAccount
(
LRCInstance
::
getCurrentAccountInfo
()));
painter
.
setPen
(
Qt
::
black
);
painter
.
setPen
(
Qt
::
black
);
primaryAccountID
=
fontMetricPrimary
.
elidedText
(
primaryAccountID
,
Qt
::
ElideRight
,
comboBoxRect
.
width
()
-
elidConst
-
gearSize_
*!
popupPresent
);
primaryAccountID
=
fontMetricPrimary
.
elidedText
(
primaryAccountID
,
Qt
::
ElideRight
,
comboBoxRect
.
width
()
-
elidConst
-
(
popupPresent
?
0
:
2
*
gearSize_
));
painter
.
drawText
(
comboBoxRect
,
Qt
::
AlignLeft
,
primaryAccountID
);
painter
.
drawText
(
comboBoxRect
,
Qt
::
AlignLeft
,
primaryAccountID
);
QString
secondaryAccountID
=
QString
::
fromStdString
(
Utils
::
secondBestNameForAccount
(
LRCInstance
::
getCurrentAccountInfo
()));
QString
secondaryAccountID
=
QString
::
fromStdString
(
Utils
::
secondBestNameForAccount
(
LRCInstance
::
getCurrentAccountInfo
()));
secondaryAccountID
=
fontMetricSecondary
.
elidedText
(
secondaryAccountID
,
Qt
::
ElideRight
,
comboBoxRect
.
width
()
-
elidConst
-
2
-
gearSize_
*!
popupPresent
);
// [screen awareness]
secondaryAccountID
=
fontMetricSecondary
.
elidedText
(
secondaryAccountID
,
Qt
::
ElideRight
,
comboBoxRect
.
width
()
-
elidConst
-
2
-
(
popupPresent
?
0
:
2
*
gearSize_
));
// [screen awareness]
if
(
secondaryAccountID
.
length
())
{
// if secondary accound id exists
if
(
secondaryAccountID
.
length
())
{
// if secondary accound id exists
painter
.
setFont
(
fontSecondary
);
painter
.
setFont
(
fontSecondary
);
...
@@ -135,12 +137,8 @@ CurrentAccountComboBox::paintEvent(QPaintEvent* e)
...
@@ -135,12 +137,8 @@ CurrentAccountComboBox::paintEvent(QPaintEvent* e)
painter
.
drawText
(
comboBoxRect
,
(
Qt
::
AlignBottom
|
Qt
::
AlignLeft
),
secondaryAccountID
);
painter
.
drawText
(
comboBoxRect
,
(
Qt
::
AlignBottom
|
Qt
::
AlignLeft
),
secondaryAccountID
);
}
}
if
(
LRCInstance
::
accountModel
().
getAccountList
().
size
()
<=
1
)
{
this
->
setEnabled
(
LRCInstance
::
accountModel
().
getAccountList
().
size
()
>
1
);
this
->
setDisabled
(
true
);
}
else
{
this
->
setEnabled
(
true
);
}
gearLabel_
.
setPixmap
(
gearPixmap_
);
gearLabel_
.
setPixmap
(
gearPixmap_
);
}
}
...
@@ -172,8 +170,7 @@ CurrentAccountComboBox::mousePressEvent(QMouseEvent* mouseEvent)
...
@@ -172,8 +170,7 @@ CurrentAccountComboBox::mousePressEvent(QMouseEvent* mouseEvent)
{
{
if
(
!
gearLabel_
.
frameGeometry
().
contains
(
mouseEvent
->
localPos
().
toPoint
()))
{
if
(
!
gearLabel_
.
frameGeometry
().
contains
(
mouseEvent
->
localPos
().
toPoint
()))
{
QComboBox
::
mousePressEvent
(
mouseEvent
);
QComboBox
::
mousePressEvent
(
mouseEvent
);
}
}
else
{
else
{
emit
settingsButtonClicked
();
emit
settingsButtonClicked
();
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment