summaryrefslogtreecommitdiff
path: root/core/pim/todo/textviewshow.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/textviewshow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/textviewshow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/todo/textviewshow.cpp b/core/pim/todo/textviewshow.cpp
index 35ea74b..01e5810 100644
--- a/core/pim/todo/textviewshow.cpp
+++ b/core/pim/todo/textviewshow.cpp
@@ -1,38 +1,38 @@
#include "textviewshow.h"
using namespace Todo;
TextViewShow::TextViewShow( QWidget* parent, MainWindow* win)
: QTextView( parent ), TodoShow(win) {
}
TextViewShow::~TextViewShow() {
}
QString TextViewShow::type()const {
return QString::fromLatin1("TextViewShow");
}
-void TextViewShow::slotShow( const OTodo& ev ) {
+void TextViewShow::slotShow( const OPimTodo& ev ) {
setText( ev.toRichText() );
}
QWidget* TextViewShow::widget() {
return this;
}
void TextViewShow::keyPressEvent( QKeyEvent* event ) {
switch( event->key() ) {
case Qt::Key_Up:
if ( ( visibleHeight() < contentsHeight() ) &&
( verticalScrollBar()->value() > verticalScrollBar()->minValue() ) )
scrollBy( 0, -(visibleHeight()-20) );
else
showPrev();
break;
case Qt::Key_Down:
if ( ( visibleHeight() < contentsHeight() ) &&
( verticalScrollBar()->value() < verticalScrollBar()->maxValue() ) )
scrollBy( 0, visibleHeight()-20 );
else
showNext();
break;
case Qt::Key_Left:
case Qt::Key_Right:
case Qt::Key_F33: