mirror of
				https://github.com/YACReader/yacreader
				synced 2025-10-31 16:25:15 -04:00 
			
		
		
		
	Add a method to ExtractDelegate for querying if the extraction has been cancelled.
This commit is contained in:
		
							
								
								
									
										30
									
								
								YACReader/notifications_label_widget.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								YACReader/notifications_label_widget.h
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| #ifndef NOTIFICATIONS_LABEL_WIDGET_H | ||||
| #define NOTIFICATIONS_LABEL_WIDGET_H | ||||
|  | ||||
| #include <QWidget> | ||||
|  | ||||
| class QLabel; | ||||
| class QPropertyAnimation; | ||||
| class QGraphicsOpacityEffect; | ||||
|  | ||||
| class NotificationsLabelWidget : public QWidget | ||||
| { | ||||
| Q_OBJECT | ||||
| private: | ||||
| 	QLabel * textLabel; | ||||
| 	QPropertyAnimation * anim; | ||||
| 	QGraphicsOpacityEffect * effect; | ||||
|  | ||||
| protected: | ||||
|     void paintEvent(QPaintEvent *); | ||||
|  | ||||
| public: | ||||
| 	NotificationsLabelWidget(QWidget * parent); | ||||
|  | ||||
| public slots: | ||||
| 	void flash(); | ||||
| 	void setText(const QString & text); | ||||
| 	void updatePosition(); | ||||
| }; | ||||
|  | ||||
| #endif | ||||
		Reference in New Issue
	
	Block a user