ui: disable refresh buttons in trial project
This commit is contained in:
@@ -13,6 +13,10 @@ QPushButton:hover, QPushButton:checked {
|
||||
background: <color:search/button/hover>;
|
||||
}
|
||||
|
||||
QPushButton:disabled {
|
||||
background: <color:search/button/disabled>;
|
||||
}
|
||||
|
||||
QPushButton:pressed {
|
||||
background: <color:search/button/press>;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "qt/utility/utilityQt.h"
|
||||
#include "settings/ApplicationSettings.h"
|
||||
#include "settings/ColorScheme.h"
|
||||
#include "isTrial.h"
|
||||
|
||||
QtRefreshBar::QtRefreshBar()
|
||||
{
|
||||
@@ -35,6 +36,12 @@ QtRefreshBar::QtRefreshBar()
|
||||
m_autoRefreshButton->setAttribute(Qt::WA_LayoutUsesWidgetRect); // fixes layouting on Mac
|
||||
layout->addWidget(m_autoRefreshButton);
|
||||
|
||||
if (isTrial())
|
||||
{
|
||||
m_refreshButton->setEnabled(false);
|
||||
m_autoRefreshButton->setEnabled(false);
|
||||
}
|
||||
|
||||
connect(m_refreshButton, SIGNAL(clicked()), this, SLOT(refreshClicked()));
|
||||
connect(m_autoRefreshButton, SIGNAL(clicked()), this, SLOT(autoRefreshClicked()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user