KateModeMenuListData::ListItem

Search for usage in LXR

KateModeMenuListData::ListItem Class Reference

#include <katemodemenulist.h>

Inheritance diagram for KateModeMenuListData::ListItem:

Public Member Functions

bool generateSearchName (const QString &itemName)
 
const KateFileType * getMode () const
 
const QStringgetSearchName () const
 
bool hasMode () const
 
bool matchExtension (const QString &text) const
 
void setMode (KateFileType *type)
 
- Public Member Functions inherited from QStandardItem
 QStandardItem (const QIcon &icon, const QString &text)
 
 QStandardItem (const QString &text)
 
 QStandardItem (int rows, int columns)
 
QString accessibleDescription () const const
 
QString accessibleText () const const
 
void appendColumn (const QList< QStandardItem * > &items)
 
void appendRow (const QList< QStandardItem * > &items)
 
void appendRow (QStandardItem *item)
 
void appendRows (const QList< QStandardItem * > &items)
 
QBrush background () const const
 
Qt::CheckState checkState () const const
 
QStandardItemchild (int row, int column) const const
 
void clearData ()
 
virtual QStandardItemclone () const const
 
int column () const const
 
int columnCount () const const
 
virtual QVariant data (int role) const const
 
Qt::ItemFlags flags () const const
 
QFont font () const const
 
QBrush foreground () const const
 
bool hasChildren () const const
 
QIcon icon () const const
 
QModelIndex index () const const
 
void insertColumn (int column, const QList< QStandardItem * > &items)
 
void insertColumns (int column, int count)
 
void insertRow (int row, const QList< QStandardItem * > &items)
 
void insertRow (int row, QStandardItem *item)
 
void insertRows (int row, const QList< QStandardItem * > &items)
 
void insertRows (int row, int count)
 
bool isAutoTristate () const const
 
bool isCheckable () const const
 
bool isDragEnabled () const const
 
bool isDropEnabled () const const
 
bool isEditable () const const
 
bool isEnabled () const const
 
bool isSelectable () const const
 
bool isUserTristate () const const
 
QStandardItemModelmodel () const const
 
virtual void multiData (QModelRoleDataSpan roleDataSpan) const const
 
virtual bool operator< (const QStandardItem &other) const const
 
QDataStreamoperator<< (QDataStream &out, const QStandardItem &item)
 
QDataStreamoperator>> (QDataStream &in, QStandardItem &item)
 
QStandardItemparent () const const
 
virtual void read (QDataStream &in)
 
void removeColumn (int column)
 
void removeColumns (int column, int count)
 
void removeRow (int row)
 
void removeRows (int row, int count)
 
int row () const const
 
int rowCount () const const
 
void setAccessibleDescription (const QString &accessibleDescription)
 
void setAccessibleText (const QString &accessibleText)
 
void setAutoTristate (bool tristate)
 
void setBackground (const QBrush &brush)
 
void setCheckable (bool checkable)
 
void setCheckState (Qt::CheckState state)
 
void setChild (int row, int column, QStandardItem *item)
 
void setChild (int row, QStandardItem *item)
 
void setColumnCount (int columns)
 
virtual void setData (const QVariant &value, int role)
 
void setDragEnabled (bool dragEnabled)
 
void setDropEnabled (bool dropEnabled)
 
void setEditable (bool editable)
 
void setEnabled (bool enabled)
 
void setFlags (Qt::ItemFlags flags)
 
void setFont (const QFont &font)
 
void setForeground (const QBrush &brush)
 
void setIcon (const QIcon &icon)
 
void setRowCount (int rows)
 
void setSelectable (bool selectable)
 
void setSizeHint (const QSize &size)
 
void setStatusTip (const QString &statusTip)
 
void setText (const QString &text)
 
void setTextAlignment (Qt::Alignment alignment)
 
void setToolTip (const QString &toolTip)
 
void setUserTristate (bool tristate)
 
void setWhatsThis (const QString &whatsThis)
 
QSize sizeHint () const const
 
void sortChildren (int column, Qt::SortOrder order)
 
QString statusTip () const const
 
QStandardItemtakeChild (int row, int column)
 
QList< QStandardItem * > takeColumn (int column)
 
QList< QStandardItem * > takeRow (int row)
 
QString text () const const
 
Qt::Alignment textAlignment () const const
 
QString toolTip () const const
 
virtual int type () const const
 
QString whatsThis () const const
 
virtual void write (QDataStream &out) const const
 

Additional Inherited Members

- Public Types inherited from QStandardItem
enum  ItemType
 
- Public Attributes inherited from QStandardItem
 Type
 
 UserType
 
- Protected Member Functions inherited from QStandardItem
 QStandardItem (const QStandardItem &other)
 
void emitDataChanged ()
 
QStandardItemoperator= (const QStandardItem &other)
 

Detailed Description

Class of an Item of the Data Model of the List.

See also
KateModeMenuListData::ListView, KateFileType, QStandardItemModel

Definition at line 372 of file katemodemenulist.h.

Constructor & Destructor Documentation

◆ ~ListItem()

KateModeMenuListData::ListItem::~ListItem ( )
inlineoverride

Definition at line 386 of file katemodemenulist.h.

Member Function Documentation

◆ generateSearchName()

bool KateModeMenuListData::ListItem::generateSearchName ( const QString & itemName)

Generate name of the item used for the search.

Parameters
itemNameThe item name.
Returns
True if a new name is generated for the search.

Definition at line 689 of file katemodemenulist.cpp.

◆ getMode()

const KateFileType * KateModeMenuListData::ListItem::getMode ( ) const
inline

Definition at line 397 of file katemodemenulist.h.

◆ getSearchName()

const QString & KateModeMenuListData::ListItem::getSearchName ( ) const
inline

Definition at line 421 of file katemodemenulist.h.

◆ hasMode()

bool KateModeMenuListData::ListItem::hasMode ( ) const
inline

Definition at line 401 of file katemodemenulist.h.

◆ matchExtension()

bool KateModeMenuListData::ListItem::matchExtension ( const QString & text) const

Find matches in the extensions of the item mode, with a text.

Parameters
textText to match, without dots or asterisks. For example, in a common extension, it corresponds to the text after "*."
Returns
True if a match is found, false if not.

Definition at line 723 of file katemodemenulist.cpp.

◆ setMode()

void KateModeMenuListData::ListItem::setMode ( KateFileType * type)
inline

Associate this item with a KateFileType object.

Definition at line 393 of file katemodemenulist.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.