
Indentation fixed to 2 spaces per tab. Braces set to Stroustrup style. Lines reflow at 80 characters. One-line method bodies are on the same line as the signature. Space always after `//`. No indentation on preprocessor macros. Includes are sorted lexicographically. If you don't want to see this commit on blames, use the hidden whitespace option on GitHub, or use `-w` in git-blame.
19 lines
410 B
C++
19 lines
410 B
C++
#include "aolineedit.h"
|
|
|
|
AOLineEdit::AOLineEdit(QWidget *parent) : QLineEdit(parent)
|
|
{
|
|
this->setReadOnly(true);
|
|
this->setFrame(false);
|
|
|
|
connect(this, SIGNAL(returnPressed()), this, SLOT(on_enter_pressed()));
|
|
}
|
|
|
|
void AOLineEdit::mouseDoubleClickEvent(QMouseEvent *e)
|
|
{
|
|
QLineEdit::mouseDoubleClickEvent(e);
|
|
|
|
this->setReadOnly(false);
|
|
}
|
|
|
|
void AOLineEdit::on_enter_pressed() { this->setReadOnly(true); }
|