Changeset View
Changeset View
Standalone View
Standalone View
plugins/defaultTools/guidestool/GuidesTool.cpp
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Line(s) | |||||
235 | 235 | | |||
236 | void GuidesTool::createGuideLine(Qt::Orientation orientation, qreal position) | 236 | void GuidesTool::createGuideLine(Qt::Orientation orientation, qreal position) | ||
237 | { | 237 | { | ||
238 | m_orientation = orientation; | 238 | m_orientation = orientation; | ||
239 | m_index = -1; | 239 | m_index = -1; | ||
240 | m_position = position; | 240 | m_position = position; | ||
241 | m_mode = AddGuide; | 241 | m_mode = AddGuide; | ||
242 | 242 | | |||
243 | KoToolManager::instance()->switchToolRequested(GuidesToolId); | 243 | KoToolManager::instance()->switchToolRequested(GuidesTool_ID); | ||
244 | 244 | | |||
245 | // grab the mouse so we get mouse events as the dragging started on a ruler | 245 | // grab the mouse so we get mouse events as the dragging started on a ruler | ||
246 | canvas()->canvasWidget()->grabMouse(); | 246 | canvas()->canvasWidget()->grabMouse(); | ||
247 | } | 247 | } | ||
248 | 248 | | |||
249 | void GuidesTool::moveGuideLine(Qt::Orientation orientation, int index) | 249 | void GuidesTool::moveGuideLine(Qt::Orientation orientation, int index) | ||
250 | { | 250 | { | ||
251 | m_orientation = orientation; | 251 | m_orientation = orientation; | ||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |