1 |
// qsamplerMessages.cpp |
// qsamplerMessages.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2020, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2021, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, Christian Schoenebeck |
Copyright (C) 2007, Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
90 |
|
|
91 |
// Prepare the dockable window stuff. |
// Prepare the dockable window stuff. |
92 |
QDockWidget::setWidget(m_pMessagesTextView); |
QDockWidget::setWidget(m_pMessagesTextView); |
93 |
QDockWidget::setFeatures(QDockWidget::AllDockWidgetFeatures); |
// QDockWidget::setFeatures(QDockWidget::AllDockWidgetFeatures); |
94 |
QDockWidget::setAllowedAreas( |
QDockWidget::setAllowedAreas( |
95 |
Qt::TopDockWidgetArea | Qt::BottomDockWidgetArea); |
Qt::TopDockWidgetArea | Qt::BottomDockWidgetArea); |
96 |
// Some specialties to this kind of dock window... |
// Some specialties to this kind of dock window... |
118 |
} |
} |
119 |
|
|
120 |
|
|
121 |
|
#if defined(Q_CC_GNU) || defined(Q_CC_MINGW) |
122 |
|
#pragma GCC diagnostic push |
123 |
|
#pragma GCC diagnostic ignored "-Wunused-parameter" |
124 |
|
#endif |
125 |
|
|
126 |
// Set stdout/stderr blocking mode. |
// Set stdout/stderr blocking mode. |
127 |
bool Messages::stdoutBlock ( int fd, bool bBlock ) const |
bool Messages::stdoutBlock ( int fd, bool bBlock ) const |
128 |
{ |
{ |
161 |
#endif |
#endif |
162 |
} |
} |
163 |
|
|
164 |
|
#if defined(Q_CC_GNU) || defined(Q_CC_MINGW) |
165 |
|
#pragma GCC diagnostic pop |
166 |
|
#endif |
167 |
|
|
168 |
|
|
169 |
// Stdout buffer handler -- now splitted by complete new-lines... |
// Stdout buffer handler -- now splitted by complete new-lines... |
170 |
void Messages::appendStdoutBuffer ( const QString& s ) |
void Messages::appendStdoutBuffer ( const QString& s ) |