* added ErrorCountInfo to incorporate reporting of fatal errors during code analysis.
34 lines
533 B
C++
34 lines
533 B
C++
#ifndef QT_STATUS_BAR_H
|
|
#define QT_STATUS_BAR_H
|
|
|
|
#include <string>
|
|
|
|
#include <QPushButton>
|
|
#include <QLabel>
|
|
#include <QStatusBar>
|
|
|
|
#include "data/ErrorCountInfo.h"
|
|
|
|
class QtStatusBar
|
|
: public QStatusBar
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QtStatusBar(void);
|
|
virtual ~QtStatusBar(void);
|
|
|
|
void setText(const std::string& text, bool isError, bool showLoader);
|
|
void setErrorCount(ErrorCountInfo errorCount);
|
|
|
|
private slots:
|
|
void showErrors();
|
|
|
|
private:
|
|
QLabel m_text;
|
|
QLabel m_loader;
|
|
QPushButton m_errorButton;
|
|
};
|
|
|
|
#endif // QT_STATUS_BAR_H
|