Add easy way to add progress indicator overlay to a widget

Adds a way to 'attach' a progress indicator to a parent, so it
automatically keeps itself centered on the parent.
Also adds shortcut methods to BaseTreeView.

Change-Id: I962a9300d89ef5d1e03298d670e0cee781d3a4e5
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Eike Ziller
2015-01-16 11:59:54 +01:00
parent 7fec1199f3
commit bafdf36f80
4 changed files with 85 additions and 8 deletions

View File

@@ -59,6 +59,9 @@ public:
virtual void rowClicked(const QModelIndex &) {}
void mousePressEvent(QMouseEvent *ev);
void showProgressIndicator();
void hideProgressIndicator();
public slots:
void setAlternatingRowColorsHelper(bool on) { setAlternatingRowColors(on); }