51 |
qsamplerMessages::qsamplerMessages ( QWidget *pParent, const char *pszName ) |
qsamplerMessages::qsamplerMessages ( QWidget *pParent, const char *pszName ) |
52 |
: QDockWindow(pParent, pszName) |
: QDockWindow(pParent, pszName) |
53 |
{ |
{ |
|
#if QT_VERSION >= 0x030200 |
|
|
m_pTextView->setTextFormat(Qt::LogText); |
|
|
#endif |
|
|
// Initialize default message limit. |
|
|
setMessagesLimit(QSAMPLER_MESSAGES_MAXLINES); |
|
|
|
|
54 |
// Intialize stdout capture stuff. |
// Intialize stdout capture stuff. |
55 |
m_pStdoutNotifier = NULL; |
m_pStdoutNotifier = NULL; |
56 |
m_fdStdout[QSAMPLER_MESSAGES_FDREAD] = QSAMPLER_MESSAGES_FDNIL; |
m_fdStdout[QSAMPLER_MESSAGES_FDREAD] = QSAMPLER_MESSAGES_FDNIL; |
68 |
m_pTextView->setWordWrap(QTextEdit::NoWrap); |
m_pTextView->setWordWrap(QTextEdit::NoWrap); |
69 |
m_pTextView->setReadOnly(true); |
m_pTextView->setReadOnly(true); |
70 |
m_pTextView->setUndoRedoEnabled(false); |
m_pTextView->setUndoRedoEnabled(false); |
71 |
|
#if QT_VERSION >= 0x030200 |
72 |
|
m_pTextView->setTextFormat(Qt::LogText); |
73 |
|
#endif |
74 |
|
// Initialize default message limit. |
75 |
|
setMessagesLimit(QSAMPLER_MESSAGES_MAXLINES); |
76 |
|
|
77 |
// Prepare the dockable window stuff. |
// Prepare the dockable window stuff. |
78 |
QDockWindow::setWidget(m_pTextView); |
QDockWindow::setWidget(m_pTextView); |