-rw-r--r-- | noncore/multimedia/tonleiter/menuwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/multimedia/tonleiter/menuwidget.cpp b/noncore/multimedia/tonleiter/menuwidget.cpp index 9cc2c6b..3dfa09d 100644 --- a/noncore/multimedia/tonleiter/menuwidget.cpp +++ b/noncore/multimedia/tonleiter/menuwidget.cpp | |||
@@ -5,13 +5,13 @@ | |||
5 | 5 | ||
6 | MenuWidget::MenuWidget(TonleiterData* data,QWidget* parent,const char* name,WFlags f) | 6 | MenuWidget::MenuWidget(TonleiterData* data,QWidget* parent,const char* name,WFlags f) |
7 | :QWidget(parent,name,f),data(data) | 7 | :QWidget(parent,name,f),data(data) |
8 | { | 8 | { |
9 | QGridLayout* layout=new QGridLayout(this,3,3,10,-1,"menulayout"); | 9 | QGridLayout* layout=new QGridLayout(this,3,3,10,-1,"menulayout"); |
10 | 10 | ||
11 | QLabel* instLabel=new QLabel(tr("Instrument"),this,"instLabel"); | 11 | QLabel* instLabel=new QLabel(tr("Instr."),this,"instLabel"); |
12 | layout->addWidget(instLabel,0,0); | 12 | layout->addWidget(instLabel,0,0); |
13 | boxInst=new QComboBox(this,"boxInst"); | 13 | boxInst=new QComboBox(this,"boxInst"); |
14 | connect(boxInst,SIGNAL(activated(int)),data,SLOT(setCurrentInstrumetID(int))); | 14 | connect(boxInst,SIGNAL(activated(int)),data,SLOT(setCurrentInstrumetID(int))); |
15 | layout->addWidget(boxInst,0,1); | 15 | layout->addWidget(boxInst,0,1); |
16 | editInst=new QPushButton(tr("Edit"),this,"editInst"); | 16 | editInst=new QPushButton(tr("Edit"),this,"editInst"); |
17 | layout->addWidget(editInst,0,2); | 17 | layout->addWidget(editInst,0,2); |
@@ -21,13 +21,13 @@ MenuWidget::MenuWidget(TonleiterData* data,QWidget* parent,const char* name,WFla | |||
21 | boxNote=new QComboBox(this,"boxNote"); | 21 | boxNote=new QComboBox(this,"boxNote"); |
22 | connect(boxNote,SIGNAL(activated(int)),data,SLOT(setCurrentNote(int))); | 22 | connect(boxNote,SIGNAL(activated(int)),data,SLOT(setCurrentNote(int))); |
23 | layout->addWidget(boxNote,1,1); | 23 | layout->addWidget(boxNote,1,1); |
24 | for(int a=0;a<12;a++) | 24 | for(int a=0;a<12;a++) |
25 | boxNote->insertItem(Note::notenames[a],a); | 25 | boxNote->insertItem(Note::notenames[a],a); |
26 | boxNote->setCurrentItem(data->getCurrentBaseNote()); | 26 | boxNote->setCurrentItem(data->getCurrentBaseNote()); |
27 | noteCheck=new QCheckBox(tr("show notes"),this,"noteCheck"); | 27 | noteCheck=new QCheckBox(tr("show"),this,"noteCheck"); |
28 | noteCheck->setChecked(data->isDrawNames()); | 28 | noteCheck->setChecked(data->isDrawNames()); |
29 | connect(noteCheck,SIGNAL(toggled(bool)),data,SLOT(setDrawNames(bool))); | 29 | connect(noteCheck,SIGNAL(toggled(bool)),data,SLOT(setDrawNames(bool))); |
30 | layout->addWidget(noteCheck,1,2); | 30 | layout->addWidget(noteCheck,1,2); |
31 | 31 | ||
32 | QLabel* scaleLabel=new QLabel(tr("Scale"),this,"scaleLabel"); | 32 | QLabel* scaleLabel=new QLabel(tr("Scale"),this,"scaleLabel"); |
33 | layout->addWidget(scaleLabel,2,0); | 33 | layout->addWidget(scaleLabel,2,0); |