Remove "All rights reserved" line from license headers.
[profile/ivi/qtdeclarative.git] / tools / qmlviewer / loggerwidget.cpp
index a82336b..02ee8c6 100644 (file)
@@ -1,8 +1,7 @@
 /****************************************************************************
 **
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
 **
 ** This file is part of the tools applications of the Qt Toolkit.
 **
@@ -35,6 +34,7 @@
 **
 **
 **
+**
 ** $QT_END_LICENSE$
 **
 ****************************************************************************/
 #include <QPlainTextEdit>
 #include <QLabel>
 #include <QVBoxLayout>
-#ifdef Q_WS_MAEMO_5
-#  include <QScrollArea>
-#  include <QVBoxLayout>
-#  include "texteditautoresizer_maemo5.h"
-#endif
 
 #include "loggerwidget.h"
 
@@ -65,31 +60,7 @@ LoggerWidget::LoggerWidget(QWidget *parent) :
     setWindowTitle(tr("Warnings"));
 
     m_plainTextEdit = new QPlainTextEdit();
-
-#if defined(Q_OS_SYMBIAN)
-    QAction* clearAction = new QAction(tr("Clear"), this);
-    clearAction->setSoftKeyRole(QAction::PositiveSoftKey);
-    connect(clearAction, SIGNAL(triggered()), m_plainTextEdit, SLOT(clear()));
-    addAction(clearAction);
-
-    m_plainTextEdit->setReadOnly(true);
-    QAction* backAction = new QAction( tr("Back"), this );
-    backAction->setSoftKeyRole( QAction::NegativeSoftKey );
-    connect(backAction, SIGNAL(triggered()), this, SLOT(hide()));
-    addAction( backAction );
-#endif
-
-#ifdef Q_WS_MAEMO_5
-    new TextEditAutoResizer(m_plainTextEdit);
-    setAttribute(Qt::WA_Maemo5StackedWindow);
-    QScrollArea *area = new QScrollArea();
-    area->setWidget(m_plainTextEdit);
-    area->setWidgetResizable(true);
-    setCentralWidget(area);
-#else
     setCentralWidget(m_plainTextEdit);
-#endif
-
     m_noWarningsLabel = new QLabel(m_plainTextEdit);
     m_noWarningsLabel->setText(tr("(No warnings)"));
     m_noWarningsLabel->setAlignment(Qt::AlignVCenter | Qt::AlignHCenter);