Skip to content

Commit 9686be7

Browse files
committed
show -nothing selected- in empty inspector
1 parent c1853eb commit 9686be7

File tree

4 files changed

+73
-1
lines changed

4 files changed

+73
-1
lines changed

mscore/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ QT4_WRAP_UI (ui_headers
114114
inspector/inspector_slur.ui
115115
inspector/inspector_text.ui
116116
inspector/inspector_ambitus.ui
117+
inspector/inspector_empty.ui
117118
${SCRIPT_UI}
118119
)
119120

mscore/inspector/inspector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ InspectorSlur::InspectorSlur(QWidget* parent)
794794
InspectorEmpty::InspectorEmpty(QWidget* parent)
795795
:InspectorBase(parent)
796796
{
797-
setToolTip(tr("Select an element to display its properties"));
797+
e.setupUi(addWidget());
798798
}
799799

800800
//---------------------------------------------------------

mscore/inspector/inspector.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "ui_inspector_dynamic.h"
3636
#include "ui_inspector_slur.h"
3737
#include "ui_inspector_text.h"
38+
#include "ui_inspector_empty.h"
3839

3940
namespace Ms {
4041

@@ -333,6 +334,8 @@ class InspectorSlur : public InspectorBase {
333334
class InspectorEmpty : public InspectorBase {
334335
Q_OBJECT
335336

337+
Ui::InspectorEmpty e;
338+
336339
public:
337340
InspectorEmpty(QWidget* parent);
338341
};

mscore/inspector/inspector_empty.ui

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>InspectorEmpty</class>
4+
<widget class="QWidget" name="InspectorEmpty">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>382</width>
10+
<height>180</height>
11+
</rect>
12+
</property>
13+
<property name="windowTitle">
14+
<string/>
15+
</property>
16+
<property name="accessibleName">
17+
<string>Image Inspector</string>
18+
</property>
19+
<layout class="QVBoxLayout" name="verticalLayout">
20+
<property name="spacing">
21+
<number>0</number>
22+
</property>
23+
<property name="leftMargin">
24+
<number>0</number>
25+
</property>
26+
<property name="topMargin">
27+
<number>0</number>
28+
</property>
29+
<property name="rightMargin">
30+
<number>0</number>
31+
</property>
32+
<property name="bottomMargin">
33+
<number>0</number>
34+
</property>
35+
<item>
36+
<widget class="QLabel" name="elementName">
37+
<property name="font">
38+
<font>
39+
<weight>75</weight>
40+
<bold>true</bold>
41+
</font>
42+
</property>
43+
<property name="text">
44+
<string>nothing selected</string>
45+
</property>
46+
<property name="alignment">
47+
<set>Qt::AlignCenter</set>
48+
</property>
49+
</widget>
50+
</item>
51+
<item>
52+
<widget class="QFrame" name="frame">
53+
<property name="frameShape">
54+
<enum>QFrame::HLine</enum>
55+
</property>
56+
<property name="frameShadow">
57+
<enum>QFrame::Raised</enum>
58+
</property>
59+
<property name="lineWidth">
60+
<number>2</number>
61+
</property>
62+
</widget>
63+
</item>
64+
</layout>
65+
</widget>
66+
<resources/>
67+
<connections/>
68+
</ui>

0 commit comments

Comments
 (0)