Diffstat (limited to 'noncore/multimedia/tonleiter') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/tonleiter/editinst.cpp | 4 | ||||
-rw-r--r-- | noncore/multimedia/tonleiter/editscale.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/noncore/multimedia/tonleiter/editinst.cpp b/noncore/multimedia/tonleiter/editinst.cpp index f172ef8..5616569 100644 --- a/noncore/multimedia/tonleiter/editinst.cpp +++ b/noncore/multimedia/tonleiter/editinst.cpp | |||
@@ -1,11 +1,13 @@ | |||
1 | #include "editinst.h" | 1 | #include "editinst.h" |
2 | 2 | ||
3 | #include <qlabel.h> | 3 | #include <qlabel.h> |
4 | #include <qpushbutton.h> | 4 | #include <qpushbutton.h> |
5 | 5 | ||
6 | #include <qpe/qpeapplication.h> | ||
7 | |||
6 | Menu::InstEditDialog::InstEditDialog(TonleiterData* data,QWidget* parent,const char* name) | 8 | Menu::InstEditDialog::InstEditDialog(TonleiterData* data,QWidget* parent,const char* name) |
7 | :QDialog(parent,name,true,0),data(data) | 9 | :QDialog(parent,name,true,0),data(data) |
8 | { | 10 | { |
9 | setCaption("Tonleiter::"+tr("Instrument")); | 11 | setCaption("Tonleiter::"+tr("Instrument")); |
10 | QBoxLayout* masterlayout=new QBoxLayout(this,QBoxLayout::TopToBottom); | 12 | QBoxLayout* masterlayout=new QBoxLayout(this,QBoxLayout::TopToBottom); |
11 | instid=data->getCurrentInstrumentID(); | 13 | instid=data->getCurrentInstrumentID(); |
@@ -51,13 +53,13 @@ Menu::InstEditDialog::InstEditDialog(TonleiterData* data,QWidget* parent,const c | |||
51 | loadInstrument(); | 53 | loadInstrument(); |
52 | 54 | ||
53 | QPushButton* addlowButton=new QPushButton(tr("Add Low String"),this,"addlowButton"); | 55 | QPushButton* addlowButton=new QPushButton(tr("Add Low String"),this,"addlowButton"); |
54 | masterlayout->addWidget(addlowButton); | 56 | masterlayout->addWidget(addlowButton); |
55 | 57 | ||
56 | //make dialog fit the screen | 58 | //make dialog fit the screen |
57 | showMaximized(); | 59 | QPEApplication::showDialog( this ); |
58 | } | 60 | } |
59 | //**************************************************************************** | 61 | //**************************************************************************** |
60 | Menu::InstEditDialog::~InstEditDialog() | 62 | Menu::InstEditDialog::~InstEditDialog() |
61 | { | 63 | { |
62 | } | 64 | } |
63 | //**************************************************************************** | 65 | //**************************************************************************** |
diff --git a/noncore/multimedia/tonleiter/editscale.cpp b/noncore/multimedia/tonleiter/editscale.cpp index 0be0058..28bd579 100644 --- a/noncore/multimedia/tonleiter/editscale.cpp +++ b/noncore/multimedia/tonleiter/editscale.cpp | |||
@@ -1,11 +1,13 @@ | |||
1 | #include "editscale.h" | 1 | #include "editscale.h" |
2 | 2 | ||
3 | #include <qlayout.h> | 3 | #include <qlayout.h> |
4 | #include <qpushbutton.h> | 4 | #include <qpushbutton.h> |
5 | 5 | ||
6 | #include <qpe/qpeapplication.h> | ||
7 | |||
6 | Menu::ScaleEditDialog::ScaleEditDialog(TonleiterData* data,QWidget* parent,const char* name) | 8 | Menu::ScaleEditDialog::ScaleEditDialog(TonleiterData* data,QWidget* parent,const char* name) |
7 | :QDialog(parent,name,true,0),data(data) | 9 | :QDialog(parent,name,true,0),data(data) |
8 | { | 10 | { |
9 | setCaption("Tonleiter::"+tr("Scale")); | 11 | setCaption("Tonleiter::"+tr("Scale")); |
10 | QBoxLayout* masterlayout=new QBoxLayout(this,QBoxLayout::TopToBottom); | 12 | QBoxLayout* masterlayout=new QBoxLayout(this,QBoxLayout::TopToBottom); |
11 | 13 | ||
@@ -33,13 +35,13 @@ Menu::ScaleEditDialog::ScaleEditDialog(TonleiterData* data,QWidget* parent,const | |||
33 | toplayout->addWidget(delButton); | 35 | toplayout->addWidget(delButton); |
34 | 36 | ||
35 | pianoscale=new PianoScale(this); | 37 | pianoscale=new PianoScale(this); |
36 | masterlayout->addWidget(pianoscale); | 38 | masterlayout->addWidget(pianoscale); |
37 | 39 | ||
38 | //make dialog fit the screen | 40 | //make dialog fit the screen |
39 | showMaximized(); | 41 | QPEApplication::showDialog( this ); |
40 | } | 42 | } |
41 | //**************************************************************************** | 43 | //**************************************************************************** |
42 | Menu::ScaleEditDialog::~ScaleEditDialog() | 44 | Menu::ScaleEditDialog::~ScaleEditDialog() |
43 | { | 45 | { |
44 | } | 46 | } |
45 | //**************************************************************************** | 47 | //**************************************************************************** |