mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Better layout for the filtering widget
Fix the layout size, moved some stuff around. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ff669362fb
commit
318256cfb4
3 changed files with 26 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>TagFilter</class>
|
<class>FilterWidget</class>
|
||||||
<widget class="QWidget" name="TagFilter">
|
<widget class="QWidget" name="FilterWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
|
@ -15,17 +15,28 @@
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<property name="text">
|
<item>
|
||||||
<string>TextLabel</string>
|
<widget class="QLabel" name="label">
|
||||||
</property>
|
<property name="text">
|
||||||
</widget>
|
<string>TextLabel</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="filterInternalList">
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>Filter this list</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="filterTag"/>
|
<widget class="QListView" name="filterList"/>
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QListView" name="tagView"/>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
@ -460,6 +460,9 @@ TagFilter::TagFilter(QWidget *parent) : QWidget(parent)
|
||||||
{
|
{
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
ui.label->setText(tr("Tags: "));
|
ui.label->setText(tr("Tags: "));
|
||||||
|
#if QT_VERSION >= 0x050000
|
||||||
|
ui.filterInternalList->setClearButtonEnabled(true);
|
||||||
|
#endif
|
||||||
QSortFilterProxyModel *filter = new QSortFilterProxyModel();
|
QSortFilterProxyModel *filter = new QSortFilterProxyModel();
|
||||||
filter->setSourceModel(TagFilterModel::instance());
|
filter->setSourceModel(TagFilterModel::instance());
|
||||||
connect(ui.filterInternalList, SIGNAL(textChanged(QString)), filter, SLOT(setFilterFixedString(QString)));
|
connect(ui.filterInternalList, SIGNAL(textChanged(QString)), filter, SLOT(setFilterFixedString(QString)));
|
||||||
|
|
|
@ -12,7 +12,7 @@ class QAbstractButton;
|
||||||
#include "ui_shifttimes.h"
|
#include "ui_shifttimes.h"
|
||||||
#include "ui_shiftimagetimes.h"
|
#include "ui_shiftimagetimes.h"
|
||||||
#include "ui_divecomponentselection.h"
|
#include "ui_divecomponentselection.h"
|
||||||
#include "ui_tagfilter.h"
|
#include "ui_listfilter.h"
|
||||||
#include "exif.h"
|
#include "exif.h"
|
||||||
|
|
||||||
class MinMaxAvgWidget : public QWidget {
|
class MinMaxAvgWidget : public QWidget {
|
||||||
|
|
Loading…
Add table
Reference in a new issue