diff options
| author | AL <ga12@hotmail.it> | 2020-01-09 02:02:24 +0100 |
|---|---|---|
| committer | Chris Bessent <lost.dragonist@gmail.com> | 2020-01-09 18:43:11 -0700 |
| commit | da441e2b711e44a2218a0060370dd9539089babf (patch) | |
| tree | 6f23dd336ba08c723df786841905ff670a1890cc /src | |
| parent | 340b2e766f5bdef4466398db2617c7077eb9c894 (diff) | |
Add headers with tooltips to Filter view.
(cherry picked from commit 3c6804c502e760f28113af06c735fb8bb804d249)
Diffstat (limited to 'src')
| -rw-r--r-- | src/filterlist.cpp | 2 | ||||
| -rw-r--r-- | src/mainwindow.ui | 12 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/filterlist.cpp b/src/filterlist.cpp index 4287869d..a0928fcc 100644 --- a/src/filterlist.cpp +++ b/src/filterlist.cpp @@ -199,7 +199,7 @@ FilterList::FilterList(Ui::MainWindow* ui, CategoryFactory& factory) [&]{ onOptionsChanged(); }); ui->filters->header()->setMinimumSectionSize(0); - ui->filters->header()->setSectionResizeMode(0, QHeaderView::Fixed); + ui->filters->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents); ui->filters->header()->resizeSection(0, 30); ui->categoriesSplitter->setCollapsible(0, false); ui->categoriesSplitter->setCollapsible(1, false); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index a7e7b937..d0daafc0 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -101,19 +101,25 @@ <bool>true</bool> </property> <attribute name="headerVisible"> - <bool>false</bool> + <bool>true</bool> </attribute> <attribute name="headerCascadingSectionResizes"> <bool>false</bool> </attribute> <column> <property name="text"> - <string/> + <string>State</string> + </property> + <property name="toolTip"> + <string>State of the filter, can either be Disabled, Enabled or Inverted.</string> </property> </column> <column> <property name="text"> - <string notr="true">Category</string> + <string notr="true">Filter</string> + </property> + <property name="toolTip"> + <string>Filter to apply to the modlist.</string> </property> </column> </widget> |
