-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdialog.cpp
36 lines (26 loc) · 931 Bytes
/
dialog.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
#include"dialog.h"
dialog::dialog(QWidget *parent):QDialog(parent){
initialize();
}
dialog::~dialog()
{
}
void dialog::initialize(){
this->setWindowTitle(tr("搜索"));
setWindowFlags(Qt::WindowCloseButtonHint);
//searchLabel = new QLabel(tr("&搜索"));
searchLineEdit = new QLineEdit();
//searchLabel->setBuddy(searchLineEdit);//快捷键绑定;
searchButton1 = new QPushButton(tr("&搜索"));
searchButton2 = new QPushButton(tr("&上一个"));
searchButton3 = new QPushButton(tr("&下一个"));
searchButton4 = new QPushButton(tr("&完成"));
searchLayout = new QHBoxLayout;
//searchLayout->addWidget(searchLabel);
searchLayout->addWidget(searchLineEdit);
searchLayout->addWidget(searchButton1);
searchLayout->addWidget(searchButton2);
searchLayout->addWidget(searchButton3);
searchLayout->addWidget(searchButton4);
setLayout(searchLayout);
}