Metadata dialog functional. Consolidate database metadata update function.

This commit is contained in:
BasioMeusPuga
2018-03-04 19:43:05 +05:30
parent 0ec888e0d2
commit 2891c675d5
8 changed files with 329 additions and 87 deletions

View File

@@ -6,20 +6,20 @@
<rect>
<x>0</x>
<y>0</y>
<width>700</width>
<height>230</height>
<width>728</width>
<height>231</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>700</width>
<height>230</height>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="windowTitle">
@@ -33,29 +33,17 @@
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QGraphicsView" name="coverView">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>140</width>
<height>218</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>140</width>
<height>218</height>
<width>165</width>
<height>16777215</height>
</size>
</property>
<property name="baseSize">
<size>
<width>140</width>
<height>200</height>
</size>
<property name="toolTip">
<string>Cover (click to change)</string>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
</widget>
</item>
@@ -63,6 +51,9 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLineEdit" name="titleLine">
<property name="toolTip">
<string>Title</string>
</property>
<property name="placeholderText">
<string>Title</string>
</property>
@@ -70,6 +61,9 @@
</item>
<item>
<widget class="QLineEdit" name="authorLine">
<property name="toolTip">
<string>Author</string>
</property>
<property name="placeholderText">
<string>Author</string>
</property>
@@ -77,6 +71,9 @@
</item>
<item>
<widget class="QLineEdit" name="yearLine">
<property name="toolTip">
<string>Year</string>
</property>
<property name="placeholderText">
<string>Year</string>
</property>
@@ -90,17 +87,98 @@
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Tags (comma separated)</string>
</property>
<property name="placeholderText">
<string>Tags</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okButton">
<property name="toolTip">
<string>OK</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/images/checkmark.svg</normaloff>:/images/checkmark.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton">
<property name="toolTip">
<string>Cancel</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/images/error.svg</normaloff>:/images/error.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="resources.qrc"/>
</resources>
<connections/>
</ui>