mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #767
This commit is contained in:
parent
5bed0c248a
commit
3de63c0061
|
@ -144,3 +144,8 @@ void CroppingLabel::showTextEdit()
|
||||||
textEdit->setFocus();
|
textEdit->setFocus();
|
||||||
textEdit->setText(origText);
|
textEdit->setText(origText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString CroppingLabel::fullText()
|
||||||
|
{
|
||||||
|
return origText;
|
||||||
|
}
|
||||||
|
|
|
@ -37,6 +37,8 @@ public:
|
||||||
virtual void mouseReleaseEvent(QMouseEvent *e);
|
virtual void mouseReleaseEvent(QMouseEvent *e);
|
||||||
virtual bool eventFilter(QObject *obj, QEvent *e);
|
virtual bool eventFilter(QObject *obj, QEvent *e);
|
||||||
|
|
||||||
|
QString fullText(); ///< Returns the un-cropped text
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void textChanged(QString newText, QString oldText);
|
void textChanged(QString newText, QString oldText);
|
||||||
void clicked();
|
void clicked();
|
||||||
|
|
|
@ -85,7 +85,7 @@ void GenericChatroomWidget::setStatusMsg(const QString &status)
|
||||||
|
|
||||||
QString GenericChatroomWidget::getName() const
|
QString GenericChatroomWidget::getName() const
|
||||||
{
|
{
|
||||||
return nameLabel->text();
|
return nameLabel->fullText();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString GenericChatroomWidget::getStatusMsg() const
|
QString GenericChatroomWidget::getStatusMsg() const
|
||||||
|
|
Loading…
Reference in New Issue
Block a user