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

#include <guimessagehandler.h>

Inheritance diagram for GuiMessageHandler:
XAbstractMessageHandler QAbstractMessageHandler

Public Member Functions

 GuiMessageHandler (QObject *parent=0)
 
virtual ~GuiMessageHandler ()
 
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 (QtMsgType type, QWidget *destination)
 

Protected Member Functions

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

Protected Attributes

bool _acceptDefaults
 
GuiMessageHandlerPrivate * _p
 

Constructor & Destructor Documentation

◆ GuiMessageHandler()

GuiMessageHandler::GuiMessageHandler ( QObject parent = 0)

◆ ~GuiMessageHandler()

GuiMessageHandler::~GuiMessageHandler ( )
virtual

Member Function Documentation

◆ acceptDefaults()

bool XAbstractMessageHandler::acceptDefaults ( ) const
inherited

◆ handleMessage()

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

◆ question()

QMessageBox::StandardButton GuiMessageHandler::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 GuiMessageHandler::setDestination ( QtMsgType  type,
QWidget destination 
)
virtual

Member Data Documentation

◆ _acceptDefaults

bool XAbstractMessageHandler::_acceptDefaults
protectedinherited

◆ _p

GuiMessageHandlerPrivate* GuiMessageHandler::_p
protected

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