@@ -22,6 +22,8 @@ SingleGearView::SingleGearView(GameData *data, FileCache &cache, QWidget *parent
22
22
, gearView(new GearView(data, cache))
23
23
, data(data)
24
24
{
25
+ gearView->setWhatsThis (i18n (" A 3D preview of the gear model." ));
26
+
25
27
// We don't want to see the face in this view
26
28
gearView->setHair (-1 );
27
29
gearView->setEar (-1 );
@@ -31,6 +33,7 @@ SingleGearView::SingleGearView(GameData *data, FileCache &cache, QWidget *parent
31
33
setLayout (layout);
32
34
33
35
auto mdlPathEdit = new QLineEdit ();
36
+ mdlPathEdit->setWhatsThis (i18n (" The path to this gear's model file." ));
34
37
mdlPathEdit->setReadOnly (true );
35
38
36
39
connect (this , &SingleGearView::gotMDLPath, this , [this , mdlPathEdit] {
@@ -47,30 +50,35 @@ SingleGearView::SingleGearView(GameData *data, FileCache &cache, QWidget *parent
47
50
layout->addLayout (topControlLayout);
48
51
49
52
raceCombo = new QComboBox ();
53
+ raceCombo->setWhatsThis (i18n (" The race used in the gear model preview. Note that this only shows races that have unique models for this gear." ));
50
54
connect (raceCombo, qOverload<int >(&QComboBox::currentIndexChanged), [this ](int index) {
51
55
setRace (static_cast <Race>(raceCombo->itemData (index).toInt ()));
52
56
});
53
57
controlLayout->addWidget (raceCombo);
54
58
55
59
subraceCombo = new QComboBox ();
60
+ subraceCombo->setWhatsThis (i18n (" The subrace used in the gear model preview. Note that this only shows subraces that have unique models for this gear." ));
56
61
connect (subraceCombo, qOverload<int >(&QComboBox::currentIndexChanged), [this ](int index) {
57
62
setSubrace (static_cast <Subrace>(subraceCombo->itemData (index).toInt ()));
58
63
});
59
64
controlLayout->addWidget (subraceCombo);
60
65
61
66
genderCombo = new QComboBox ();
67
+ genderCombo->setWhatsThis (i18n (" The gender used in the gear model preview. Note that this only shows gender that have unique models for this gear." ));
62
68
connect (genderCombo, qOverload<int >(&QComboBox::currentIndexChanged), [this ](int index) {
63
69
setGender (static_cast <Gender>(genderCombo->itemData (index).toInt ()));
64
70
});
65
71
controlLayout->addWidget (genderCombo);
66
72
67
73
lodCombo = new QComboBox ();
74
+ lodCombo->setWhatsThis (i18n (" The level of detail to preview. The higher the number, the lower the detail." ));
68
75
connect (lodCombo, qOverload<int >(&QComboBox::currentIndexChanged), [this ](int index) {
69
76
setLevelOfDetail (index);
70
77
});
71
78
controlLayout->addWidget (lodCombo);
72
79
73
80
addToFMVButton = new QPushButton (i18nc (" @action:button FMV is an abbreviation for Full Model Viewer" , " Add to FMV" ));
81
+ addToFMVButton->setWhatsThis (i18n (" Add this gear to the Full Model Viewer window, to preview on a full character." ));
74
82
addToFMVButton->setIcon (QIcon::fromTheme (QStringLiteral (" list-add-user" )));
75
83
connect (addToFMVButton, &QPushButton::clicked, this , [this ](bool ) {
76
84
if (currentGear.has_value ()) {
@@ -79,6 +87,7 @@ SingleGearView::SingleGearView(GameData *data, FileCache &cache, QWidget *parent
79
87
});
80
88
81
89
editButton = new QPushButton (i18nc (" @action:button" , " Edit" ));
90
+ editButton->setWhatsThis (i18n (" Edit this model directly in Blender." ));
82
91
editButton->setIcon (QIcon::fromTheme (QStringLiteral (" document-edit" )));
83
92
connect (editButton, &QPushButton::clicked, this , [this ](bool ) {
84
93
// Export in default location
@@ -122,6 +131,7 @@ SingleGearView::SingleGearView(GameData *data, FileCache &cache, QWidget *parent
122
131
topControlLayout->addWidget (editButton);
123
132
124
133
importButton = new QPushButton (i18nc (" @action:button" , " Import…" ));
134
+ importButton->setWhatsThis (i18n (" Import a different model for this gear." ));
125
135
importButton->setIcon (QIcon::fromTheme (QStringLiteral (" document-import" )));
126
136
connect (importButton, &QPushButton::clicked, this , [this ](bool ) {
127
137
if (currentGear.has_value ()) {
@@ -200,6 +210,7 @@ SingleGearView::SingleGearView(GameData *data, FileCache &cache, QWidget *parent
200
210
201
211
exportButton = new QPushButton (i18nc (" @action:button" , " Export" ));
202
212
exportButton->setMenu (testMenu);
213
+ exportButton->setWhatsThis (i18n (" Export this gear's model." ));
203
214
exportButton->setIcon (QIcon::fromTheme (QStringLiteral (" document-export" )));
204
215
205
216
topControlLayout->addWidget (exportButton);
0 commit comments