~ubuntu-branches/ubuntu/saucy/goldencheetah/saucy

« back to all changes in this revision

Viewing changes to qwt/examples/radio/radio.cpp

  • Committer: Package Import Robot
  • Author(s): KURASHIKI Satoru
  • Date: 2013-08-18 07:02:45 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130818070245-zgdvb47e1k3mtgil
Tags: 3.0-3
debian/control: remove needless dependency. (Closes: #719571)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include <qapplication.h>
2
 
#include <qlayout.h>
3
 
#include "tunerfrm.h"
4
 
#include "ampfrm.h"
5
 
#include "radio.h"
6
 
 
7
 
MainWin::MainWin(): 
8
 
    QWidget()
9
 
{
10
 
    TunerFrame *frmTuner = new TunerFrame(this);
11
 
    frmTuner->setFrameStyle(QFrame::Panel|QFrame::Raised);
12
 
 
13
 
    AmpFrame *frmAmp = new AmpFrame(this);
14
 
    frmAmp->setFrameStyle(QFrame::Panel|QFrame::Raised);
15
 
 
16
 
    QVBoxLayout *layout = new QVBoxLayout(this);
17
 
    layout->setMargin(0);
18
 
    layout->setSpacing(0);
19
 
    layout->addWidget(frmTuner);
20
 
    layout->addWidget(frmAmp);
21
 
    
22
 
    connect(frmTuner, SIGNAL(fieldChanged(double)), 
23
 
        frmAmp, SLOT(setMaster(double)));
24
 
 
25
 
    frmTuner->setFreq(90.0);    
26
 
}
 
2
#include "mainwindow.h"
27
3
 
28
4
int main (int argc, char **argv)
29
5
{
30
6
    QApplication a(argc, argv);
31
7
 
32
 
    MainWin w;
33
 
 
34
 
#if QT_VERSION < 0x040000
35
 
    a.setMainWidget(&w);
36
 
#endif
 
8
    MainWindow w;
37
9
    w.show();
38
10
 
39
11
    return a.exec();