You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							478 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							478 B
						
					
					
				#include <QTimer>
 | 
						|
#include <QLabel>
 | 
						|
#include <QWidget>
 | 
						|
#include <QPixmap>
 | 
						|
#include <QProgressBar>
 | 
						|
#include <QTransform>
 | 
						|
#include <QSocketNotifier>
 | 
						|
 | 
						|
class Spinner : public QWidget {
 | 
						|
  Q_OBJECT
 | 
						|
 | 
						|
public:
 | 
						|
  explicit Spinner(QWidget *parent = 0);
 | 
						|
 | 
						|
private:
 | 
						|
  QPixmap track_img;
 | 
						|
  QTimer *rotate_timer;
 | 
						|
  QLabel *comma, *track;
 | 
						|
  QLabel *text;
 | 
						|
  QProgressBar *progress_bar;
 | 
						|
  QTransform transform;
 | 
						|
  QSocketNotifier *notifier;
 | 
						|
 | 
						|
public slots:
 | 
						|
  void rotate();
 | 
						|
  void update(int n);
 | 
						|
};
 | 
						|
 |