mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
Fiw Delete key event in ChatWidget.
This commit is contained in:
parent
b055500245
commit
64389e35d8
@ -488,10 +488,10 @@ bool ChatWidget::eventFilter(QObject *obj, QEvent *event)
|
|||||||
|
|
||||||
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
|
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
|
||||||
if (keyEvent) {
|
if (keyEvent) {
|
||||||
if (notify && keyEvent->key() == Qt::Key_Delete) {
|
if (keyEvent->key() == Qt::Key_Delete) {
|
||||||
// Delete key pressed
|
// Delete key pressed
|
||||||
if (ui->textBrowser->textCursor().selectedText().length() > 0) {
|
if (ui->textBrowser->textCursor().selectedText().length() > 0) {
|
||||||
if (chatType() == CHATTYPE_LOBBY) {
|
if (notify && chatType() == CHATTYPE_LOBBY) {
|
||||||
QRegExp rx("<a name=\"(.*)\"",Qt::CaseSensitive, QRegExp::RegExp2);
|
QRegExp rx("<a name=\"(.*)\"",Qt::CaseSensitive, QRegExp::RegExp2);
|
||||||
rx.setMinimal(true);
|
rx.setMinimal(true);
|
||||||
QString sel=ui->textBrowser->textCursor().selection().toHtml();
|
QString sel=ui->textBrowser->textCursor().selection().toHtml();
|
||||||
|
Loading…
Reference in New Issue
Block a user