3 #ifndef PYCONSOLE_EVENT_H
4 #define PYCONSOLE_EVENT_H
13 \brief Python command output backend event.
16 class PrintEvent : public QEvent
19 static const int EVENT_ID = 65432;
23 \param c message text (python trace)
24 \param isError default to false - if true indicates that an error is being printed.
26 PrintEvent( const char* c, bool isError = false) :
27 QEvent( (QEvent::Type)EVENT_ID ), myText( c ), errorFlag(isError)
32 \return message text (python trace)
34 QString text() const { return myText; }
37 * @return true if this is an error message
39 bool isError() const { return errorFlag; }
42 QString myText; //!< Event message (python trace)
44 /** Set to true if an error msg is to be displayed */
48 #endif // PYCONSOLE_EVENT_H