forked from qt-creator/qt-creator
Gerrit: Add ProgressIndicator
Show a nice spinner while waiting for data from Gerrit. Change-Id: Ia35d7408e6a65126d40e8cff5278a442f4b5c760 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
#include <QDialog>
|
||||
#include <QSharedPointer>
|
||||
#include <QTimer>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QTreeView;
|
||||
@@ -50,6 +51,7 @@ QT_END_NAMESPACE
|
||||
|
||||
namespace Utils {
|
||||
class FancyLineEdit;
|
||||
class ProgressIndicator;
|
||||
class TreeView;
|
||||
}
|
||||
|
||||
@@ -88,7 +90,10 @@ private slots:
|
||||
void slotFetchCheckout();
|
||||
void slotRefresh();
|
||||
|
||||
void manageProgressIndicator();
|
||||
|
||||
private:
|
||||
void setProgressIndicatorVisible(bool v);
|
||||
QModelIndex currentIndex() const;
|
||||
QPushButton *addActionButton(const QString &text, const std::function<void()> &buttonSlot);
|
||||
void updateCompletions(const QString &query);
|
||||
@@ -109,6 +114,8 @@ private:
|
||||
QPushButton *m_checkoutButton;
|
||||
QPushButton *m_refreshButton;
|
||||
QLabel *m_repositoryChooserLabel;
|
||||
Utils::ProgressIndicator *m_progressIndicator;
|
||||
QTimer m_progressIndicatorTimer;
|
||||
bool m_fetchRunning;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user