summaryrefslogtreecommitdiff
path: root/core/pim/todo/textviewshow.cpp
Unidiff
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
@@ -2,25 +2,25 @@
2 2
3using namespace Todo; 3using namespace Todo;
4 4
5TextViewShow::TextViewShow( QWidget* parent, MainWindow* win) 5TextViewShow::TextViewShow( QWidget* parent, MainWindow* win)
6 : QTextView( parent ), TodoShow(win) { 6 : QTextView( parent ), TodoShow(win) {
7 7
8} 8}
9TextViewShow::~TextViewShow() { 9TextViewShow::~TextViewShow() {
10} 10}
11QString TextViewShow::type()const { 11QString TextViewShow::type()const {
12 return QString::fromLatin1("TextViewShow"); 12 return QString::fromLatin1("TextViewShow");
13} 13}
14void TextViewShow::slotShow( const OTodo& ev ) { 14void TextViewShow::slotShow( const OPimTodo& ev ) {
15 setText( ev.toRichText() ); 15 setText( ev.toRichText() );
16} 16}
17QWidget* TextViewShow::widget() { 17QWidget* TextViewShow::widget() {
18 return this; 18 return this;
19} 19}
20void TextViewShow::keyPressEvent( QKeyEvent* event ) { 20void TextViewShow::keyPressEvent( QKeyEvent* event ) {
21 switch( event->key() ) { 21 switch( event->key() ) {
22 case Qt::Key_Up: 22 case Qt::Key_Up:
23 if ( ( visibleHeight() < contentsHeight() ) && 23 if ( ( visibleHeight() < contentsHeight() ) &&
24 ( verticalScrollBar()->value() > verticalScrollBar()->minValue() ) ) 24 ( verticalScrollBar()->value() > verticalScrollBar()->minValue() ) )
25 scrollBy( 0, -(visibleHeight()-20) ); 25 scrollBy( 0, -(visibleHeight()-20) );
26 else 26 else