Commit a0cbceaf authored by Matthias Möller's avatar Matthias Möller

improve performance (especially when using the logger concurrent in the future)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20842 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 20d21d24
......@@ -69,6 +69,7 @@ LoggerWidget::LoggerWidget( QWidget *parent)
list_->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
list_->setFocusPolicy(Qt::NoFocus);
list_->setSelectionMode(QAbstractItemView::ExtendedSelection);
list_->setUniformItemSizes(true);
QString path = OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator();
......@@ -182,7 +183,7 @@ LoggerWidget::~LoggerWidget()
//-------------------------------------------------------------------------------------
/// Append a new logmessage to log viewer
void LoggerWidget::append(QString _text, Logtype _type){
void LoggerWidget::append(const QString& _text, Logtype _type){
list_->addItem(_text);
......@@ -228,7 +229,7 @@ void LoggerWidget::append(QString _text, Logtype _type){
}
// If the logger is hidden, we just ignore the update ... done by showEvent later
if ( isHidden() )
if ( isHidden() )
return;
// Remember that we have new logs to show
......
......@@ -74,7 +74,7 @@ class LoggerWidget : public QWidget
*
* Display log message of given logtype
*/
void append(QString _text, Logtype _type);
void append(const QString& _text, Logtype _type);
protected:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment