forked from AttorneyOnline/AO2-Client
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaotextedit.cpp
More file actions
Latest commit
21 lines (15 loc) · 400 Bytes
/
Copy pathaotextedit.cpp
File metadata and controls
21 lines (15 loc) · 400 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include"aotextedit.h"
AOTextEdit::AOTextEdit(QWidget *parent) : QPlainTextEdit(parent)
{
this->setReadOnly(true);
//connect(this, SIGNAL(returnPressed()), this, SLOT(on_enter_pressed()));
}
voidAOTextEdit::mouseDoubleClickEvent(QMouseEvent *e)
{
QPlainTextEdit::mouseDoubleClickEvent(e);
this->setReadOnly(false);
}
voidAOTextEdit::on_enter_pressed()
{
this->setReadOnly(true);
}