mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:20:05 +00:00 
			
		
		
		
	Moved name to end of model to make it take all remaining space
This commit is contained in:
		
							parent
							
								
									aec937aa97
								
							
						
					
					
						commit
						0c20e49831
					
				
					 2 changed files with 5 additions and 9 deletions
				
			
		|  | @ -5,10 +5,6 @@ | |||
| #include <scwx/util/logger.hpp> | ||||
| 
 | ||||
| #include <QApplication> | ||||
| #include <QCheckBox> | ||||
| #include <QFontMetrics> | ||||
| #include <QStyle> | ||||
| #include <QStyleOption> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  | @ -21,9 +17,9 @@ static const std::string logPrefix_ = "scwx::qt::model::marker_model"; | |||
| static const auto        logger_    = scwx::util::Logger::Create(logPrefix_); | ||||
| 
 | ||||
| static constexpr int kFirstColumn = | ||||
|    static_cast<int>(MarkerModel::Column::Name); | ||||
|    static_cast<int>(MarkerModel::Column::Latitude); | ||||
| static constexpr int kLastColumn = | ||||
|    static_cast<int>(MarkerModel::Column::Longitude); | ||||
|    static_cast<int>(MarkerModel::Column::Name); | ||||
| static constexpr int kNumColumns = kLastColumn - kFirstColumn + 1; | ||||
| 
 | ||||
| class MarkerModel::Impl | ||||
|  |  | |||
|  | @ -14,9 +14,9 @@ class MarkerModel : public QAbstractTableModel | |||
| public: | ||||
|    enum class Column : int | ||||
|    { | ||||
|       Name      = 0, | ||||
|       Latitude  = 1, | ||||
|       Longitude = 2 | ||||
|       Latitude  = 0, | ||||
|       Longitude = 1, | ||||
|       Name      = 2, | ||||
|    }; | ||||
| 
 | ||||
|    explicit MarkerModel(QObject* parent = nullptr); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak