Allow columns with percentage width

This commit is contained in:
Klaus Basan
2018-12-25 10:32:39 +01:00
committed by Mat Sutcliffe
parent 73d8cf392b
commit 7baf5f238e
5 changed files with 97 additions and 2 deletions

View File

@@ -301,6 +301,9 @@ namespace BlackGui
//! Workaround as of https://stackoverflow.com/q/3433664/356726
void setForceColumnsToMaxSize(bool force) { m_forceColumnsToMaxSize = force; }
//! Resize mode
void setHorizontalHeaderSectionResizeMode(QHeaderView::ResizeMode mode);
//! Index of the directory we "remember"
void setSettingsDirectoryIndex(BlackMisc::CDirectories::ColumnIndex directoryIndex) { m_dirSettingsIndex = directoryIndex; }
@@ -744,6 +747,10 @@ namespace BlackGui
//! Set a tab widget text based on row count, filter etc.
void setTabWidgetViewText(QTabWidget *tw, int index);
//! Set the widths based on the column percentages
//! \sa CColumn::get
void setPercentageColumnWidths();
protected:
ModelClass *m_model = nullptr; //!< corresponding model