Diffstat (limited to 'noncore/multimedia/tonleiter/editinst.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/tonleiter/editinst.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/multimedia/tonleiter/editinst.cpp b/noncore/multimedia/tonleiter/editinst.cpp index 5616569..ccb4560 100644 --- a/noncore/multimedia/tonleiter/editinst.cpp +++ b/noncore/multimedia/tonleiter/editinst.cpp | |||
@@ -1,27 +1,26 @@ | |||
1 | #include "editinst.h" | 1 | #include "editinst.h" |
2 | 2 | ||
3 | #include <qlabel.h> | ||
4 | #include <qpushbutton.h> | 3 | #include <qpushbutton.h> |
5 | 4 | ||
6 | #include <qpe/qpeapplication.h> | 5 | #include <qpe/qpeapplication.h> |
7 | 6 | ||
8 | Menu::InstEditDialog::InstEditDialog(TonleiterData* data,QWidget* parent,const char* name) | 7 | Menu::InstEditDialog::InstEditDialog(TonleiterData* data,QWidget* parent,const char* name) |
9 | :QDialog(parent,name,true,0),data(data) | 8 | :QDialog(parent,name,true,0),data(data) |
10 | { | 9 | { |
11 | setCaption("Tonleiter::"+tr("Instrument")); | 10 | setCaption("Tonleiter::"+tr("Instrument")); |
12 | QBoxLayout* masterlayout=new QBoxLayout(this,QBoxLayout::TopToBottom); | 11 | QBoxLayout* masterlayout=new QBoxLayout(this,QBoxLayout::TopToBottom); |
13 | instid=data->getCurrentInstrumentID(); | 12 | instid=data->getCurrentInstrumentID(); |
14 | stringlist.setAutoDelete(true); | 13 | stringlist.setAutoDelete(true); |
15 | 14 | ||
16 | QBoxLayout* toplayout=new QBoxLayout(masterlayout,QBoxLayout::LeftToRight); | 15 | QBoxLayout* toplayout=new QBoxLayout(masterlayout,QBoxLayout::LeftToRight); |
17 | 16 | ||
18 | //Name combo + Add + Delete | 17 | //Name combo + Add + Delete |
19 | boxInst=new QComboBox(this,"boxInst"); | 18 | boxInst=new QComboBox(this,"boxInst"); |
20 | boxInst->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Maximum)); | 19 | boxInst->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Maximum)); |
21 | connect(boxInst,SIGNAL(activated(int)),this,SLOT(setCurrentInstrumetID(int))); | 20 | connect(boxInst,SIGNAL(activated(int)),this,SLOT(setCurrentInstrumetID(int))); |
22 | for(int i=0;i<data->noOfInstruments();i++) | 21 | for(int i=0;i<data->noOfInstruments();i++) |
23 | { | 22 | { |
24 | Instrument inst=data->getInstrument(i); | 23 | Instrument inst=data->getInstrument(i); |
25 | QString name=inst.instName(); | 24 | QString name=inst.instName(); |
26 | if(name.isNull()) continue; | 25 | if(name.isNull()) continue; |
27 | boxInst->insertItem(name,i); | 26 | boxInst->insertItem(name,i); |