Changeset View
Changeset View
Standalone View
Standalone View
language/duchain/navigation/abstractnavigationcontext.cpp
Show First 20 Lines • Show All 324 Lines • ▼ Show 20 Line(s) | 324 | if( m_linkCount > 0 ) { | |||
---|---|---|---|---|---|
325 | --m_selectedLink; | 325 | --m_selectedLink; | ||
326 | if( m_selectedLink < 0 ) | 326 | if( m_selectedLink < 0 ) | ||
327 | m_selectedLink += m_linkCount; | 327 | m_selectedLink += m_linkCount; | ||
328 | } | 328 | } | ||
329 | 329 | | |||
330 | Q_ASSERT(m_selectedLink >= 0); | 330 | Q_ASSERT(m_selectedLink >= 0); | ||
331 | } | 331 | } | ||
332 | 332 | | |||
333 | int AbstractNavigationContext::linkCount() const | ||||
334 | { | ||||
335 | return m_linkCount; | ||||
336 | } | ||||
337 | | ||||
333 | void AbstractNavigationContext::setPrefixSuffix( const QString& prefix, const QString& suffix ) { | 338 | void AbstractNavigationContext::setPrefixSuffix( const QString& prefix, const QString& suffix ) { | ||
334 | m_prefix = prefix; | 339 | m_prefix = prefix; | ||
335 | m_suffix = suffix; | 340 | m_suffix = suffix; | ||
336 | } | 341 | } | ||
337 | 342 | | |||
338 | NavigationContextPointer AbstractNavigationContext::back() { | 343 | NavigationContextPointer AbstractNavigationContext::back() { | ||
339 | if(m_previousContext) | 344 | if(m_previousContext) | ||
340 | return NavigationContextPointer(m_previousContext); | 345 | return NavigationContextPointer(m_previousContext); | ||
▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 451 | if(line.indexOf(newLineRegExp) != -1) { | |||
448 | if(m_currentLine == m_currentPositionLine) { | 453 | if(m_currentLine == m_currentPositionLine) { | ||
449 | m_currentText += QStringLiteral("<font color=\"#880088\"> <a name = \"currentPosition\" ><-></a> </font>"); // ><-> is <-> | 454 | m_currentText += QStringLiteral("<font color=\"#880088\"> <a name = \"currentPosition\" ><-></a> </font>"); // ><-> is <-> | ||
450 | } | 455 | } | ||
451 | } | 456 | } | ||
452 | } | 457 | } | ||
453 | } | 458 | } | ||
454 | 459 | | |||
455 | QString AbstractNavigationContext::currentHtml() const { | 460 | QString AbstractNavigationContext::currentHtml() const { | ||
461 | | ||||
456 | return m_currentText; | 462 | return m_currentText; | ||
457 | } | 463 | } | ||
458 | 464 | | |||
459 | QString AbstractNavigationContext::fontSizePrefix(bool /*shorten*/) const | 465 | QString AbstractNavigationContext::fontSizePrefix(bool /*shorten*/) const | ||
460 | { | 466 | { | ||
461 | return QString(); | 467 | return QString(); | ||
462 | } | 468 | } | ||
463 | 469 | | |||
Show All 30 Lines |