kstars
#include <sessionsortfilterproxymodel.h>
Public Member Functions | |
SessionSortFilterProxyModel (QObject *parent=0) | |
Protected Member Functions | |
bool | lessThan (const QModelIndex &left, const QModelIndex &right) const |
Detailed Description
Sort best observation times by reimplementing lessThan() to work on the transit times of objects.
Any observing session starts at about sunset (~ 6 PM local time) and goes on till sunrise (~ 6 AM local time). Thus, the correct order to view objects in is to view those with meridian transit times just after 12 noon local time first, working towards those that transit in the evening, and finishing the ones that have meridian transits just before 12 noon at the end of the session. So, the observing session list should be sorted in a special manner when sorting by time. This class reimplements lessThan() in QSortFilterProxyModel to obtain the required sorting.
Definition at line 37 of file sessionsortfilterproxymodel.h.
Constructor & Destructor Documentation
SessionSortFilterProxyModel::SessionSortFilterProxyModel | ( | QObject * | parent = 0 | ) |
Definition at line 24 of file sessionsortfilterproxymodel.cpp.
Member Function Documentation
|
protected |
Definition at line 28 of file sessionsortfilterproxymodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.