1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Added search field in autofill manager in preferences.

This commit is contained in:
Mladen Pejaković 2013-01-31 19:16:11 +01:00 committed by nowrep
parent ced0683c96
commit 0b2bf6b0c0
2 changed files with 59 additions and 42 deletions

View File

@ -38,6 +38,7 @@ AutoFillManager::AutoFillManager(QWidget* parent)
connect(ui->removeAllPass, SIGNAL(clicked()), this, SLOT(removeAllPass()));
connect(ui->editPass, SIGNAL(clicked()), this, SLOT(editPass()));
connect(ui->showPasswords, SIGNAL(clicked()), this, SLOT(showPasswords()));
connect(ui->search, SIGNAL(textChanged(QString)), ui->treePass, SLOT(filterString(QString)));
connect(ui->removeExcept, SIGNAL(clicked()), this, SLOT(removeExcept()));
connect(ui->removeAllExcept, SIGNAL(clicked()), this, SLOT(removeAllExcept()));
@ -47,6 +48,7 @@ AutoFillManager::AutoFillManager(QWidget* parent)
menu->addAction(tr("Export Passwords to File..."), this, SLOT(exportPasswords()));
ui->importExport->setMenu(menu);
ui->importExport->setPopupMode(QToolButton::InstantPopup);
ui->search->setPlaceholderText(tr("Search"));
QTimer::singleShot(0, this, SLOT(loadPasswords()));
}

View File

@ -24,8 +24,8 @@
<string>Passwords</string>
</attribute>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QTreeWidget" name="treePass">
<item row="2" column="0">
<widget class="TreeWidget" name="treePass">
<property name="indentation">
<number>0</number>
</property>
@ -52,45 +52,7 @@
</column>
</widget>
</item>
<item row="0" column="1">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QPushButton" name="editPass">
<property name="text">
<string>Edit</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removePass">
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removeAllPass">
<property name="text">
<string>Remove All</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="0" colspan="2">
<item row="3" column="0" colspan="2">
<layout class="QHBoxLayout" name="showPasswordsLayout">
<item>
<widget class="QToolButton" name="importExport">
@ -134,6 +96,47 @@
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="LineEdit" name="search"/>
</item>
<item row="1" column="1" rowspan="2">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QPushButton" name="editPass">
<property name="text">
<string>Edit</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removePass">
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removeAllPass">
<property name="text">
<string>Remove All</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabExcept">
@ -142,7 +145,7 @@
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QTreeWidget" name="treeExcept">
<widget class="TreeWidget" name="treeExcept">
<property name="sortingEnabled">
<bool>true</bool>
</property>
@ -190,6 +193,18 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>TreeWidget</class>
<extends>QTreeWidget</extends>
<header>treewidget.h</header>
</customwidget>
<customwidget>
<class>LineEdit</class>
<extends>QLineEdit</extends>
<header>lineedit.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>