Changeset View
Changeset View
Standalone View
Standalone View
tools/selection/text/kpToolText_SelectText.cpp
Show All 37 Lines | |||||
38 | #include "views/kpView.h" | 38 | #include "views/kpView.h" | ||
39 | #include "views/manager/kpViewManager.h" | 39 | #include "views/manager/kpViewManager.h" | ||
40 | 40 | | |||
41 | 41 | | |||
42 | // private | 42 | // private | ||
43 | bool kpToolText::onSelectionToSelectText () const | 43 | bool kpToolText::onSelectionToSelectText () const | ||
44 | { | 44 | { | ||
45 | kpView *v = viewManager ()->viewUnderCursor (); | 45 | kpView *v = viewManager ()->viewUnderCursor (); | ||
46 | if (!v) | 46 | if (!v) { | ||
47 | return 0; | 47 | return false; | ||
48 | } | ||||
48 | 49 | | |||
49 | return v->mouseOnSelectionToSelectText (currentViewPoint ()); | 50 | return v->mouseOnSelectionToSelectText (currentViewPoint ()); | ||
50 | } | 51 | } | ||
51 | 52 | | |||
52 | 53 | | |||
53 | // private | 54 | // private | ||
54 | QString kpToolText::haventBegunDrawUserMessageSelectText () const | 55 | QString kpToolText::haventBegunDrawUserMessageSelectText () const | ||
55 | { | 56 | { | ||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |