• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

  • GlossaryNS
  • GlossaryModel
Public Types | Public Slots | Public Member Functions | List of all members
GlossaryNS::GlossaryModel Class Reference

#include <glossary.h>

Inheritance diagram for GlossaryNS::GlossaryModel:
Inheritance graph
[legend]

Public Types

enum  Columns {
  ID = 0, English, Target, SubjectField,
  GlossaryModelColumnCount
}
 

Public Slots

void forceReset ()
 

Public Member Functions

 GlossaryModel (QObject *parent)
 
 ~GlossaryModel ()
 
QByteArray appendRow (const QString &_english, const QString &_target)
 
bool canFetchMore (const QModelIndex &parent) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &, int role=Qt::DisplayRole) const
 
void fetchMore (const QModelIndex &parent)
 
QVariant headerData (int section, Qt::Orientation, int role=Qt::DisplayRole) const
 
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 

Detailed Description

MVC wrapper around Glossary.

Definition at line 180 of file glossary.h.

Member Enumeration Documentation

enum GlossaryNS::GlossaryModel::Columns
Enumerator
ID 
English 
Target 
SubjectField 
GlossaryModelColumnCount 

Definition at line 185 of file glossary.h.

Constructor & Destructor Documentation

GlossaryModel::GlossaryModel ( QObject *  parent)

Definition at line 188 of file glossary.cpp.

GlossaryNS::GlossaryModel::~GlossaryModel ( )
inline

Definition at line 195 of file glossary.h.

Member Function Documentation

QByteArray GlossaryModel::appendRow ( const QString &  _english,
const QString &  _target 
)

Definition at line 746 of file glossary.cpp.

bool GlossaryModel::canFetchMore ( const QModelIndex &  parent) const

parent.isValid() && m_glossary->size()!=m_visibleCount;

Definition at line 203 of file glossary.cpp.

int GlossaryModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 268 of file glossary.cpp.

QVariant GlossaryModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 238 of file glossary.cpp.

void GlossaryModel::fetchMore ( const QModelIndex &  parent)

Definition at line 208 of file glossary.cpp.

void GlossaryModel::forceReset ( )
slot

Definition at line 196 of file glossary.cpp.

QVariant GlossaryModel::headerData ( int  section,
Qt::Orientation  ,
int  role = Qt::DisplayRole 
) const

Definition at line 223 of file glossary.cpp.

bool GlossaryModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)

Definition at line 729 of file glossary.cpp.

int GlossaryModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 216 of file glossary.cpp.


The documentation for this class was generated from the following files:
  • glossary.h
  • glossary.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

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

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



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