author | drw <drw> | 2004-02-25 16:32:24 (UTC) |
---|---|---|
committer | drw <drw> | 2004-02-25 16:32:24 (UTC) |
commit | bea97f98bfb31994425908e7ce982b2450696706 (patch) (unidiff) | |
tree | 2f2bc2f55d4656b7c63a06cdce6bc35346d9388f /core/pim/todo/textviewshow.cpp | |
parent | f84a46fce6c1b7702ec1eaebd40e363b67253649 (diff) | |
download | opie-bea97f98bfb31994425908e7ce982b2450696706.zip opie-bea97f98bfb31994425908e7ce982b2450696706.tar.gz opie-bea97f98bfb31994425908e7ce982b2450696706.tar.bz2 |
Todo: libopie->libopie2
Diffstat (limited to 'core/pim/todo/textviewshow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/textviewshow.cpp | 2 |
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 | ||
3 | using namespace Todo; | 3 | using namespace Todo; |
4 | 4 | ||
5 | TextViewShow::TextViewShow( QWidget* parent, MainWindow* win) | 5 | TextViewShow::TextViewShow( QWidget* parent, MainWindow* win) |
6 | : QTextView( parent ), TodoShow(win) { | 6 | : QTextView( parent ), TodoShow(win) { |
7 | 7 | ||
8 | } | 8 | } |
9 | TextViewShow::~TextViewShow() { | 9 | TextViewShow::~TextViewShow() { |
10 | } | 10 | } |
11 | QString TextViewShow::type()const { | 11 | QString TextViewShow::type()const { |
12 | return QString::fromLatin1("TextViewShow"); | 12 | return QString::fromLatin1("TextViewShow"); |
13 | } | 13 | } |
14 | void TextViewShow::slotShow( const OTodo& ev ) { | 14 | void TextViewShow::slotShow( const OPimTodo& ev ) { |
15 | setText( ev.toRichText() ); | 15 | setText( ev.toRichText() ); |
16 | } | 16 | } |
17 | QWidget* TextViewShow::widget() { | 17 | QWidget* TextViewShow::widget() { |
18 | return this; | 18 | return this; |
19 | } | 19 | } |
20 | void TextViewShow::keyPressEvent( QKeyEvent* event ) { | 20 | void 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 |