forked from qt-creator/qt-creator
More UI consistent qrc editor
I altered the layout to use thin splitters so it fits better into the other UI components. Reviewed-by: thorbjorn
This commit is contained in:
@@ -75,7 +75,6 @@ ResourceEditorW::ResourceEditorW(const QList<int> &context,
|
||||
m_plugin(plugin)
|
||||
{
|
||||
m_resourceEditor->setResourceDragEnabled(true);
|
||||
m_resourceEditor->layout()->setMargin(9);
|
||||
|
||||
connect(m_resourceEditor, SIGNAL(dirtyChanged(bool)), this, SLOT(dirtyChanged(bool)));
|
||||
connect(m_resourceEditor, SIGNAL(undoStackChanged(bool, bool)),
|
||||
|
||||
@@ -47,9 +47,10 @@ QrcEditor::QrcEditor(QWidget *parent)
|
||||
layout->setSpacing(0);
|
||||
layout->setMargin(0);
|
||||
m_ui.centralWidget->setLayout(layout);
|
||||
|
||||
m_treeview->enableContextMenu(false);
|
||||
m_treeview->setFrameStyle(QFrame::NoFrame);;
|
||||
layout->addWidget(m_treeview);
|
||||
|
||||
connect(m_ui.removeButton, SIGNAL(clicked()), this, SLOT(onRemove()));
|
||||
|
||||
// 'Add' button with menu
|
||||
|
||||
@@ -10,9 +10,12 @@
|
||||
<height>381</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>6</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QWidget" name="centralWidget" native="true">
|
||||
@@ -25,6 +28,37 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>1</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: #666666</string>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget" native="true">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="leftMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="addButton">
|
||||
@@ -61,7 +95,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string>Properties</string>
|
||||
@@ -108,6 +142,9 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
Reference in New Issue
Block a user