logic: Added Non-Commercial Use option and removed trial mode

* Added non-commercial use option to enter license window
* Show enter license window on first start and force license selection
* Added ApplicationSettings migration that removed private/academic license and switches user to non-commercial mode
* Added commandline option to choose non-commercial use and provide better hints to license selection
* Removed trial mode

fortune cookie message = A secret admirer will soon send you a sign of affection.
This commit is contained in:
Eberhard Graether
2017-10-19 16:58:47 +02:00
parent c3a5405cc4
commit 8e908c2a78
30 changed files with 602 additions and 495 deletions
-13
View File
@@ -4,7 +4,6 @@
#include <QPushButton>
#include "utility/messaging/type/MessageRefresh.h"
#include "utility/ResourcePaths.h"
#include "qt/utility/utilityQt.h"
@@ -26,8 +25,6 @@ QtRefreshBar::QtRefreshBar()
m_refreshButton->setAttribute(Qt::WA_LayoutUsesWidgetRect); // fixes layouting on Mac
layout->addWidget(m_refreshButton);
m_refreshButton->setEnabled(false);
connect(m_refreshButton, &QPushButton::clicked, this, &QtRefreshBar::refreshClicked);
refreshStyle();
@@ -53,13 +50,3 @@ void QtRefreshBar::refreshStyle()
"search/button"
));
}
void QtRefreshBar::handleMessage(MessageEnteredLicense* message)
{
m_onQtThread(
[=]()
{
m_refreshButton->setEnabled(true);
}
);
}