mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
[Performance] Load indicator in views
* Only use load indicator (per default) for DB object views * In any case disable load indicator for status messages
This commit is contained in:
committed by
Mat Sutcliffe
parent
ad18149c14
commit
964948e3e8
@@ -23,6 +23,7 @@ namespace BlackGui
|
||||
{
|
||||
m_menus |= MenuClear;
|
||||
m_acceptRowSelection = true;
|
||||
m_enabledLoadIndicator = false; // for performance reasons
|
||||
this->menuRemoveItems(MenuRefresh | MenuBackend | MenuToggleSelectionMode);
|
||||
this->standardInit(new CStatusMessageListModel(this));
|
||||
}
|
||||
|
||||
@@ -569,7 +569,7 @@ namespace BlackGui
|
||||
int m_loadIndicatorTimeoutMsDefault = 30 * 1000; //!< default time for timeout
|
||||
bool m_forceStretchLastColumnWhenResized = true; //!< a small table might (few columns) fail stretching, force again
|
||||
bool m_showingLoadIndicator = false; //!< showing loading indicator
|
||||
bool m_enabledLoadIndicator = true; //!< loading indicator enabled/disabled
|
||||
bool m_enabledLoadIndicator = false; //!< loading indicator enabled/disabled
|
||||
bool m_acceptClickSelection = false; //!< clicked
|
||||
bool m_acceptRowSelection = false; //!< selection changed
|
||||
bool m_acceptDoubleClickSelection = false; //!< double clicked
|
||||
|
||||
@@ -727,6 +727,7 @@ namespace BlackGui
|
||||
{
|
||||
if (!m_enabledLoadIndicator) { return -1; }
|
||||
if (m_showingLoadIndicator) { return -1; }
|
||||
|
||||
if (this->hasDockWidgetArea())
|
||||
{
|
||||
if (!this->isVisibleWidget()) { return -1; }
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace BlackGui
|
||||
CViewBase<ModelClass>(parent)
|
||||
{
|
||||
// void
|
||||
CViewBaseNonTemplate::m_enabledLoadIndicator = true; // indicator for DB views
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
||||
Reference in New Issue
Block a user