/[svn]/qsampler/trunk/src/qsamplerMessages.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMessages.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 338 by capela, Wed Jan 12 10:43:37 2005 UTC revision 772 by capela, Tue Sep 13 14:00:22 2005 UTC
# Line 51  Line 51 
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;
# Line 74  qsamplerMessages::qsamplerMessages ( QWi Line 68  qsamplerMessages::qsamplerMessages ( QWi
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);
79      QDockWindow::setOrientation(Qt::Horizontal);      QDockWindow::setOrientation(Qt::Horizontal);
80      QDockWindow::setCloseMode(QDockWindow::Always);      QDockWindow::setCloseMode(QDockWindow::Always);
81      QDockWindow::setResizeEnabled(true);      QDockWindow::setResizeEnabled(true);
82            // Some specialties to this kind of dock window...
83            QDockWindow::setFixedExtentHeight(120);
84    
85      // Finally set the default caption and tooltip.      // Finally set the default caption and tooltip.
86      QString sCaption = tr("Messages");      QString sCaption = tr("Messages");

Legend:
Removed from v.338  
changed lines
  Added in v.772

  ViewVC Help
Powered by ViewVC