added emote button and text length label

This commit is contained in:
fourtf
2017-01-22 05:58:23 +01:00
parent 9165d5cc2e
commit 8d85f91c4d
17 changed files with 268 additions and 72 deletions
+3 -5
View File
@@ -63,13 +63,11 @@ ChatWidgetHeader::ChatWidgetHeader(ChatWidget *parent)
// middle
this->middleLabel.setAlignment(Qt::AlignCenter);
/*QObject::connect(&this->middleLabel,
* SIGNAL(mouseDoubleClickEvent(QMouseEvent)), this,
* SLOT(mouseDoubleClickEvent));
* mouseDoubleClickEvent is not a signal, its an event handler
*/
connect(&this->middleLabel, &SignalLabel::mouseDoubleClick, this,
&ChatWidgetHeader::mouseDoubleClickEvent);
// connect(&this->middleLabel, &SignalLabel::mouseDown, this,
// &ChatWidgetHeader::mouseDoubleClickEvent);
// right
this->rightLabel.setMinimumWidth(height());