diff -r 4697dfb2d7ad -r 238255e8b033 messagingapp/msgui/unifiedviewer/src/unitexteditor.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingapp/msgui/unifiedviewer/src/unitexteditor.cpp Fri Apr 16 14:56:15 2010 +0300 @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description:Custom widget derived from HbTextEdit which provides rich text + * processing + * + */ + +#include "unitexteditor.h" + +#include +#include +#include + +//--------------------------------------------------------------- +// UniTextEditor::UniTextEditor +// @see header file +//--------------------------------------------------------------- +UniTextEditor::UniTextEditor(QGraphicsItem * parent) : + HbTextEdit(parent) +{ + setReadOnly(true); + setCursorVisibility(Hb::TextCursorHidden); + setScrollable(false); + setAttribute(Qt::WA_InputMethodEnabled, false); +} + +//--------------------------------------------------------------- +// UniTextEditor::~UniTextEditor +// @see header file +//--------------------------------------------------------------- +UniTextEditor::~UniTextEditor() +{ + + } + +//--------------------------------------------------------------- +//UniTextEditor :: focusInEvent +// @see header file +//--------------------------------------------------------------- +void UniTextEditor::focusInEvent(QFocusEvent *event) +{ + event->ignore(); +} + +//--------------------------------------------------------------- +//UniTextEditor :: focusOutEvent +// @see header file +//--------------------------------------------------------------- +void UniTextEditor::focusOutEvent(QFocusEvent *event) +{ + event->ignore(); +} + +//--------------------------------------------------------------- +//UniTextEditor :: mousePressEvent +// @see header file +//--------------------------------------------------------------- +void UniTextEditor::mousePressEvent(QGraphicsSceneMouseEvent *event) +{ + event->ignore(); +} + +//--------------------------------------------------------------- +//UniTextEditor :: mouseMoveEvent +// @see header file +//--------------------------------------------------------------- +void UniTextEditor::mouseMoveEvent(QGraphicsSceneMouseEvent *event) +{ + event->ignore(); +} + +//--------------------------------------------------------------- +//UniTextEditor :: mouseReleaseEvent +// @see header file +//--------------------------------------------------------------- +void UniTextEditor::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) +{ + event->ignore(); +} + +// EOF