• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

kjsembed

Signals | Public Member Functions | Protected Slots | Properties | List of all members
NumberedTextView Class Reference

#include <numberedtextview.h>

Inheritance diagram for NumberedTextView:
QFrame

Signals

void mouseHover (const QPoint &pos, const QString &word)
 
void mouseHover (const QString &word)
 

Public Member Functions

 NumberedTextView (QWidget *parent=0)
 
 ~NumberedTextView ()
 
int bugLine () const
 
int currentLine () const
 
bool eventFilter (QObject *obj, QEvent *event)
 
void setBugLine (int lineno)
 
void setCurrentLine (int lineno)
 
void setStopLine (int lineno)
 
void setText (const QString &text)
 
int stopLine () const
 
QString text () const
 
QTextEdit * textEdit () const
 

Protected Slots

void textChanged (int pos, int added, int removed)
 

Properties

int bugLine
 
int currentLine
 
int stopLine
 
QString text
 

Detailed Description

Displays a QTextEdit with line numbers.

Definition at line 76 of file numberedtextview.h.

Constructor & Destructor Documentation

◆ NumberedTextView()

NumberedTextView::NumberedTextView ( QWidget *  parent = 0)

Definition at line 155 of file numberedtextview.cpp.

◆ ~NumberedTextView()

NumberedTextView::~NumberedTextView ( )

Definition at line 185 of file numberedtextview.cpp.

Member Function Documentation

◆ bugLine()

int NumberedTextView::bugLine ( ) const

Definition at line 215 of file numberedtextview.cpp.

◆ currentLine()

int NumberedTextView::currentLine ( ) const

Definition at line 205 of file numberedtextview.cpp.

◆ eventFilter()

bool NumberedTextView::eventFilter ( QObject *  obj,
QEvent *  event 
)

Used to get tooltip events from the view for the hover signal.

Definition at line 262 of file numberedtextview.cpp.

◆ mouseHover [1/2]

void NumberedTextView::mouseHover ( const QPoint &  pos,
const QString &  word 
)
signal

Emitted when the mouse is hovered over the text edit component.

Parameters
posThe position of the mouse pointer.
wordThe word under the mouse pointer

◆ mouseHover [2/2]

void NumberedTextView::mouseHover ( const QString &  word)
signal

Emitted when the mouse is hovered over the text edit component.

Parameters
wordThe word under the mouse pointer

◆ setBugLine()

void NumberedTextView::setBugLine ( int  lineno)

Sets the line that should have the bug line indicator.

A value of -1 indicates no line should show the indicator.

Definition at line 200 of file numberedtextview.cpp.

◆ setCurrentLine()

void NumberedTextView::setCurrentLine ( int  lineno)

Sets the line that should have the current line indicator.

A value of -1 indicates no line should show the indicator.

Definition at line 189 of file numberedtextview.cpp.

◆ setStopLine()

void NumberedTextView::setStopLine ( int  lineno)

Sets the line that should have the stop line indicator.

A value of -1 indicates no line should show the indicator.

Definition at line 195 of file numberedtextview.cpp.

◆ setText()

void NumberedTextView::setText ( const QString &  text)

Definition at line 225 of file numberedtextview.cpp.

◆ stopLine()

int NumberedTextView::stopLine ( ) const

Definition at line 210 of file numberedtextview.cpp.

◆ text()

QString NumberedTextView::text ( ) const

Definition at line 220 of file numberedtextview.cpp.

◆ textChanged

void NumberedTextView::textChanged ( int  pos,
int  added,
int  removed 
)
protectedslot

Used to update the highlight on the current line.

Definition at line 231 of file numberedtextview.cpp.

◆ textEdit()

QTextEdit * NumberedTextView::textEdit ( ) const
inline

Returns the QTextEdit of the main view.

Definition at line 88 of file numberedtextview.h.

Property Documentation

◆ bugLine

int NumberedTextView::bugLine
readwrite

Definition at line 70 of file numberedtextview.h.

◆ currentLine

int NumberedTextView::currentLine
readwrite

Definition at line 70 of file numberedtextview.h.

◆ stopLine

int NumberedTextView::stopLine
readwrite

Definition at line 70 of file numberedtextview.h.

◆ text

QString NumberedTextView::text
readwrite

Definition at line 70 of file numberedtextview.h.


The documentation for this class was generated from the following files:
  • numberedtextview.h
  • numberedtextview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kjsembed

Skip menu "kjsembed"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal