ui: disable refresh buttons in trial project

This commit is contained in:
Eberhard Graether
2016-02-25 09:37:28 +01:00
parent 08e6f47311
commit 2b7f0bc506
2 changed files with 11 additions and 0 deletions
@@ -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>;
}
+7
View File
@@ -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()));