• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Widgets Library
 

KDevelop Widgets Library

Public Member Functions | Protected Attributes | List of all members
FancyListViewItem Class Reference

#include <fancylistviewitem.h>

Inherits TDEListViewItem.

Public Member Functions

 FancyListViewItem (TextPaintStyleStore &styles, TQListView *parent, const TQString &label1, const TQString &label2="")
 
 FancyListViewItem (TextPaintStyleStore &styles, TQListViewItem *parent, const TQString &label1, const TQString &label2="")
 
virtual void paintCell (TQPainter *painter, const TQColorGroup &cg, int column, int width, int align)
 
virtual int width (const TQFontMetrics &fm, const TQListView *lv, int column)
 
virtual void setText (int column, const TQString &text)
 
virtual TQString text (int column) const
 
void clear ()
 
TextPaintItem & item (int column=0)
 
void setItem (int column, TextPaintItem item)
 

Protected Attributes

TextPaintStyleStore & m_styles
 

Detailed Description

does not support multiple column, a "column" represents a part of the real first column TDEListViewItem is only needed for the background-color

Definition at line 124 of file fancylistviewitem.h.

Constructor & Destructor Documentation

◆ FancyListViewItem() [1/2]

FancyListViewItem::FancyListViewItem ( TextPaintStyleStore &  styles,
TQListView *  parent,
const TQString &  label1,
const TQString &  label2 = "" 
)
inline

Definition at line 127 of file fancylistviewitem.h.

◆ FancyListViewItem() [2/2]

FancyListViewItem::FancyListViewItem ( TextPaintStyleStore &  styles,
TQListViewItem *  parent,
const TQString &  label1,
const TQString &  label2 = "" 
)
inline

Definition at line 131 of file fancylistviewitem.h.

Member Function Documentation

◆ clear()

void FancyListViewItem::clear ( )
inline

Definition at line 140 of file fancylistviewitem.h.

◆ item()

TextPaintItem & FancyListViewItem::item ( int  column = 0)
inline

Definition at line 144 of file fancylistviewitem.h.

◆ paintCell()

void FancyListViewItem::paintCell ( TQPainter *  painter,
const TQColorGroup &  cg,
int  column,
int  width,
int  align 
)
virtual

this is a modified version of the original TQListViewItem::paintCell from the qt source multiline is not supported!

currently only the first background-color is used

use the nice kde background-color

Definition at line 68 of file fancylistviewitem.cpp.

◆ setItem()

void FancyListViewItem::setItem ( int  column,
TextPaintItem  item 
)

Definition at line 35 of file fancylistviewitem.cpp.

◆ setText()

void FancyListViewItem::setText ( int  column,
const TQString &  text 
)
virtual

Definition at line 44 of file fancylistviewitem.cpp.

◆ text()

TQString FancyListViewItem::text ( int  column) const
virtual

Definition at line 53 of file fancylistviewitem.cpp.

◆ width()

int FancyListViewItem::width ( const TQFontMetrics &  fm,
const TQListView *  lv,
int  column 
)
virtual

Definition at line 178 of file fancylistviewitem.cpp.

Member Data Documentation

◆ m_styles

TextPaintStyleStore& FancyListViewItem::m_styles
protected

Definition at line 159 of file fancylistviewitem.h.


The documentation for this class was generated from the following files:
  • fancylistviewitem.h
  • fancylistviewitem.cpp

KDevelop Widgets Library

Skip menu "KDevelop Widgets Library"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDevelop Widgets Library

Skip menu "KDevelop Widgets Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Widgets Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.