Qmmp
Public Member Functions | Public Attributes | List of all members
SimpleSelection Struct Reference

#include <playlistmodel.h>

Public Member Functions

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

Public Attributes

int m_bottom
 
int m_top
 
QList< int > m_selected_indexes
 

Detailed Description

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

Author
Vladimir Kuznetsov vovan.nosp@m.ec@g.nosp@m.mail..nosp@m.com

Constructor & Destructor Documentation

◆ SimpleSelection()

SimpleSelection ( )
inline

Constructs an empty selection model.

Member Function Documentation

◆ count()

int count ( ) const
inline

Returns number of selected items.

◆ dump()

void dump ( ) const
inline

Prints object state.

◆ isValid()

bool isValid ( ) const
inline

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

Member Data Documentation

◆ m_bottom

int m_bottom

Bottom of the selection

◆ m_selected_indexes

QList<int> m_selected_indexes

Selected items numbers

◆ m_top

int m_top

Top of the selection


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