1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
krepa098 2014-09-09 18:28:07 +02:00
parent 39ba354651
commit ddf955afd3
4 changed files with 6 additions and 5 deletions

View File

@ -29,7 +29,7 @@ ChatForm::ChatForm(Friend* chatFriend)
nameLabel->setText(f->getName());
avatarLabel->setPixmap(QPixmap(":/img/contact_dark.png"));
statusMessageLabel = new QLabel();
statusMessageLabel = new CroppingLabel();
netcam = new NetCamView();
headTextLayout->addWidget(statusMessageLabel);

View File

@ -68,7 +68,7 @@ private slots:
private:
Friend* f;
QLabel *statusMessageLabel;
CroppingLabel *statusMessageLabel;
NetCamView* netcam;
bool audioInputFlag;
int callId;

View File

@ -30,7 +30,7 @@ GenericChatForm::GenericChatForm(QObject *parent) :
mainWidget = new QWidget(); headWidget = new QWidget();
nameLabel = new QLabel();
nameLabel = new CroppingLabel();
avatarLabel = new QLabel();
QHBoxLayout *headLayout = new QHBoxLayout(), *mainFootLayout = new QHBoxLayout();
headTextLayout = new QVBoxLayout();
@ -115,7 +115,6 @@ GenericChatForm::GenericChatForm(QObject *parent) :
headWidget->setLayout(headLayout);
headLayout->addWidget(avatarLabel);
headLayout->addLayout(headTextLayout);
headLayout->addStretch();
headLayout->addLayout(volMicLayout);
headLayout->addWidget(callButton);
headLayout->addWidget(videoButton);

View File

@ -25,6 +25,7 @@
#include <QVBoxLayout>
#include <QPushButton>
#include "widget/croppinglabel.h"
#include "widget/chatareawidget.h"
#include "widget/tool/chattextedit.h"
@ -58,7 +59,8 @@ protected slots:
void onEmoteInsertRequested(QString str);
protected:
QLabel *nameLabel, *avatarLabel;
CroppingLabel *nameLabel;
QLabel *avatarLabel;
QWidget *mainWidget, *headWidget;
QPushButton *fileButton, *emoteButton, *callButton, *videoButton, *volButton, *micButton;
QVBoxLayout *headTextLayout;