mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:00:05 +00:00 
			
		
		
		
	Move modified_widgets to widgets
This commit is contained in:
		
							parent
							
								
									e78aca7377
								
							
						
					
					
						commit
						81b0402e8a
					
				
					 6 changed files with 9 additions and 10 deletions
				
			
		
							
								
								
									
										23
									
								
								scwx-qt/source/scwx/qt/ui/widgets/focused_combo_box.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								scwx-qt/source/scwx/qt/ui/widgets/focused_combo_box.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| #include <QComboBox> | ||||
| #include <QWheelEvent> | ||||
| 
 | ||||
| class QFocusedComboBox : public QComboBox | ||||
| { | ||||
|    Q_OBJECT | ||||
| 
 | ||||
| public: | ||||
|    using QComboBox::QComboBox; | ||||
| 
 | ||||
| protected: | ||||
|    void wheelEvent(QWheelEvent* event) override | ||||
|    { | ||||
|       if (hasFocus()) | ||||
|       { | ||||
|          QComboBox::wheelEvent(event); | ||||
|       } | ||||
|       else | ||||
|       { | ||||
|          event->ignore(); | ||||
|       } | ||||
|    } | ||||
| }; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak