ui: Show license type label in title bar: "Sourcetrail [trial, test, non-commercial]"
This commit is contained in:
@@ -7,7 +7,16 @@ class MessageEnteredLicense
|
||||
: public Message<MessageEnteredLicense>
|
||||
{
|
||||
public:
|
||||
MessageEnteredLicense()
|
||||
enum LicenseType
|
||||
{
|
||||
LICENSE_NONE,
|
||||
LICENSE_TEST,
|
||||
LICENSE_NON_COMMERCIAL,
|
||||
LICENSE_COMMERCIAL
|
||||
};
|
||||
|
||||
MessageEnteredLicense(LicenseType type)
|
||||
: type(type)
|
||||
{
|
||||
setSendAsTask(false);
|
||||
}
|
||||
@@ -16,6 +25,8 @@ public:
|
||||
{
|
||||
return "MessageEnteredLicense";
|
||||
}
|
||||
|
||||
const LicenseType type;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_ENTERED_LICENSE_H
|
||||
|
||||
Reference in New Issue
Block a user