mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 22:40:05 +00:00 
			
		
		
		
	Drag and drop layers in the layer manager
This commit is contained in:
		
							parent
							
								
									14d6912014
								
							
						
					
					
						commit
						ec2663aee6
					
				
					 3 changed files with 153 additions and 4 deletions
				
			
		|  | @ -40,7 +40,8 @@ public: | |||
|    int rowCount(const QModelIndex& parent = QModelIndex()) const override; | ||||
|    int columnCount(const QModelIndex& parent = QModelIndex()) const override; | ||||
| 
 | ||||
|    Qt::ItemFlags flags(const QModelIndex& index) const override; | ||||
|    Qt::ItemFlags   flags(const QModelIndex& index) const override; | ||||
|    Qt::DropActions supportedDropActions() const override; | ||||
| 
 | ||||
|    QVariant data(const QModelIndex& index, | ||||
|                  int                role = Qt::DisplayRole) const override; | ||||
|  | @ -52,6 +53,18 @@ public: | |||
|                 const QVariant&    value, | ||||
|                 int                role = Qt::EditRole) override; | ||||
| 
 | ||||
|    QStringList mimeTypes() const override; | ||||
|    QMimeData*  mimeData(const QModelIndexList& indexes) const override; | ||||
| 
 | ||||
|    bool dropMimeData(const QMimeData*   data, | ||||
|                      Qt::DropAction     action, | ||||
|                      int                row, | ||||
|                      int                column, | ||||
|                      const QModelIndex& parent) override; | ||||
|    bool removeRows(int                row, | ||||
|                    int                count, | ||||
|                    const QModelIndex& parent = QModelIndex()) override; | ||||
| 
 | ||||
| public slots: | ||||
|    void HandlePlacefileRemoved(const std::string& name); | ||||
|    void HandlePlacefileRenamed(const std::string& oldName, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat