Skip to content

Commit f80dfa7

Browse files
committed
remove contextual help button on Windows
1 parent 697eab5 commit f80dfa7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+69
-6
lines changed

mscore/album.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ AlbumManager::AlbumManager(QWidget* parent)
376376
: QDialog(parent)
377377
{
378378
setupUi(this);
379+
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
379380

380381
album = 0;
381382
connect(add, SIGNAL(clicked()), SLOT(addClicked()));

mscore/articulationprop.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ ArticulationProperties::ArticulationProperties(Articulation* na, QWidget* parent
3939
: QDialog(parent)
4040
{
4141
setupUi(this);
42+
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
43+
4244
articulation = na;
4345

4446
ChordRest* cr = articulation->chordRest();

mscore/bendproperties.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ BendProperties::BendProperties(Bend* b, QWidget* parent)
3535
: QDialog(parent)
3636
{
3737
setupUi(this);
38+
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
39+
3840
bend = b;
3941
bendCanvas->setPoints(bend->points());
4042
bendTypes = new QButtonGroup(this);

mscore/boxproperties.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ BoxProperties::BoxProperties(Box* b, QWidget* parent)
3232
{
3333
_box = b;
3434
setupUi(this);
35+
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
36+
3537
qreal _spatium = b->spatium();
3638

3739
if (b->type() == Element::HBOX) { // enable width and set it to box width

mscore/chordedit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ ChordEdit::ChordEdit(Score* s, QWidget* parent)
3737
score = s;
3838

3939
setupUi(this);
40+
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
41+
4042
// note that rootGroup button identifiers map conveniently
4143
// onto all possible tpc2step return values: don't change
4244
rootGroup = new QButtonGroup(this);

mscore/chordeditor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ ChordEditor::ChordEditor(Chord* c, QWidget* parent)
4646
{
4747
_chord = c;
4848
setWindowTitle(QString("MuseScore: Chord Articulation"));
49+
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
4950

5051
// save original events
5152
int notes = _chord->notes().size();

mscore/debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Debugger::Debugger(QWidget* parent)
130130
: QDialog(parent)
131131
{
132132
setupUi(this);
133-
// setWindowTitle(tr("MuseScore: Debugger"));
133+
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
134134

135135
for (int i = 0; i < Element::MAXTYPE; ++i)
136136
elementViews[i] = 0;

mscore/dynamicprop.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ DynamicProperties::DynamicProperties(Dynamic* d, QWidget* parent)
3030
: QDialog(parent)
3131
{
3232
setupUi(this);
33+
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
3334
dynamic = d;
3435
velocity->setValue(dynamic->velocity());
3536
switch(dynamic->dynRange()) {

mscore/editdrumset.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ EditDrumset::EditDrumset(Drumset* ds, QWidget* parent)
5858
oDrumset = ds;
5959
nDrumset = *ds;
6060
setupUi(this);
61+
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
6162

6263
drumNote->setGrid(70, 80);
6364
drumNote->setDrawGrid(false);

mscore/editinstrument.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ EditInstrument::EditInstrument(QWidget* parent)
3030
{
3131
lt = new InstrumentTemplate;
3232
setupUi(this);
33+
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
3334
connect(minPitch, SIGNAL(valueChanged(int)), SLOT(valueChanged()));
3435
connect(maxPitch, SIGNAL(valueChanged(int)), SLOT(valueChanged()));
3536
}

0 commit comments

Comments
 (0)