PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
GUIUtil::DHMSTableWidgetItem Class Reference

Extension to QTableWidgetItem that facilitates proper ordering for "DHMS" strings (primarily used in the masternode's "active" listing). More...

#include <guiutil.h>

Inheritance diagram for GUIUtil::DHMSTableWidgetItem:
[legend]
Collaboration diagram for GUIUtil::DHMSTableWidgetItem:
[legend]

Public Member Functions

 DHMSTableWidgetItem (const int64_t seconds)
 Class constructor. More...
 
virtual bool operator< (QTableWidgetItem const &item) const
 Comparator overload to ensure that the "DHMS"-type durations as used in the "active-since" list in the masternode tab are sorted by the elapsed duration (versus the string value being sorted). More...
 

Private Attributes

int64_t value
 

Detailed Description

Extension to QTableWidgetItem that facilitates proper ordering for "DHMS" strings (primarily used in the masternode's "active" listing).

Definition at line 212 of file guiutil.h.

Constructor & Destructor Documentation

◆ DHMSTableWidgetItem()

GUIUtil::DHMSTableWidgetItem::DHMSTableWidgetItem ( const int64_t  seconds)

Class constructor.

Parameters
[in]secondsNumber of seconds to convert to a DHMS string

Definition at line 530 of file guiutil.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ operator<()

bool GUIUtil::DHMSTableWidgetItem::operator< ( QTableWidgetItem const &  item) const
virtual

Comparator overload to ensure that the "DHMS"-type durations as used in the "active-since" list in the masternode tab are sorted by the elapsed duration (versus the string value being sorted).

Parameters
[in]itemRight hand side of the less than operator

Definition at line 542 of file guiutil.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ value

int64_t GUIUtil::DHMSTableWidgetItem::value
private

Definition at line 220 of file guiutil.h.


The documentation for this class was generated from the following files: