Subversion Repositories tpanel

Rev

Rev 419 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 419 Rev 421
Line 23... Line 23...
23
#include "terror.h"
23
#include "terror.h"
24
 
24
 
25
using std::string;
25
using std::string;
26
 
26
 
27
TQMultiLine::TQMultiLine(QWidget *parent)
27
TQMultiLine::TQMultiLine(QWidget *parent)
-
 
28
    : QTextEdit(parent)
28
{
29
{
29
    DECL_TRACER("TQMultiLine::TQMultiLine(QWidget *parent)");
30
    DECL_TRACER("TQMultiLine::TQMultiLine(QWidget *parent)");
30
 
-
 
31
    setParent(parent);
-
 
32
}
31
}
33
 
32
 
34
TQMultiLine::TQMultiLine(QWidget *parent, const string& text)
33
TQMultiLine::TQMultiLine(QWidget *parent, const string& text)
-
 
34
    : QTextEdit(parent)
35
{
35
{
36
    DECL_TRACER("TQMultiLine::TQMultiLine(QWidget *parent, const string& text)");
36
    DECL_TRACER("TQMultiLine::TQMultiLine(QWidget *parent, const string& text)");
37
 
37
 
38
    setParent(parent);
-
 
39
    setText(text.c_str());
38
    setText(text.c_str());
40
}
39
}
41
 
40
 
42
/*******************************************************************************
41
/*******************************************************************************
43
 * Signal handling
42
 * Signal handling
Line 45... Line 44...
45
 
44
 
46
void TQMultiLine::keyPressEvent(QKeyEvent *e)
45
void TQMultiLine::keyPressEvent(QKeyEvent *e)
47
{
46
{
48
    DECL_TRACER("TQMultiLine::keyPressEvent(QKeyEvent *e)");
47
    DECL_TRACER("TQMultiLine::keyPressEvent(QKeyEvent *e)");
49
 
48
 
-
 
49
    QTextEdit::keyPressEvent(e);
50
    emit keyPressed(e->key());
50
    emit keyPressed(e->key());
51
}
51
}
52
 
52
 
53
void TQMultiLine::focusInEvent(QFocusEvent *e)
53
void TQMultiLine::focusInEvent(QFocusEvent *e)
54
{
54
{
55
    DECL_TRACER("TQMultiLine::focusInEvent(QFocusEvent *e)");
55
    DECL_TRACER("TQMultiLine::focusInEvent(QFocusEvent *e)");
56
 
56
 
57
    Q_UNUSED(e);
57
    QTextEdit::focusInEvent(e);
58
    emit focusChanged(true);
58
    emit focusChanged(true);
59
}
59
}
60
 
60
 
61
void TQMultiLine::focusOutEvent(QFocusEvent *e)
61
void TQMultiLine::focusOutEvent(QFocusEvent *e)
62
{
62
{
63
    DECL_TRACER("TQMultiLine::focusOutEvent(QFocusEvent *e)");
63
    DECL_TRACER("TQMultiLine::focusOutEvent(QFocusEvent *e)");
64
 
64
 
65
    Q_UNUSED(e);
65
    QTextEdit::focusOutEvent(e);
66
    emit focusChanged(false);
66
    emit focusChanged(false);
67
}
67
}