improved layout and icons
This commit is contained in:
parent
1c4d577264
commit
c8e4848d92
|
@ -146,12 +146,15 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
m_tagOptionsMenu->addSeparator();
|
||||
m_addTagMenu = new QMenu(tr("Add tag"), m_tagOptionsMenu);
|
||||
m_addTagMenu->setEnabled(false);
|
||||
m_addTagMenu->setIcon(QIcon::fromTheme(QStringLiteral("tag-add")));
|
||||
m_tagOptionsMenu->addMenu(m_addTagMenu);
|
||||
m_removeTagMenu = new QMenu(tr("Remove tag"), m_tagOptionsMenu);
|
||||
m_removeTagMenu->setEnabled(false);
|
||||
m_removeTagMenu->setIcon(QIcon::fromTheme(QStringLiteral("tag-delete")));
|
||||
m_tagOptionsMenu->addMenu(m_removeTagMenu);
|
||||
m_changeTargetMenu = new QMenu(tr("Change target"), m_tagOptionsMenu);
|
||||
m_changeTargetMenu->setEnabled(false);
|
||||
m_changeTargetMenu->setIcon(QIcon::fromTheme(QStringLiteral("tag-properties")));
|
||||
m_tagOptionsMenu->addMenu(m_changeTargetMenu);
|
||||
m_ui->tagOptionsPushButton->setMenu(m_tagOptionsMenu);
|
||||
// other widgets
|
||||
|
|
|
@ -105,31 +105,6 @@
|
|||
<item>
|
||||
<widget class="NotificationLabel" name="parsingNotificationWidget" native="true"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="docTitleWidget" native="true">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="docTitleLabel">
|
||||
<property name="text">
|
||||
<string>Document title</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSplitter" name="tagSplitter">
|
||||
<property name="orientation">
|
||||
|
@ -137,6 +112,34 @@
|
|||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<layout class="QVBoxLayout" name="tagEditVerticalLayout">
|
||||
<property name="spacing">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QWidget" name="docTitleWidget" native="true">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="docTitleLabel">
|
||||
<property name="text">
|
||||
<string>Document title</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="tagSelectionHorizontalLayout">
|
||||
<item>
|
||||
|
@ -444,6 +447,9 @@ the file reverting all unsaved changings.</string>
|
|||
</property>
|
||||
</action>
|
||||
<action name="actionRename_files">
|
||||
<property name="icon">
|
||||
<iconset theme="edit-rename"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Rename files using tags</string>
|
||||
</property>
|
||||
|
@ -548,6 +554,9 @@ the file reverting all unsaved changings.</string>
|
|||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="autocorrection"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Manage tags automatically when loading file</string>
|
||||
</property>
|
||||
|
|
|
@ -38,6 +38,7 @@ TagEdit::TagEdit(QWidget *parent) :
|
|||
QWidget *widget = new QWidget(this);
|
||||
m_layoutLeft = new QFormLayout(widget);
|
||||
m_layoutLeft->setContentsMargins(QMargins());
|
||||
m_layoutLeft->setSpacing(2);
|
||||
widget->setLayout(m_layoutLeft);
|
||||
splitter->addWidget(widget);
|
||||
widget = new QWidget(this);
|
||||
|
|
Loading…
Reference in New Issue