-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.cpp
51 lines (40 loc) · 1.13 KB
/
mainwindow.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QWebFrame>
#include <QWebElement>
#include <QKeyEvent>
#include <QWebView>
#include <QUrl>
#include <QClipboard>
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
// when using search form extraction, you can also use http://www.thai-language.com/dict (advanced search)
// whith the search type choice radio button set to "exact match"
ui->setupUi(this);
foreach(QObject * object,this->children())
{
if(object->isWidgetType())
{
QLayout * layout = qobject_cast<QWidget*>(object)->layout();
if(layout)
{
layout->setContentsMargins(1,1,1,1);
layout->setSpacing( 1 );
}
}
}
this->setWindowIcon(QIcon(":ic_launcher.png"));
inputForm = new InputForm(ui, this);
connect(ui->pushButton,SIGNAL(clicked()),this,SLOT(showMessage()));
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::showMessage()
{
QMessageBox::information(this,QString(),ui->lineEdit->text());
}