SimpleSelection Struct Reference

Helper class that keeps track of a view's selected items. More...

#include <playlistmodel.h>

List of all members.

Public Member Functions

 SimpleSelection ()
bool isValid () const
void dump () const
int count () const

Public Attributes

int m_bottom
int m_top
int m_anchor
QList< int > m_selected_rows


Detailed Description

Helper class that keeps track of a view's selected items.

Author:
Vladimir Kuznetsov <vovanec@gmail.com>

Constructor & Destructor Documentation

SimpleSelection (  )  [inline]

Constructs an empty selection model.


Member Function Documentation

int count (  )  const [inline]

Returns number of selected items.

void dump (  )  const [inline]

Prints object state.

bool isValid (  )  const [inline]

Returns true if this selection is valid; otherwise returns returns false.


Member Data Documentation

int m_anchor

int m_bottom

QList<int> m_selected_rows

Selected rows numbers

int m_top


The documentation for this struct was generated from the following file:

Generated on Thu Nov 10 20:39:11 2011 for Qmmp by  doxygen 1.5.9