Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
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
Kulya
vmj-qt
Commits
f6d32246
Commit
f6d32246
authored
Oct 14, 2016
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed layout issues in incoming dialogs
parent
445a986a
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
309 additions
and
575 deletions
+309
-575
presence.py
blink/presence.py
+9
-36
sessions.py
blink/sessions.py
+23
-35
incoming_calltransfer_dialog.ui
resources/incoming_calltransfer_dialog.ui
+26
-42
incoming_dialog.ui
resources/incoming_dialog.ui
+161
-245
incoming_filetransfer_dialog.ui
resources/incoming_filetransfer_dialog.ui
+22
-38
pending_watcher.ui
resources/pending_watcher.ui
+68
-179
No files found.
blink/presence.py
View file @
f6d32246
...
...
@@ -511,13 +511,19 @@ class PresenceManager(object):
ui_class
,
base_class
=
uic
.
loadUiType
(
Resources
.
get
(
'pending_watcher.ui'
))
class
PendingWatcherDialog
(
base_class
,
ui_class
):
def
__init__
(
self
,
account
,
uri
,
display_name
,
parent
=
None
):
super
(
PendingWatcherDialog
,
self
)
.
__init__
(
parent
)
self
.
setWindowFlags
(
Qt
.
WindowStaysOnTopHint
)
self
.
setWindowFlags
(
self
.
windowFlags
()
|
Qt
.
WindowStaysOnTopHint
)
self
.
setAttribute
(
Qt
.
WA_DeleteOnClose
)
with
Resources
.
directory
:
self
.
setupUi
(
self
)
default_font_size
=
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
name_font_size
=
limit
(
default_font_size
+
3
,
max
=
14
)
font
=
self
.
name_label
.
font
()
font
.
setPointSizeF
(
name_font_size
)
self
.
name_label
.
setFont
(
font
)
addressbook_manager
=
addressbook
.
AddressbookManager
()
try
:
self
.
contact
=
next
(
contact
for
contact
in
addressbook_manager
.
get_contacts
()
if
uri
in
(
addr
.
uri
for
addr
in
contact
.
uris
))
...
...
@@ -528,14 +534,10 @@ class PendingWatcherDialog(base_class, ui_class):
icon_manager
=
IconManager
()
icon
=
icon_manager
.
get
(
self
.
contact
.
id
)
if
icon
is
not
None
:
self
.
user_icon
.
setPixmap
(
icon
.
pixmap
(
32
))
self
.
account_label
.
setText
(
u'For account
%
s'
%
account
.
id
)
self
.
user_icon
.
setPixmap
(
icon
.
pixmap
(
48
))
self
.
description_label
.
setText
(
u'Wants to subscribe to your availability information at {}'
.
format
(
account
.
id
)
)
self
.
name_label
.
setText
(
display_name
or
uri
)
self
.
uri_label
.
setText
(
uri
)
font
=
self
.
name_label
.
font
()
font
.
setPointSizeF
(
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
+
3
)
font
.
setFamily
(
"Sans Serif"
)
self
.
name_label
.
setFont
(
font
)
self
.
accept_button
.
released
.
connect
(
self
.
_accept_watcher
)
self
.
block_button
.
released
.
connect
(
self
.
_block_watcher
)
self
.
position
=
None
...
...
@@ -565,35 +567,6 @@ class PendingWatcherDialog(base_class, ui_class):
policy
.
presence
.
policy
=
'block'
policy
.
save
()
def
show
(
self
,
position
=
1
):
from
blink
import
Blink
blink
=
Blink
()
screen_geometry
=
blink
.
desktop
()
.
screenGeometry
(
self
)
available_geometry
=
blink
.
desktop
()
.
availableGeometry
(
self
)
main_window_geometry
=
blink
.
main_window
.
geometry
()
main_window_framegeometry
=
blink
.
main_window
.
frameGeometry
()
horizontal_decorations
=
main_window_framegeometry
.
width
()
-
main_window_geometry
.
width
()
vertical_decorations
=
main_window_framegeometry
.
height
()
-
main_window_geometry
.
height
()
width
=
limit
(
self
.
sizeHint
()
.
width
(),
min
=
self
.
minimumSize
()
.
width
(),
max
=
min
(
self
.
maximumSize
()
.
width
(),
available_geometry
.
width
()
-
horizontal_decorations
))
height
=
limit
(
self
.
sizeHint
()
.
height
(),
min
=
self
.
minimumSize
()
.
height
(),
max
=
min
(
self
.
maximumSize
()
.
height
(),
available_geometry
.
height
()
-
vertical_decorations
))
total_width
=
width
+
horizontal_decorations
total_height
=
height
+
vertical_decorations
x
=
limit
(
screen_geometry
.
center
()
.
x
()
-
total_width
/
2
,
min
=
available_geometry
.
left
(),
max
=
available_geometry
.
right
()
-
total_width
)
if
position
is
None
:
y
=
-
1
elif
position
%
2
==
0
:
y
=
screen_geometry
.
center
()
.
y
()
+
(
position
-
1
)
*
total_height
/
2
else
:
y
=
screen_geometry
.
center
()
.
y
()
-
position
*
total_height
/
2
if
available_geometry
.
top
()
<=
y
<=
available_geometry
.
bottom
()
-
total_height
:
self
.
setGeometry
(
x
,
y
,
width
,
height
)
else
:
self
.
resize
(
width
,
height
)
self
.
position
=
position
super
(
PendingWatcherDialog
,
self
)
.
show
()
del
ui_class
,
base_class
blink/sessions.py
View file @
f6d32246
...
...
@@ -5098,16 +5098,18 @@ ui_class, base_class = uic.loadUiType(Resources.get('incoming_dialog.ui'))
class
IncomingDialog
(
IncomingDialogBase
,
ui_class
):
def
__init__
(
self
,
parent
=
None
):
super
(
IncomingDialog
,
self
)
.
__init__
(
parent
)
self
.
setWindowFlags
(
Qt
.
WindowStaysOnTopHint
)
self
.
setWindowFlags
(
self
.
windowFlags
()
|
Qt
.
WindowStaysOnTopHint
)
self
.
setAttribute
(
Qt
.
WA_DeleteOnClose
)
with
Resources
.
directory
:
self
.
setupUi
(
self
)
default_font_size
=
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
name_font_size
=
limit
(
default_font_size
+
3
,
max
=
14
)
note_font_size
=
limit
(
default_font_size
-
1
,
max
=
9
)
font
=
self
.
username_label
.
font
()
font
.
setPointSizeF
(
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
+
3
)
font
.
setFamily
(
"Sans Serif"
)
font
.
setPointSizeF
(
name_font_size
)
self
.
username_label
.
setFont
(
font
)
font
=
self
.
note_label
.
font
()
font
.
setPointSizeF
(
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
-
1
)
font
.
setPointSizeF
(
note_font_size
)
self
.
note_label
.
setFont
(
font
)
self
.
reject_mode
=
'ignore'
self
.
slot
=
None
...
...
@@ -5150,7 +5152,7 @@ class IncomingDialog(IncomingDialogBase, ui_class):
self
.
chat_stream
.
active
=
True
self
.
screensharing_stream
.
active
=
True
self
.
video_stream
.
active
=
True
self
.
note_label
.
setText
(
u'To refuse a
stream
click its icon'
)
self
.
note_label
.
setText
(
u'To refuse a
media type
click its icon'
)
else
:
self
.
audio_stream
.
active
=
False
self
.
chat_stream
.
active
=
False
...
...
@@ -5198,8 +5200,7 @@ class IncomingRequest(QObject):
address
=
u'
%
s@
%
s'
%
(
session
.
remote_identity
.
uri
.
user
,
session
.
remote_identity
.
uri
.
host
)
self
.
dialog
.
uri_label
.
setText
(
address
)
self
.
dialog
.
username_label
.
setText
(
contact
.
name
or
session
.
remote_identity
.
display_name
or
address
)
if
contact
.
pixmap
:
self
.
dialog
.
user_icon
.
setPixmap
(
contact
.
pixmap
)
self
.
dialog
.
user_icon
.
setPixmap
(
contact
.
icon
.
pixmap
(
48
))
self
.
dialog
.
audio_stream
.
setVisible
(
self
.
audio_stream
is
not
None
)
self
.
dialog
.
video_stream
.
setVisible
(
self
.
video_stream
is
not
None
)
self
.
dialog
.
chat_stream
.
setVisible
(
self
.
chat_stream
is
not
None
)
...
...
@@ -5210,7 +5211,6 @@ class IncomingRequest(QObject):
else
:
self
.
dialog
.
screensharing_label
.
setText
(
u'is asking to share your screen'
)
# self.dialog.screensharing_stream.accepted = bool(proposal)
self
.
dialog
.
audio_device_label
.
setText
(
u'Selected audio device is:
%
s'
%
SIPApplication
.
voice_audio_bridge
.
mixer
.
real_output_device
)
self
.
dialog
.
finished
.
connect
(
self
.
_SH_DialogFinished
)
...
...
@@ -5288,20 +5288,19 @@ class IncomingRequest(QObject):
ui_class
,
base_class
=
uic
.
loadUiType
(
Resources
.
get
(
'incoming_filetransfer_dialog.ui'
))
class
IncomingFileTransferDialog
(
IncomingDialogBase
,
ui_class
):
def
__init__
(
self
,
parent
=
None
):
super
(
IncomingFileTransferDialog
,
self
)
.
__init__
(
parent
)
self
.
setWindowFlags
(
Qt
.
WindowStaysOnTopHint
)
self
.
setWindowFlags
(
self
.
windowFlags
()
|
Qt
.
WindowStaysOnTopHint
)
self
.
setAttribute
(
Qt
.
WA_DeleteOnClose
)
with
Resources
.
directory
:
self
.
setupUi
(
self
)
default_font_size
=
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
name_font_size
=
limit
(
default_font_size
+
3
,
max
=
14
)
font
=
self
.
username_label
.
font
()
font
.
setPointSizeF
(
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
+
3
)
font
.
setFamily
(
"Sans Serif"
)
font
.
setPointSizeF
(
name_font_size
)
self
.
username_label
.
setFont
(
font
)
font
=
self
.
file_label
.
font
()
font
.
setPointSizeF
(
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
-
1
)
self
.
file_label
.
setFont
(
font
)
self
.
slot
=
None
self
.
reject_mode
=
'ignore'
self
.
reject_button
.
released
.
connect
(
self
.
_set_reject_mode
)
...
...
@@ -5332,13 +5331,9 @@ class IncomingFileTransferRequest(QObject):
self
.
session
=
session
self
.
stream
=
stream
self
.
dialog
.
setWindowTitle
(
u'Incoming File Transfer'
)
self
.
dialog
.
setWindowIconText
(
u'Incoming File Transfer'
)
self
.
dialog
.
uri_label
.
setText
(
contact_uri
.
uri
)
self
.
dialog
.
username_label
.
setText
(
contact
.
name
)
if
contact
.
pixmap
:
self
.
dialog
.
user_icon
.
setPixmap
(
contact
.
pixmap
)
self
.
dialog
.
user_icon
.
setPixmap
(
contact
.
icon
.
pixmap
(
48
))
filename
=
os
.
path
.
basename
(
self
.
stream
.
file_selector
.
name
)
size
=
self
.
stream
.
file_selector
.
size
if
size
:
...
...
@@ -5380,17 +5375,15 @@ ui_class, base_class = uic.loadUiType(Resources.get('incoming_calltransfer_dialo
class
IncomingCallTransferDialog
(
IncomingDialogBase
,
ui_class
):
def
__init__
(
self
,
parent
=
None
):
super
(
IncomingCallTransferDialog
,
self
)
.
__init__
(
parent
)
self
.
setWindowFlags
(
Qt
.
WindowStaysOnTopHint
)
self
.
setWindowFlags
(
self
.
windowFlags
()
|
Qt
.
WindowStaysOnTopHint
)
self
.
setAttribute
(
Qt
.
WA_DeleteOnClose
)
with
Resources
.
directory
:
self
.
setupUi
(
self
)
default_font_size
=
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
name_font_size
=
limit
(
default_font_size
+
3
,
max
=
14
)
font
=
self
.
username_label
.
font
()
font
.
setPointSizeF
(
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
+
3
)
font
.
setFamily
(
"Sans Serif"
)
font
.
setPointSizeF
(
name_font_size
)
self
.
username_label
.
setFont
(
font
)
font
=
self
.
transfer_label
.
font
()
font
.
setPointSizeF
(
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
-
1
)
self
.
transfer_label
.
setFont
(
font
)
self
.
slot
=
None
self
.
reject_mode
=
'reject'
...
...
@@ -5409,21 +5402,17 @@ class IncomingCallTransferRequest(QObject):
priority
=
0
stream_types
=
{
'audio'
}
def
__init__
(
self
,
dialog
,
contact
,
contact_uri
,
session
):
def
__init__
(
self
,
dialog
,
contact
,
contact_uri
,
blink_
session
):
super
(
IncomingCallTransferRequest
,
self
)
.
__init__
()
self
.
dialog
=
dialog
self
.
contact
=
contact
self
.
contact_uri
=
contact_uri
self
.
session
=
session
self
.
dialog
.
setWindowTitle
(
u'Incoming Call Transfer'
)
self
.
dialog
.
setWindowIconText
(
u'Incoming Call Transfer'
)
self
.
session
=
blink_session
.
sip_session
self
.
dialog
.
uri_label
.
setText
(
contact_uri
.
uri
)
self
.
dialog
.
username_label
.
setText
(
contact
.
name
)
if
contact
.
pixmap
:
self
.
dialog
.
user_icon
.
setPixmap
(
contact
.
pixmap
)
self
.
dialog
.
transfer_label
.
setText
(
u'would like to transfer you to {.uri}'
.
format
(
contact_uri
))
self
.
dialog
.
user_icon
.
setPixmap
(
contact
.
icon
.
pixmap
(
48
))
self
.
dialog
.
transfer_label
.
setText
(
u'transfer requested by {}'
.
format
(
blink_session
.
contact
.
name
or
blink_session
.
contact_uri
.
uri
))
self
.
dialog
.
finished
.
connect
(
self
.
_SH_DialogFinished
)
...
...
@@ -5903,11 +5892,10 @@ class SessionManager(object):
def
_NH_BlinkSessionTransferNewIncoming
(
self
,
notification
):
from
blink.contacts
import
URIUtils
session
=
notification
.
sender
.
sip_session
contact
,
contact_uri
=
URIUtils
.
find_contact
(
notification
.
data
.
transfer_destination
)
dialog
=
IncomingCallTransferDialog
()
# Build the dialog without a parent in order to be displayed on the current workspace on Linux.
incoming_request
=
IncomingCallTransferRequest
(
dialog
,
contact
,
contact_uri
,
session
)
incoming_request
=
IncomingCallTransferRequest
(
dialog
,
contact
,
contact_uri
,
notification
.
sender
)
incoming_request
.
finished
.
connect
(
self
.
_SH_IncomingRequestFinished
)
incoming_request
.
accepted
.
connect
(
self
.
_SH_IncomingCallTransferRequestAccepted
)
incoming_request
.
rejected
.
connect
(
self
.
_SH_IncomingCallTransferRequestRejected
)
...
...
resources/incoming_calltransfer_dialog.ui
View file @
f6d32246
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
D
ialog
</class>
<widget
class=
"QDialog"
name=
"
D
ialog"
>
<class>
d
ialog
</class>
<widget
class=
"QDialog"
name=
"
d
ialog"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
480
</width>
<height>
1
65
</height>
<height>
1
70
</height>
</rect>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
480
</width>
<height>
1
65
</height>
<height>
1
70
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
1
65
</height>
<height>
1
70
</height>
</size>
</property>
<property
name=
"windowTitle"
>
<string>
Incoming Call Transfer
</string>
<string>
Call Transfer Request
</string>
</property>
<property
name=
"windowIcon"
>
<iconset>
...
...
@@ -31,9 +31,18 @@
</property>
<layout
class=
"QVBoxLayout"
name=
"dialog_layout"
>
<property
name=
"spacing"
>
<number>
3
4
</number>
<number>
3
2
</number>
</property>
<property
name=
"margin"
>
<property
name=
"leftMargin"
>
<number>
8
</number>
</property>
<property
name=
"topMargin"
>
<number>
8
</number>
</property>
<property
name=
"rightMargin"
>
<number>
8
</number>
</property>
<property
name=
"bottomMargin"
>
<number>
8
</number>
</property>
<item>
...
...
@@ -76,14 +85,13 @@
</property>
<property
name=
"font"
>
<font>
<family>
Sans Serif
</family>
<pointsize>
12
</pointsize>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"text"
>
<string>
Caller
name
</string>
<string>
Destination
name
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
</set>
...
...
@@ -163,7 +171,7 @@
</palette>
</property>
<property
name=
"text"
>
<string>
Caller
URI
</string>
<string>
Destination
URI
</string>
</property>
<property
name=
"indent"
>
<number>
1
</number>
...
...
@@ -172,18 +180,6 @@
</item>
<item
row=
"0"
column=
"0"
rowspan=
"2"
>
<widget
class=
"QLabel"
name=
"user_icon"
>
<property
name=
"minimumSize"
>
<size>
<width>
36
</width>
<height>
36
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
36
</width>
<height>
36
</height>
</size>
</property>
<property
name=
"pixmap"
>
<pixmap>
icons/default-avatar.png
</pixmap>
</property>
...
...
@@ -199,8 +195,8 @@
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
0
</width>
<height>
0
</height>
<width>
2
0
</width>
<height>
2
0
</height>
</size>
</property>
</spacer>
...
...
@@ -272,7 +268,7 @@
</palette>
</property>
<property
name=
"text"
>
<string
extracomment=
"is offering to share his screen"
>
would like to transfer you to user@domain
</string>
<string
extracomment=
"is offering to share his screen"
>
transfer requested by Sender name
</string>
</property>
<property
name=
"indent"
>
<number>
3
</number>
...
...
@@ -289,16 +285,10 @@
</property>
<item>
<widget
class=
"QPushButton"
name=
"reject_button"
>
<property
name=
"minimumSize"
>
<size>
<width>
85
</width>
<height>
24
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
2
4
</height>
<height>
2
8
</height>
</size>
</property>
<property
name=
"text"
>
...
...
@@ -321,16 +311,10 @@
</item>
<item>
<widget
class=
"QPushButton"
name=
"accept_button"
>
<property
name=
"minimumSize"
>
<size>
<width>
85
</width>
<height>
24
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
2
4
</height>
<height>
2
8
</height>
</size>
</property>
<property
name=
"text"
>
...
...
@@ -354,7 +338,7 @@
<connection>
<sender>
accept_button
</sender>
<signal>
clicked()
</signal>
<receiver>
D
ialog
</receiver>
<receiver>
d
ialog
</receiver>
<slot>
accept()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
...
...
@@ -370,7 +354,7 @@
<connection>
<sender>
reject_button
</sender>
<signal>
clicked()
</signal>
<receiver>
D
ialog
</receiver>
<receiver>
d
ialog
</receiver>
<slot>
reject()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
...
...
resources/incoming_dialog.ui
View file @
f6d32246
This diff is collapsed.
Click to expand it.
resources/incoming_filetransfer_dialog.ui
View file @
f6d32246
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
D
ialog
</class>
<widget
class=
"QDialog"
name=
"
D
ialog"
>
<class>
d
ialog
</class>
<widget
class=
"QDialog"
name=
"
d
ialog"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
480
</width>
<height>
1
65
</height>
<height>
1
70
</height>
</rect>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
480
</width>
<height>
1
65
</height>
<height>
1
70
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
1
65
</height>
<height>
1
70
</height>
</size>
</property>
<property
name=
"windowTitle"
>
...
...
@@ -31,9 +31,18 @@
</property>
<layout
class=
"QVBoxLayout"
name=
"dialog_layout"
>
<property
name=
"spacing"
>
<number>
3
4
</number>
<number>
3
2
</number>
</property>
<property
name=
"margin"
>
<property
name=
"leftMargin"
>
<number>
8
</number>
</property>
<property
name=
"topMargin"
>
<number>
8
</number>
</property>
<property
name=
"rightMargin"
>
<number>
8
</number>
</property>
<property
name=
"bottomMargin"
>
<number>
8
</number>
</property>
<item>
...
...
@@ -156,7 +165,6 @@
</property>
<property
name=
"font"
>
<font>
<family>
Sans Serif
</family>
<pointsize>
12
</pointsize>
<weight>
75
</weight>
<bold>
true
</bold>
...
...
@@ -172,18 +180,6 @@
</item>
<item
row=
"0"
column=
"0"
rowspan=
"2"
>
<widget
class=
"QLabel"
name=
"user_icon"
>
<property
name=
"minimumSize"
>
<size>
<width>
36
</width>
<height>
36
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
36
</width>
<height>
36
</height>
</size>
</property>
<property
name=
"pixmap"
>
<pixmap>
icons/default-avatar.png
</pixmap>
</property>
...
...
@@ -199,8 +195,8 @@
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
0
</width>
<height>
0
</height>
<width>
2
0
</width>
<height>
2
0
</height>
</size>
</property>
</spacer>
...
...
@@ -289,16 +285,10 @@
</property>
<item>
<widget
class=
"QPushButton"
name=
"reject_button"
>
<property
name=
"minimumSize"
>
<size>
<width>
85
</width>
<height>
24
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
2
4
</height>
<height>
2
8
</height>
</size>
</property>
<property
name=
"toolTip"
>
...
...
@@ -324,16 +314,10 @@
</item>
<item>
<widget
class=
"QPushButton"
name=
"accept_button"
>
<property
name=
"minimumSize"
>
<size>
<width>
85
</width>
<height>
24
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
2
4
</height>
<height>
2
8
</height>
</size>
</property>
<property
name=
"text"
>
...
...
@@ -357,7 +341,7 @@
<connection>
<sender>
accept_button
</sender>
<signal>
clicked()
</signal>
<receiver>
D
ialog
</receiver>
<receiver>
d
ialog
</receiver>
<slot>
accept()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
...
...
@@ -373,7 +357,7 @@
<connection>
<sender>
reject_button
</sender>
<signal>
clicked()
</signal>
<receiver>
D
ialog
</receiver>
<receiver>
d
ialog
</receiver>
<slot>
reject()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
...
...
resources/pending_watcher.ui
View file @
f6d32246
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
D
ialog
</class>
<widget
class=
"QDialog"
name=
"
D
ialog"
>
<class>
d
ialog
</class>
<widget
class=
"QDialog"
name=
"
d
ialog"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
...
...
@@ -31,7 +31,19 @@
</property>
<layout
class=
"QVBoxLayout"
name=
"dialog_layout"
>
<property
name=
"spacing"
>
<number>
10
</number>
<number>
32
</number>
</property>
<property
name=
"leftMargin"
>
<number>
8
</number>
</property>
<property
name=
"topMargin"
>
<number>
8
</number>
</property>
<property
name=
"rightMargin"
>
<number>
8
</number>
</property>
<property
name=
"bottomMargin"
>
<number>
8
</number>
</property>
<item>
<widget
class=
"QFrame"
name=
"frame"
>
...
...
@@ -64,77 +76,12 @@
<number>
0
</number>
</property>
<item
row=
"0"
column=
"0"
rowspan=
"2"
>
<layout
class=
"QVBoxLayout"
name=
"user_icon_layout"
>
<property
name=
"spacing"
>
<number>
0
</number>
</property>
<item>
<widget
class=
"QLabel"
name=
"user_icon"
>
<property
name=
"minimumSize"
>
<size>
<width>
36
</width>
<height>
36
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
36
</width>
<height>
36
</height>
</size>
</property>
<property
name=
"pixmap"
>
<pixmap>
icons/default-avatar.png
</pixmap>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
</widget>
</item>
<item>
<spacer
name=
"user_icon_spacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeType"
>
<enum>
QSizePolicy::Minimum
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
0
</width>
<height>
0
</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLabel"
name=
"name_label"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Expanding"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
26
</height>
</size>
</property>
<property
name=
"font"
>
<font>
<family>
Sans Serif
</family>
<pointsize>
12
</pointsize>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"text"
>
<string>
Watcher name
</string>
<widget
class=
"QLabel"
name=
"user_icon"
>
<property
name=
"pixmap"
>
<pixmap>
icons/default-avatar.png
</pixmap>
</property>
<property
name=
"alignment"
>
<set>
Qt::Align
Leading|Qt::AlignLeft|Qt::AlignV
Center
</set>
<set>
Qt::AlignCenter
</set>
</property>
</widget>
</item>
...
...
@@ -218,7 +165,36 @@
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
colspan=
"3"
>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLabel"
name=
"name_label"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Expanding"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
26
</height>
</size>
</property>
<property
name=
"font"
>
<font>
<pointsize>
12
</pointsize>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"text"
>
<string>
Watcher name
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"description_label"
>
<property
name=
"palette"
>
<palette>
...
...
@@ -285,22 +261,22 @@
</palette>
</property>
<property
name=
"text"
>
<string>
Wants to subscribe to your availability information
</string>
<string>
Wants to subscribe to your availability information
at user@domain
</string>
</property>
<property
name=
"indent"
>
<number>
3
</number>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
colspan=
"
3
"
>
<item
row=
"2"
column=
"0"
colspan=
"
2
"
>
<spacer
name=
"frame_spacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
407
</width>
<height>
2
2
</height>
<width>
20
</width>
<height>
2
0
</height>
</size>
</property>
</spacer>
...
...
@@ -308,110 +284,17 @@
</layout>
</widget>
</item>
<item>
<widget
class=
"QLabel"
name=
"account_label"
>
<property
name=
"palette"
>
<palette>
<active>
<colorrole
role=
"WindowText"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
68
</red>
<green>
68
</green>
<blue>
68
</blue>
</color>
</brush>
</colorrole>
<colorrole
role=
"Text"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
68
</red>
<green>
68
</green>
<blue>
68
</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole
role=
"WindowText"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
68
</red>
<green>
68
</green>
<blue>
68
</blue>
</color>
</brush>
</colorrole>
<colorrole
role=
"Text"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
68
</red>
<green>
68
</green>
<blue>
68
</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole
role=
"WindowText"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
118
</red>
<green>
118
</green>
<blue>
117
</blue>
</color>
</brush>
</colorrole>
<colorrole
role=
"Text"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
118
</red>
<green>
118
</green>
<blue>
117
</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property
name=
"text"
>
<string>
For account user@domain.com
</string>
</property>
<property
name=
"indent"
>
<number>
3
</number>
</property>
</widget>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"button_layout"
>
<property
name=
"spacing"
>
<number>
5
</number>
</property>
<item>
<spacer
name=
"button_spacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
<item>
<widget
class=
"QPushButton"
name=
"block_button"
>
<property
name=
"minimumSize"
>
<size>
<width>
85
</width>
<height>
24
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
2
4
</height>
<height>
2
8
</height>
</size>
</property>
<property
name=
"toolTip"
>
...
...
@@ -423,17 +306,24 @@
</widget>
</item>
<item>
<widget
class=
"QPushButton"
name=
"accept_button"
>
<property
name=
"minimumSize"
>
<spacer
name=
"button_spacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
85
</width>
<height>
2
4
</height>
<width>
40
</width>
<height>
2
0
</height>
</size>
</property>
</spacer>
</item>
<item>
<widget
class=
"QPushButton"
name=
"accept_button"
>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
2
4
</height>
<height>
2
8
</height>
</size>
</property>
<property
name=
"text"
>
...
...
@@ -450,14 +340,13 @@
</widget>
<tabstops>
<tabstop>
accept_button
</tabstop>
<tabstop>
block_button
</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>
accept_button
</sender>
<signal>
clicked()
</signal>
<receiver>
D
ialog
</receiver>
<receiver>
d
ialog
</receiver>
<slot>
accept()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
...
...
@@ -473,7 +362,7 @@
<connection>
<sender>
block_button
</sender>
<signal>
clicked()
</signal>
<receiver>
D
ialog
</receiver>
<receiver>
d
ialog
</receiver>
<slot>
reject()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
...
...
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