Added kmessagewidget from subsurface project

(https://github.com/torvalds/subsurface, commit:
82a946152b7f1da177344937acbc9d3cb5b0ccbf).
Added MessageWidget class.
This commit is contained in:
Pedro Alves 2015-01-19 20:16:21 +00:00 committed by Janek Bevendorff
parent 425427c96c
commit c6ad476cb7
No known key found for this signature in database
GPG key ID: CFEC2F6850BFFA53
5 changed files with 736 additions and 0 deletions

21
src/gui/MessageWidget.h Normal file
View file

@ -0,0 +1,21 @@
#ifndef MESSAGEWIDGET_H
#define MESSAGEWIDGET_H
#include "gui/kmessagewidget.h"
class MessageWidget : public KMessageWidget
{
public:
explicit MessageWidget(QWidget* parent = 0);
void showMessageError(const QString& text);
void showMessageWarning(const QString& text);
void showMessageInformation(const QString& text);
void showMessagePositive(const QString& text);
private:
void showMessage(const QString& text, MessageType type);
};
#endif // MESSAGEWIDGET_H