mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 11:00:06 +00:00 
			
		
		
		
	Add default layout to collapsible group
This commit is contained in:
		
							parent
							
								
									106542e28a
								
							
						
					
					
						commit
						396f64f0d4
					
				
					 3 changed files with 9 additions and 2 deletions
				
			
		|  | @ -56,6 +56,11 @@ void CollapsibleGroupImpl::Initialize() | |||
|    self_->Expand(); | ||||
| } | ||||
| 
 | ||||
| QLayout* CollapsibleGroup::GetContentsLayout() | ||||
| { | ||||
|    return ui->contentsFrame->layout(); | ||||
| } | ||||
| 
 | ||||
| void CollapsibleGroup::SetContentsLayout(QLayout* layout) | ||||
| { | ||||
|    ui->contentsFrame->setLayout(layout); | ||||
|  |  | |||
|  | @ -25,8 +25,9 @@ public: | |||
|    explicit CollapsibleGroup(const QString& title, QWidget* parent = nullptr); | ||||
|    ~CollapsibleGroup(); | ||||
| 
 | ||||
|    void SetContentsLayout(QLayout* contents); | ||||
|    void SetTitle(const QString& title); | ||||
|    QLayout* GetContentsLayout(); | ||||
|    void     SetContentsLayout(QLayout* contents); | ||||
|    void     SetTitle(const QString& title); | ||||
| 
 | ||||
| public slots: | ||||
|    void Collapse(); | ||||
|  |  | |||
|  | @ -79,6 +79,7 @@ | |||
|      <property name="frameShadow"> | ||||
|       <enum>QFrame::Sunken</enum> | ||||
|      </property> | ||||
|      <layout class="QVBoxLayout" name="contentsLayout"/> | ||||
|     </widget> | ||||
|    </item> | ||||
|   </layout> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat