mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr938'
This commit is contained in:
commit
54e8be75d2
|
@ -1034,7 +1034,7 @@ QSplitter:handle{
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>284</width>
|
<width>284</width>
|
||||||
<height>401</height>
|
<height>399</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_5"/>
|
<layout class="QVBoxLayout" name="verticalLayout_5"/>
|
||||||
|
@ -1665,7 +1665,7 @@ QSplitter:handle{
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
<height>57</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
|
@ -1775,7 +1775,7 @@ QSplitter:handle{
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>775</width>
|
<width>775</width>
|
||||||
<height>19</height>
|
<height>21</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
@ -52,10 +52,13 @@ GenericChatForm::GenericChatForm(QWidget *parent) :
|
||||||
nameLabel->setEditable(true);
|
nameLabel->setEditable(true);
|
||||||
|
|
||||||
avatar = new MaskablePixmapWidget(this, QSize(40,40), ":/img/avatar_mask.png");
|
avatar = new MaskablePixmapWidget(this, QSize(40,40), ":/img/avatar_mask.png");
|
||||||
QHBoxLayout *headLayout = new QHBoxLayout(), *mainFootLayout = new QHBoxLayout();
|
QHBoxLayout *headLayout = new QHBoxLayout(),
|
||||||
headTextLayout = new QVBoxLayout();
|
*mainFootLayout = new QHBoxLayout();
|
||||||
QVBoxLayout *mainLayout = new QVBoxLayout();
|
|
||||||
QVBoxLayout *footButtonsSmall = new QVBoxLayout(), *volMicLayout = new QVBoxLayout();
|
QVBoxLayout *mainLayout = new QVBoxLayout(),
|
||||||
|
*footButtonsSmall = new QVBoxLayout(),
|
||||||
|
*volMicLayout = new QVBoxLayout();
|
||||||
|
headTextLayout = new QVBoxLayout();
|
||||||
|
|
||||||
chatWidget = new ChatAreaWidget();
|
chatWidget = new ChatAreaWidget();
|
||||||
|
|
||||||
|
@ -76,10 +79,10 @@ GenericChatForm::GenericChatForm(QWidget *parent) :
|
||||||
videoButton->setFixedSize(50,40);
|
videoButton->setFixedSize(50,40);
|
||||||
videoButton->setToolTip(tr("Video call: RED means you're on a call"));
|
videoButton->setToolTip(tr("Video call: RED means you're on a call"));
|
||||||
volButton = new QPushButton();
|
volButton = new QPushButton();
|
||||||
volButton->setFixedSize(25,20);
|
//volButton->setFixedSize(25,20);
|
||||||
volButton->setToolTip(tr("Toggle speakers volume: RED is OFF"));
|
volButton->setToolTip(tr("Toggle speakers volume: RED is OFF"));
|
||||||
micButton = new QPushButton();
|
micButton = new QPushButton();
|
||||||
micButton->setFixedSize(25,20);
|
// micButton->setFixedSize(25,20);
|
||||||
micButton->setToolTip(tr("Toggle microphone: RED is OFF"));
|
micButton->setToolTip(tr("Toggle microphone: RED is OFF"));
|
||||||
|
|
||||||
footButtonsSmall->setSpacing(2);
|
footButtonsSmall->setSpacing(2);
|
||||||
|
@ -119,6 +122,13 @@ GenericChatForm::GenericChatForm(QWidget *parent) :
|
||||||
mainFootLayout->addSpacing(5);
|
mainFootLayout->addSpacing(5);
|
||||||
mainFootLayout->addWidget(sendButton);
|
mainFootLayout->addWidget(sendButton);
|
||||||
mainFootLayout->setSpacing(0);
|
mainFootLayout->setSpacing(0);
|
||||||
|
|
||||||
|
headTextLayout->addStretch();
|
||||||
|
headTextLayout->addWidget(nameLabel);
|
||||||
|
|
||||||
|
volMicLayout->addWidget(micButton, Qt::AlignTop);
|
||||||
|
volMicLayout->addSpacing(2);
|
||||||
|
volMicLayout->addWidget(volButton, Qt::AlignBottom);
|
||||||
|
|
||||||
headWidget->setLayout(headLayout);
|
headWidget->setLayout(headLayout);
|
||||||
headLayout->addWidget(avatar);
|
headLayout->addWidget(avatar);
|
||||||
|
@ -130,16 +140,6 @@ GenericChatForm::GenericChatForm(QWidget *parent) :
|
||||||
headLayout->addWidget(videoButton);
|
headLayout->addWidget(videoButton);
|
||||||
headLayout->setSpacing(0);
|
headLayout->setSpacing(0);
|
||||||
|
|
||||||
volMicLayout->addStretch();
|
|
||||||
volMicLayout->addSpacing(1);
|
|
||||||
volMicLayout->addWidget(micButton);
|
|
||||||
volMicLayout->addSpacing(2);
|
|
||||||
volMicLayout->addWidget(volButton);
|
|
||||||
volMicLayout->addStretch();
|
|
||||||
|
|
||||||
headTextLayout->addStretch();
|
|
||||||
headTextLayout->addWidget(nameLabel);
|
|
||||||
|
|
||||||
//Fix for incorrect layouts on OS X as per
|
//Fix for incorrect layouts on OS X as per
|
||||||
//https://bugreports.qt-project.org/browse/QTBUG-14591
|
//https://bugreports.qt-project.org/browse/QTBUG-14591
|
||||||
sendButton->setAttribute(Qt::WA_LayoutUsesWidgetRect);
|
sendButton->setAttribute(Qt::WA_LayoutUsesWidgetRect);
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
QLineEdit {
|
||||||
|
color: @black;
|
||||||
|
background: white;
|
||||||
|
border: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
#nameLabel {
|
#nameLabel {
|
||||||
color: @black;
|
color: @black;
|
||||||
font: @mediumBold;
|
font: @mediumBold;
|
||||||
|
|
|
@ -5,7 +5,7 @@ QPushButton#green
|
||||||
background-repeat: none;
|
background-repeat: none;
|
||||||
border: none;
|
border: none;
|
||||||
width: 25px;
|
width: 25px;
|
||||||
height: 20px;
|
height: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton#green:hover
|
QPushButton#green:hover
|
||||||
|
@ -20,7 +20,7 @@ QPushButton#red
|
||||||
background-repeat: none;
|
background-repeat: none;
|
||||||
border: none;
|
border: none;
|
||||||
width: 25px;
|
width: 25px;
|
||||||
height: 20px;
|
height: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton:focus {
|
QPushButton:focus {
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 624 B |
Binary file not shown.
Before Width: | Height: | Size: 597 B After Width: | Height: | Size: 590 B |
Binary file not shown.
Before Width: | Height: | Size: 629 B After Width: | Height: | Size: 617 B |
Loading…
Reference in New Issue
Block a user