Qmmp
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SimpleSelection Struct Reference

#include <playlistmodel.h>

Public Member Functions

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

Public Attributes

int m_bottom = -1
 
int m_top = 1
 
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

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 = -1

Bottom of the selection

◆ m_selected_indexes

QList<int> m_selected_indexes

Selected items numbers

◆ m_top

int m_top = 1

Top of the selection


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