refs #855, re-center load indicator when resizing load overview

This commit is contained in:
Klaus Basan
2017-01-06 20:40:21 +01:00
committed by Mathew Sutcliffe
parent c2861b792c
commit 1177cd862a
2 changed files with 35 additions and 3 deletions

View File

@@ -47,11 +47,21 @@ namespace BlackGui
//! Visible shared refresh buttons
void setVisibleSharedRefreshButtons(bool visible);
//! Showing load indicator?
bool isShowingLoadIndicator() const;
signals:
//! Trigger GUI update
//! \private
void ps_triggerDigestGuiUpdate();
protected:
//! \copydoc QWidget::resizeEvent
virtual void resizeEvent(QResizeEvent *event) override;
//! Center load indicator
void centerLoadIndicator();
private:
QScopedPointer<Ui::CDbLoadOverviewComponent> ui;
BlackGui::CLoadIndicator *m_loadIndicator = nullptr; //!< load indicator if needed