mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-24 08:43:29 -05:00
Added kmessagewidget from subsurface project
(https://github.com/torvalds/subsurface, commit: 82a946152b7f1da177344937acbc9d3cb5b0ccbf). Added MessageWidget class.
This commit is contained in:
parent
425427c96c
commit
c6ad476cb7
5 changed files with 736 additions and 0 deletions
21
src/gui/MessageWidget.h
Normal file
21
src/gui/MessageWidget.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue