|
|
@ -37,9 +37,7 @@ GenericChatForm::GenericChatForm(QWidget *parent) : |
|
|
|
headWidget = new QWidget(); |
|
|
|
headWidget = new QWidget(); |
|
|
|
|
|
|
|
|
|
|
|
nameLabel = new CroppingLabel(); |
|
|
|
nameLabel = new CroppingLabel(); |
|
|
|
nameLabel->setFont(Style::getFont(Style::MediumBold)); |
|
|
|
nameLabel->setObjectName("nameLabel"); |
|
|
|
QPalette pal; pal.setColor(QPalette::WindowText, Style::getColor(Style::DarkGrey)); |
|
|
|
|
|
|
|
nameLabel->setPalette(pal); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(), *mainFootLayout = new QHBoxLayout(); |
|
|
@ -48,8 +46,6 @@ GenericChatForm::GenericChatForm(QWidget *parent) : |
|
|
|
QVBoxLayout *footButtonsSmall = new QVBoxLayout(), *volMicLayout = new QVBoxLayout(); |
|
|
|
QVBoxLayout *footButtonsSmall = new QVBoxLayout(), *volMicLayout = new QVBoxLayout(); |
|
|
|
|
|
|
|
|
|
|
|
chatWidget = new ChatAreaWidget(); |
|
|
|
chatWidget = new ChatAreaWidget(); |
|
|
|
chatWidget->document()->setDefaultStyleSheet(Style::getStylesheet(":ui/chatArea/innerStyle.css")); |
|
|
|
|
|
|
|
chatWidget->setStyleSheet(Style::getStylesheet(":/ui/chatArea/chatArea.css")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
msgEdit = new ChatTextEdit(); |
|
|
|
msgEdit = new ChatTextEdit(); |
|
|
|
|
|
|
|
|
|
|
@ -62,10 +58,6 @@ GenericChatForm::GenericChatForm(QWidget *parent) : |
|
|
|
volButton = new QPushButton(); |
|
|
|
volButton = new QPushButton(); |
|
|
|
micButton = new QPushButton(); |
|
|
|
micButton = new QPushButton(); |
|
|
|
|
|
|
|
|
|
|
|
QFont bold; |
|
|
|
|
|
|
|
bold.setBold(true); |
|
|
|
|
|
|
|
nameLabel->setFont(bold); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
footButtonsSmall->setSpacing(2); |
|
|
|
footButtonsSmall->setSpacing(2); |
|
|
|
|
|
|
|
|
|
|
|
msgEdit->setStyleSheet(Style::getStylesheet(":/ui/msgEdit/msgEdit.css")); |
|
|
|
msgEdit->setStyleSheet(Style::getStylesheet(":/ui/msgEdit/msgEdit.css")); |
|
|
@ -125,6 +117,10 @@ GenericChatForm::GenericChatForm(QWidget *parent) : |
|
|
|
|
|
|
|
|
|
|
|
connect(emoteButton, SIGNAL(clicked()), this, SLOT(onEmoteButtonClicked())); |
|
|
|
connect(emoteButton, SIGNAL(clicked()), this, SLOT(onEmoteButtonClicked())); |
|
|
|
connect(chatWidget, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(onChatContextMenuRequested(QPoint))); |
|
|
|
connect(chatWidget, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(onChatContextMenuRequested(QPoint))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chatWidget->document()->setDefaultStyleSheet(Style::getStylesheet(":ui/chatArea/innerStyle.css")); |
|
|
|
|
|
|
|
chatWidget->setStyleSheet(Style::getStylesheet(":/ui/chatArea/chatArea.css")); |
|
|
|
|
|
|
|
headWidget->setStyleSheet(Style::getStylesheet(":/ui/chatArea/chatHead.css")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int GenericChatForm::getNumberOfMessages() |
|
|
|
int GenericChatForm::getNumberOfMessages() |
|
|
|