List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
StatusBarMessageHandler Class Reference

#include <statusbarmessagehandler.h>

Inheritance diagram for StatusBarMessageHandler:
XAbstractMessageHandler QAbstractMessageHandler

Public Member Functions

 StatusBarMessageHandler (QObject *parent=0)
 
virtual ~StatusBarMessageHandler ()
 
bool acceptDefaults () const
 
virtual QMessageBox::StandardButton question (const QString &question, QMessageBox::StandardButtons buttons=QMessageBox::Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton)
 
bool setAcceptDefaults (const bool accept)
 
virtual bool setDestination (QStatusBar *destination)
 
virtual bool setTimeout (int timeout)
 

Protected Member Functions

virtual void handleMessage (QtMsgType type, const QString &description, const QUrl &identifier, const QSourceLocation &sourceLocation)
 

Protected Attributes

bool _acceptDefaults
 

Constructor & Destructor Documentation

◆ StatusBarMessageHandler()

StatusBarMessageHandler::StatusBarMessageHandler ( QObject parent = 0)

◆ ~StatusBarMessageHandler()

StatusBarMessageHandler::~StatusBarMessageHandler ( )
virtual

Member Function Documentation

◆ acceptDefaults()

bool XAbstractMessageHandler::acceptDefaults ( ) const
inherited

◆ handleMessage()

void StatusBarMessageHandler::handleMessage ( QtMsgType  type,
const QString &  description,
const QUrl &  identifier,
const QSourceLocation &  sourceLocation 
)
protectedvirtual

◆ question()

QMessageBox::StandardButton StatusBarMessageHandler::question ( const QString &  question,
QMessageBox::StandardButtons  buttons = QMessageBox::Ok,
QMessageBox::StandardButton  defaultButton = QMessageBox::NoButton 
)
virtual

◆ setAcceptDefaults()

bool XAbstractMessageHandler::setAcceptDefaults ( const bool  accept)
inherited

Set whether or not the message handler should automatically accept the defaultButton when ::question() is called. This is initially set to false.

Parameters
accepttrue indicates yes, accept the default value false indicates no, ask the question and let the user decide
Returns
the previous setting

◆ setDestination()

bool StatusBarMessageHandler::setDestination ( QStatusBar *  destination)
virtual

◆ setTimeout()

bool StatusBarMessageHandler::setTimeout ( int  timeout)
virtual

Member Data Documentation

◆ _acceptDefaults

bool XAbstractMessageHandler::_acceptDefaults
protectedinherited

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 6.0.0 doxygen 1.8.17