Rev 2116 Rev 2222
1 #include <QApplication> 1 #include <QApplication>
2 #include <QPushButton> 2 #include <QPushButton>
3 #include <QVBoxLayout> 3 #include <QVBoxLayout>
4   4  
5 #include "scope.h" 5 #include "scope.h"
6   6  
7   7  
8 class Window : public QWidget 8 class Window : public QWidget
9 { 9 {
10 public: 10 public:
11 Window(QWidget *parent = 0); 11 Window(QWidget *parent = 0);
12 }; 12 };
13   13  
14   14  
15 Window::Window(QWidget *parent) 15 Window::Window(QWidget *parent)
16 : QWidget(parent) 16 : QWidget(parent)
17 { 17 {
18 Scope *scope = new Scope; 18 Scope *scope = new Scope;
19   19  
20 QVBoxLayout *layout = new QVBoxLayout; 20 QVBoxLayout *layout = new QVBoxLayout;
21 layout->addWidget(scope); 21 layout->addWidget(scope);
22 setLayout(layout); 22 setLayout(layout);
23 } 23 }
24   24  
25   25  
26 int main(int argc, char *argv[]) 26 int main(int argc, char *argv[])
27 { 27 {
28 QApplication app(argc, argv); 28 QApplication app(argc, argv);
29 Window window; 29 Window window;
30 window.setGeometry(800, 200, 560, 690); 30 window.setGeometry(800, 200, 560, 690);
31 window.show(); 31 window.show();
32 return app.exec(); 32 return app.exec();
33 } 33 }