Fix layout and alignment of Entry and Group edit views

* Fixes #5321 - Text alignment in the general tab of the entry and group edit views is fixed
* Fixes #5300 - Errant scrollbar in the general tab is fixed
* Fixes #4852 - Tabbing into notes field works as expected. To tab out, currently only Shift+Tab works.
This commit is contained in:
Jonathan White 2020-09-13 10:31:18 -04:00
parent 3c5bd0ff6b
commit 55e4889053
8 changed files with 562 additions and 490 deletions

View File

@ -59,12 +59,18 @@ void EditWidget::addPage(const QString& labelText, const QIcon& icon, QWidget* w
* from automatic resizing and it now should be able to fit into a user's monitor even if the monitor is only 768 * from automatic resizing and it now should be able to fit into a user's monitor even if the monitor is only 768
* pixels high. * pixels high.
*/ */
auto* scrollArea = new QScrollArea(m_ui->stackedWidget); if (widget->inherits("QScrollArea")) {
scrollArea->setFrameShape(QFrame::NoFrame); m_ui->stackedWidget->addWidget(widget);
scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); } else {
scrollArea->setWidget(widget); auto* scrollArea = new QScrollArea(m_ui->stackedWidget);
scrollArea->setWidgetResizable(true); scrollArea->setFrameShape(QFrame::NoFrame);
m_ui->stackedWidget->addWidget(scrollArea); scrollArea->setFrameShadow(QFrame::Plain);
scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
scrollArea->setSizeAdjustPolicy(QScrollArea::AdjustToContents);
scrollArea->setWidgetResizable(true);
scrollArea->setWidget(widget);
m_ui->stackedWidget->addWidget(scrollArea);
}
m_ui->categoryList->addCategory(labelText, icon); m_ui->categoryList->addCategory(labelText, icon);
} }

View File

@ -76,7 +76,7 @@ EditEntryWidget::EditEntryWidget(QWidget* parent)
, m_historyUi(new Ui::EditEntryWidgetHistory()) , m_historyUi(new Ui::EditEntryWidgetHistory())
, m_browserUi(new Ui::EditEntryWidgetBrowser()) , m_browserUi(new Ui::EditEntryWidgetBrowser())
, m_customData(new CustomData()) , m_customData(new CustomData())
, m_mainWidget(new QWidget()) , m_mainWidget(new QScrollArea())
, m_advancedWidget(new QWidget()) , m_advancedWidget(new QWidget())
, m_iconsWidget(new EditWidgetIcons()) , m_iconsWidget(new EditWidgetIcons())
, m_autoTypeWidget(new QWidget()) , m_autoTypeWidget(new QWidget())
@ -178,6 +178,9 @@ void EditEntryWidget::setupMain()
m_mainUi->expirePresets->setMenu(createPresetsMenu()); m_mainUi->expirePresets->setMenu(createPresetsMenu());
connect(m_mainUi->expirePresets->menu(), SIGNAL(triggered(QAction*)), this, SLOT(useExpiryPreset(QAction*))); connect(m_mainUi->expirePresets->menu(), SIGNAL(triggered(QAction*)), this, SLOT(useExpiryPreset(QAction*)));
// HACK: Align username text with other line edits. Qt does not let you do this with an application stylesheet.
m_mainUi->usernameComboBox->lineEdit()->setStyleSheet("padding-left: 8px;");
} }
void EditEntryWidget::setupAdvanced() void EditEntryWidget::setupAdvanced()

View File

@ -24,6 +24,7 @@
#include <QModelIndex> #include <QModelIndex>
#include <QPointer> #include <QPointer>
#include <QScopedPointer> #include <QScopedPointer>
#include <QScrollArea>
#include <QTimer> #include <QTimer>
#include "config-keepassx.h" #include "config-keepassx.h"
@ -174,7 +175,7 @@ private:
const QScopedPointer<Ui::EditEntryWidgetBrowser> m_browserUi; const QScopedPointer<Ui::EditEntryWidgetBrowser> m_browserUi;
const QScopedPointer<CustomData> m_customData; const QScopedPointer<CustomData> m_customData;
QWidget* const m_mainWidget; QScrollArea* const m_mainWidget;
QWidget* const m_advancedWidget; QWidget* const m_advancedWidget;
EditWidgetIcons* const m_iconsWidget; EditWidgetIcons* const m_iconsWidget;
QWidget* const m_autoTypeWidget; QWidget* const m_autoTypeWidget;

View File

@ -1,251 +1,279 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>EditEntryWidgetMain</class> <class>EditEntryWidgetMain</class>
<widget class="QWidget" name="EditEntryWidgetMain"> <widget class="QScrollArea" name="EditEntryWidgetMain">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>496</width> <width>539</width>
<height>420</height> <height>523</height>
</rect> </rect>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <property name="windowTitle">
<property name="leftMargin"> <string>Edit Entry</string>
<number>0</number> </property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="container">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>539</width>
<height>523</height>
</rect>
</property> </property>
<property name="topMargin"> <layout class="QGridLayout" name="gridLayout">
<number>0</number> <property name="leftMargin">
</property> <number>0</number>
<property name="rightMargin"> </property>
<number>0</number> <property name="topMargin">
</property> <number>0</number>
<property name="bottomMargin"> </property>
<number>0</number> <property name="rightMargin">
</property> <number>0</number>
<property name="horizontalSpacing"> </property>
<number>10</number> <property name="bottomMargin">
</property> <number>0</number>
<property name="verticalSpacing"> </property>
<number>8</number> <property name="horizontalSpacing">
</property> <number>10</number>
<item row="6" column="1"> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <property name="verticalSpacing">
<item> <number>8</number>
<widget class="QPlainTextEdit" name="notesEdit"> </property>
<property name="sizePolicy"> <item row="6" column="1">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <layout class="QVBoxLayout" name="verticalLayout_2">
<horstretch>0</horstretch> <item>
<verstretch>1</verstretch> <widget class="QPlainTextEdit" name="notesEdit">
</sizepolicy> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<property name="minimumSize"> <horstretch>0</horstretch>
<size> <verstretch>1</verstretch>
<width>0</width> </sizepolicy>
<height>100</height> </property>
</size> <property name="minimumSize">
</property> <size>
<property name="accessibleName"> <width>0</width>
<string>Notes field</string> <height>100</height>
</property> </size>
</widget> </property>
</item> <property name="accessibleName">
<item> <string>Notes field</string>
<widget class="QLabel" name="notesHint"> </property>
<property name="visible"> </widget>
<bool>true</bool> </item>
</property> <item>
<property name="text"> <widget class="QLabel" name="notesHint">
<string>Toggle the checkbox to reveal the notes section.</string> <property name="visible">
</property> <bool>true</bool>
<property name="alignment"> </property>
<set>Qt::AlignTop</set> <property name="text">
</property> <string>Toggle the checkbox to reveal the notes section.</string>
</widget> </property>
</item> <property name="alignment">
</layout> <set>Qt::AlignTop</set>
</item> </property>
<item row="1" column="1"> </widget>
<widget class="QComboBox" name="usernameComboBox"> </item>
<property name="accessibleName"> </layout>
<string>Username field</string> </item>
</property> <item row="1" column="1">
</widget> <widget class="QComboBox" name="usernameComboBox">
</item> <property name="accessibleName">
<item row="6" column="0"> <string>Username field</string>
<layout class="QVBoxLayout" name="verticalLayout"> </property>
<item> </widget>
<widget class="QCheckBox" name="notesEnabled"> </item>
<property name="toolTip"> <item row="6" column="0">
<string>Toggle notes visible</string> <layout class="QVBoxLayout" name="verticalLayout">
</property> <item>
<property name="accessibleName"> <widget class="QCheckBox" name="notesEnabled">
<string>Toggle notes visible</string> <property name="toolTip">
</property> <string>Toggle notes visible</string>
<property name="text"> </property>
<string>Notes:</string> <property name="accessibleName">
</property> <string>Toggle notes visible</string>
</widget> </property>
</item> <property name="text">
<item> <string>Notes:</string>
<spacer name="verticalSpacer"> </property>
<property name="orientation"> </widget>
<enum>Qt::Vertical</enum> </item>
</property> <item>
<property name="sizeHint" stdset="0"> <spacer name="verticalSpacer">
<size> <property name="orientation">
<width>20</width> <enum>Qt::Vertical</enum>
<height>40</height> </property>
</size> <property name="sizeHint" stdset="0">
</property> <size>
</spacer> <width>20</width>
</item> <height>40</height>
</layout> </size>
</item> </property>
<item row="5" column="1"> </spacer>
<layout class="QHBoxLayout" name="horizontalLayout_2"> </item>
<property name="spacing"> </layout>
<number>8</number> </item>
</property> <item row="5" column="1">
<item> <layout class="QHBoxLayout" name="horizontalLayout_2">
<widget class="QDateTimeEdit" name="expireDatePicker"> <property name="spacing">
<property name="enabled"> <number>8</number>
<bool>false</bool> </property>
</property> <item>
<property name="accessibleName"> <widget class="QDateTimeEdit" name="expireDatePicker">
<string>Expiration field</string> <property name="enabled">
</property> <bool>false</bool>
<property name="calendarPopup"> </property>
<bool>true</bool> <property name="accessibleName">
</property> <string>Expiration field</string>
</widget> </property>
</item> <property name="calendarPopup">
<item> <bool>true</bool>
<widget class="QPushButton" name="expirePresets"> </property>
<property name="sizePolicy"> </widget>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> </item>
<horstretch>0</horstretch> <item>
<verstretch>0</verstretch> <widget class="QPushButton" name="expirePresets">
</sizepolicy> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<property name="toolTip"> <horstretch>0</horstretch>
<string>Expiration Presets</string> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="accessibleName"> </property>
<string>Expiration presets</string> <property name="toolTip">
</property> <string>Expiration Presets</string>
<property name="text"> </property>
<string>Presets</string> <property name="accessibleName">
</property> <string>Expiration presets</string>
</widget> </property>
</item> <property name="text">
</layout> <string>Presets</string>
</item> </property>
<item row="2" column="0"> </widget>
<widget class="QLabel" name="passwordLabel"> </item>
<property name="text"> </layout>
<string>Password:</string> </item>
</property> <item row="2" column="0">
<property name="alignment"> <widget class="QLabel" name="passwordLabel">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <property name="text">
</property> <string>Password:</string>
</widget> </property>
</item> <property name="alignment">
<item row="3" column="0"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<widget class="QLabel" name="urlLabel"> </property>
<property name="text"> </widget>
<string>URL:</string> </item>
</property> <item row="3" column="0">
<property name="alignment"> <widget class="QLabel" name="urlLabel">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <property name="text">
</property> <string>URL:</string>
</widget> </property>
</item> <property name="alignment">
<item row="3" column="1"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<layout class="QHBoxLayout" name="horizontalLayout_6"> </property>
<property name="spacing"> </widget>
<number>8</number> </item>
</property> <item row="3" column="1">
<item> <layout class="QHBoxLayout" name="horizontalLayout_6">
<widget class="URLEdit" name="urlEdit"> <property name="spacing">
<property name="accessibleName"> <number>8</number>
<string>Url field</string> </property>
</property> <item>
<property name="placeholderText"> <widget class="URLEdit" name="urlEdit">
<string>https://example.com</string> <property name="accessibleName">
</property> <string>Url field</string>
</widget> </property>
</item> <property name="placeholderText">
<item> <string>https://example.com</string>
<widget class="QToolButton" name="fetchFaviconButton"> </property>
<property name="toolTip"> </widget>
<string>Download favicon for URL</string> </item>
</property> <item>
<property name="accessibleName"> <widget class="QToolButton" name="fetchFaviconButton">
<string>Download favicon for URL</string> <property name="toolTip">
</property> <string>Download favicon for URL</string>
</widget> </property>
</item> <property name="accessibleName">
</layout> <string>Download favicon for URL</string>
</item> </property>
<item row="0" column="0"> </widget>
<widget class="QLabel" name="titleLabel"> </item>
<property name="text"> </layout>
<string>Title:</string> </item>
</property> <item row="0" column="0">
<property name="alignment"> <widget class="QLabel" name="titleLabel">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <property name="text">
</property> <string>Title:</string>
</widget> </property>
</item> <property name="alignment">
<item row="0" column="1"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<widget class="QLineEdit" name="titleEdit"> </property>
<property name="accessibleName"> </widget>
<string>Title field</string> </item>
</property> <item row="0" column="1">
</widget> <widget class="QLineEdit" name="titleEdit">
</item> <property name="accessibleName">
<item row="1" column="0"> <string>Title field</string>
<widget class="QLabel" name="usernameLabel"> </property>
<property name="text"> </widget>
<string>Username:</string> </item>
</property> <item row="1" column="0">
<property name="alignment"> <widget class="QLabel" name="usernameLabel">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <property name="text">
</property> <string>Username:</string>
</widget> </property>
</item> <property name="alignment">
<item row="2" column="1"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<widget class="PasswordEdit" name="passwordEdit"> </property>
<property name="accessibleName"> </widget>
<string>Password field</string> </item>
</property> <item row="2" column="1">
<property name="echoMode"> <widget class="PasswordEdit" name="passwordEdit">
<enum>QLineEdit::Password</enum> <property name="accessibleName">
</property> <string>Password field</string>
</widget> </property>
</item> <property name="echoMode">
<item row="5" column="0"> <enum>QLineEdit::Password</enum>
<layout class="QHBoxLayout" name="horizontalLayout"> </property>
<property name="spacing"> </widget>
<number>0</number> </item>
</property> <item row="5" column="0">
<item> <layout class="QHBoxLayout" name="horizontalLayout">
<widget class="QCheckBox" name="expireCheck"> <property name="spacing">
<property name="toolTip"> <number>0</number>
<string>Toggle expiration</string> </property>
</property> <item>
<property name="accessibleName"> <widget class="QCheckBox" name="expireCheck">
<string>Toggle expiration</string> <property name="toolTip">
</property> <string>Toggle expiration</string>
<property name="text"> </property>
<string>Expires:</string> <property name="accessibleName">
</property> <string>Toggle expiration</string>
</widget> </property>
</item> <property name="text">
</layout> <string>Expires:</string>
</item> </property>
</layout> </widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>

View File

@ -62,7 +62,7 @@ private:
EditGroupWidget::EditGroupWidget(QWidget* parent) EditGroupWidget::EditGroupWidget(QWidget* parent)
: EditWidget(parent) : EditWidget(parent)
, m_mainUi(new Ui::EditGroupWidgetMain()) , m_mainUi(new Ui::EditGroupWidgetMain())
, m_editGroupWidgetMain(new QWidget()) , m_editGroupWidgetMain(new QScrollArea())
, m_editGroupWidgetIcons(new EditWidgetIcons()) , m_editGroupWidgetIcons(new EditWidgetIcons())
, m_editWidgetProperties(new EditWidgetProperties()) , m_editWidgetProperties(new EditWidgetProperties())
, m_group(nullptr) , m_group(nullptr)

View File

@ -20,6 +20,7 @@
#include <QComboBox> #include <QComboBox>
#include <QScopedPointer> #include <QScopedPointer>
#include <QScrollArea>
#include "core/Group.h" #include "core/Group.h"
#include "gui/EditWidget.h" #include "gui/EditWidget.h"
@ -78,7 +79,7 @@ private:
const QScopedPointer<Ui::EditGroupWidgetMain> m_mainUi; const QScopedPointer<Ui::EditGroupWidgetMain> m_mainUi;
QPointer<QWidget> m_editGroupWidgetMain; QPointer<QScrollArea> m_editGroupWidgetMain;
QPointer<EditWidgetIcons> m_editGroupWidgetIcons; QPointer<EditWidgetIcons> m_editGroupWidgetIcons;
QPointer<EditWidgetProperties> m_editWidgetProperties; QPointer<EditWidgetProperties> m_editWidgetProperties;

View File

@ -1,215 +1,243 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>EditGroupWidgetMain</class> <class>EditGroupWidgetMain</class>
<widget class="QWidget" name="EditGroupWidgetMain"> <widget class="QScrollArea" name="EditGroupWidgetMain">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>410</width> <width>539</width>
<height>430</height> <height>523</height>
</rect> </rect>
</property> </property>
<layout class="QGridLayout" name="gridLayout" rowstretch="0,0,0,0,0,0,0,0,0,1" rowminimumheight="0,0,0,0,0,0,0,0,0,1"> <property name="windowTitle">
<property name="leftMargin"> <string>Edit Group</string>
<number>0</number> </property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="container">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>539</width>
<height>523</height>
</rect>
</property> </property>
<property name="topMargin"> <layout class="QGridLayout" name="gridLayout" rowstretch="0,0,0,0,0,0,0,0,0,1" rowminimumheight="0,0,0,0,0,0,0,0,0,1">
<number>0</number> <property name="leftMargin">
</property> <number>0</number>
<property name="rightMargin"> </property>
<number>0</number> <property name="topMargin">
</property> <number>0</number>
<property name="bottomMargin"> </property>
<number>0</number> <property name="rightMargin">
</property> <number>0</number>
<property name="horizontalSpacing"> </property>
<number>10</number> <property name="bottomMargin">
</property> <number>0</number>
<property name="verticalSpacing"> </property>
<number>8</number> <property name="horizontalSpacing">
</property> <number>10</number>
<item row="3" column="0"> </property>
<widget class="QCheckBox" name="expireCheck"> <property name="verticalSpacing">
<property name="accessibleName"> <number>8</number>
<string>Toggle expiration</string> </property>
</property> <item row="3" column="0">
<property name="text"> <widget class="QCheckBox" name="expireCheck">
<string>Expires:</string> <property name="accessibleName">
</property> <string>Toggle expiration</string>
</widget> </property>
</item> <property name="text">
<item row="0" column="1"> <string>Expires:</string>
<widget class="QLineEdit" name="editName"> </property>
<property name="accessibleName"> </widget>
<string>Name field</string> </item>
</property> <item row="0" column="1">
</widget> <widget class="QLineEdit" name="editName">
</item> <property name="accessibleName">
<item row="3" column="1"> <string>Name field</string>
<widget class="QDateTimeEdit" name="expireDatePicker"> </property>
<property name="enabled"> </widget>
<bool>false</bool> </item>
</property> <item row="3" column="1">
<property name="accessibleName"> <widget class="QDateTimeEdit" name="expireDatePicker">
<string>Expiration field</string> <property name="enabled">
</property> <bool>false</bool>
<property name="calendarPopup"> </property>
<bool>true</bool> <property name="accessibleName">
</property> <string>Expiration field</string>
</widget> </property>
</item> <property name="calendarPopup">
<item row="6" column="1"> <bool>true</bool>
<widget class="QRadioButton" name="autoTypeSequenceInherit"> </property>
<property name="text"> </widget>
<string>Use default Auto-Type sequence of parent group</string> </item>
</property> <item row="6" column="1">
</widget> <widget class="QRadioButton" name="autoTypeSequenceInherit">
</item> <property name="text">
<item row="5" column="0"> <string>Use default Auto-Type sequence of parent group</string>
<widget class="QLabel" name="autotypeLabel"> </property>
<property name="text"> </widget>
<string>Auto-Type:</string> </item>
</property> <item row="5" column="0">
<property name="alignment"> <widget class="QLabel" name="autotypeLabel">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <property name="text">
</property> <string>Auto-Type:</string>
</widget> </property>
</item> <property name="alignment">
<item row="4" column="0"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<widget class="QLabel" name="searchLabel"> </property>
<property name="text"> </widget>
<string>Search:</string> </item>
</property> <item row="4" column="0">
<property name="alignment"> <widget class="QLabel" name="searchLabel">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <property name="text">
</property> <string>Search:</string>
</widget> </property>
</item> <property name="alignment">
<item row="5" column="1"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<widget class="QComboBox" name="autotypeComboBox"> </property>
<property name="accessibleName"> </widget>
<string>Auto-Type toggle for this and sub groups</string> </item>
</property> <item row="5" column="1">
</widget> <widget class="QComboBox" name="autotypeComboBox">
</item> <property name="accessibleName">
<item row="1" column="0"> <string>Auto-Type toggle for this and sub groups</string>
<layout class="QVBoxLayout" name="verticalLayout"> </property>
<item> </widget>
<widget class="QLabel" name="labelNotes"> </item>
<property name="text"> <item row="1" column="0">
<string>Notes:</string> <layout class="QVBoxLayout" name="verticalLayout">
</property> <item>
<property name="alignment"> <widget class="QLabel" name="labelNotes">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <property name="text">
</property> <string>Notes:</string>
</widget> </property>
</item> <property name="alignment">
<item> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<spacer name="verticalSpacer_2"> </property>
<property name="orientation"> </widget>
<enum>Qt::Vertical</enum> </item>
</property> <item>
<property name="sizeHint" stdset="0"> <spacer name="verticalSpacer_2">
<size> <property name="orientation">
<width>20</width> <enum>Qt::Vertical</enum>
<height>0</height> </property>
</size> <property name="sizeHint" stdset="0">
</property> <size>
</spacer> <width>20</width>
</item> <height>0</height>
</layout> </size>
</item> </property>
<item row="8" column="1"> </spacer>
<layout class="QHBoxLayout" name="horizontalLayout_2"> </item>
<item> </layout>
<spacer name="horizontalSpacer_2"> </item>
<property name="orientation"> <item row="8" column="1">
<enum>Qt::Horizontal</enum> <layout class="QHBoxLayout" name="horizontalLayout_2">
</property> <item>
<property name="sizeType"> <spacer name="horizontalSpacer_2">
<enum>QSizePolicy::Fixed</enum> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
<property name="sizeHint" stdset="0"> </property>
<size> <property name="sizeType">
<width>30</width> <enum>QSizePolicy::Fixed</enum>
<height>0</height> </property>
</size> <property name="sizeHint" stdset="0">
</property> <size>
</spacer> <width>30</width>
</item> <height>0</height>
<item> </size>
<widget class="QLineEdit" name="autoTypeSequenceCustomEdit"> </property>
<property name="enabled"> </spacer>
<bool>false</bool> </item>
</property> <item>
<property name="accessibleName"> <widget class="QLineEdit" name="autoTypeSequenceCustomEdit">
<string>Default auto-type sequence field</string> <property name="enabled">
</property> <bool>false</bool>
<property name="accessibleDescription"> </property>
<string/> <property name="accessibleName">
</property> <string>Default auto-type sequence field</string>
</widget> </property>
</item> <property name="accessibleDescription">
</layout> <string/>
</item> </property>
<item row="1" column="1"> </widget>
<widget class="QPlainTextEdit" name="editNotes"> </item>
<property name="sizePolicy"> </layout>
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> </item>
<horstretch>0</horstretch> <item row="1" column="1">
<verstretch>0</verstretch> <widget class="QPlainTextEdit" name="editNotes">
</sizepolicy> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<property name="maximumSize"> <horstretch>0</horstretch>
<size> <verstretch>0</verstretch>
<width>16777215</width> </sizepolicy>
<height>120</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="accessibleName"> <width>16777215</width>
<string>Notes field</string> <height>120</height>
</property> </size>
</widget> </property>
</item> <property name="accessibleName">
<item row="0" column="0"> <string>Notes field</string>
<widget class="QLabel" name="labelName"> </property>
<property name="text"> </widget>
<string>Name:</string> </item>
</property> <item row="0" column="0">
<property name="alignment"> <widget class="QLabel" name="labelName">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <property name="text">
</property> <string>Name:</string>
</widget> </property>
</item> <property name="alignment">
<item row="7" column="1"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<widget class="QRadioButton" name="autoTypeSequenceCustomRadio"> </property>
<property name="text"> </widget>
<string>Set default Auto-Type sequence</string> </item>
</property> <item row="7" column="1">
</widget> <widget class="QRadioButton" name="autoTypeSequenceCustomRadio">
</item> <property name="text">
<item row="4" column="1"> <string>Set default Auto-Type sequence</string>
<widget class="QComboBox" name="searchComboBox"> </property>
<property name="accessibleName"> </widget>
<string>Search toggle for this and sub groups</string> </item>
</property> <item row="4" column="1">
</widget> <widget class="QComboBox" name="searchComboBox">
</item> <property name="accessibleName">
<item row="9" column="0"> <string>Search toggle for this and sub groups</string>
<spacer name="verticalSpacer_4"> </property>
<property name="orientation"> </widget>
<enum>Qt::Vertical</enum> </item>
</property> <item row="9" column="0">
<property name="sizeHint" stdset="0"> <spacer name="verticalSpacer_4">
<size> <property name="orientation">
<width>20</width> <enum>Qt::Vertical</enum>
<height>40</height> </property>
</size> <property name="sizeHint" stdset="0">
</property> <size>
</spacer> <width>20</width>
</item> <height>40</height>
</layout> </size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>editName</tabstop> <tabstop>editName</tabstop>

View File

@ -64,3 +64,8 @@ DatabaseWidget #SearchBanner, DatabaseWidget #KeeShareBanner {
border: 1px solid palette(dark); border: 1px solid palette(dark);
padding: 2px; padding: 2px;
} }
QPlainTextEdit, QTextEdit {
background-color: palette(base);
padding-left: 4px;
}