make sections in settings dialog as small as possible dynamically
This commit is contained in:
		
							parent
							
								
									001c39825e
								
							
						
					
					
						commit
						4eaf818670
					
				
					 2 changed files with 1 additions and 12 deletions
				
			
		|  | @ -49,6 +49,7 @@ FormSettings::FormSettings(QWidget& parent) | |||
|   addSettingsPanel(new SettingsDownloads(&m_settings, this)); | ||||
|   addSettingsPanel(new SettingsFeedsMessages(&m_settings, this)); | ||||
| 
 | ||||
|   m_ui.m_listSettings->setMaximumWidth(m_ui.m_listSettings->sizeHintForColumn(0) + 4 * m_ui.m_listSettings->frameWidth()); | ||||
|   m_ui.m_listSettings->setCurrentRow(0); | ||||
| 
 | ||||
|   resize(qApp->settings()->value(GROUP(GUI), GUI::SettingsWindowInitialSize, size()).toSize()); | ||||
|  |  | |||
|  | @ -16,18 +16,6 @@ | |||
|   <layout class="QGridLayout" name="gridLayout"> | ||||
|    <item row="0" column="0"> | ||||
|     <widget class="QListWidget" name="m_listSettings"> | ||||
|      <property name="minimumSize"> | ||||
|       <size> | ||||
|        <width>260</width> | ||||
|        <height>0</height> | ||||
|       </size> | ||||
|      </property> | ||||
|      <property name="maximumSize"> | ||||
|       <size> | ||||
|        <width>260</width> | ||||
|        <height>16777215</height> | ||||
|       </size> | ||||
|      </property> | ||||
|      <property name="showDropIndicator" stdset="0"> | ||||
|       <bool>false</bool> | ||||
|      </property> | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue