mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:20:06 +00:00 
			
		
		
		
	Replace radar site table view with tree view
This commit is contained in:
		
							parent
							
								
									9e3c525109
								
							
						
					
					
						commit
						4e514ee152
					
				
					 2 changed files with 18 additions and 4 deletions
				
			
		|  | @ -2,6 +2,7 @@ | |||
| #include "./ui_radar_site_dialog.h" | ||||
| 
 | ||||
| #include <scwx/qt/model/radar_site_model.hpp> | ||||
| #include <scwx/util/logger.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  | @ -10,6 +11,9 @@ namespace qt | |||
| namespace ui | ||||
| { | ||||
| 
 | ||||
| static const std::string logPrefix_ = "scwx::qt::ui::radar_site_dialog"; | ||||
| static const auto        logger_    = scwx::util::Logger::Create(logPrefix_); | ||||
| 
 | ||||
| class RadarSiteDialogImpl | ||||
| { | ||||
| public: | ||||
|  | @ -24,7 +28,13 @@ RadarSiteDialog::RadarSiteDialog(QWidget* parent) : | |||
| { | ||||
|    ui->setupUi(this); | ||||
| 
 | ||||
|    ui->radarSiteView->setModel(new model::RadarSiteModel(this)); | ||||
|    model::RadarSiteModel* radarSiteModel = new model::RadarSiteModel(this); | ||||
|    ui->radarSiteView->setModel(radarSiteModel); | ||||
| 
 | ||||
|    for (int column = 0; column < radarSiteModel->columnCount(); column++) | ||||
|    { | ||||
|       ui->radarSiteView->resizeColumnToContents(column); | ||||
|    } | ||||
| } | ||||
| 
 | ||||
| RadarSiteDialog::~RadarSiteDialog() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat