Skip to content
Snippets Groups Projects
Commit ebce08af authored by Kavindra Devi Palaraja's avatar Kavindra Devi Palaraja
Browse files

Doc - Working on part 5

RevBy:    TrustMe
parent de995341
No related branches found
No related tags found
No related merge requests found
#include "finddialog.h"
#include "ui_finddialog.h"
FindDialog::FindDialog(QWidget *parent) :
QDialog(parent),
m_ui(new Ui::FindDialog)
{
m_ui->setupUi(this);
}
FindDialog::~FindDialog()
{
delete m_ui;
}
void FindDialog::findClicked()
{
}
QString FindDialog::getFindText()
{
}
#ifndef FINDDIALOG_H
#define FINDDIALOG_H
#include <QtGui/QDialog>
#include <QLineEdit>
#include <QPushButton>
namespace Ui {
class FindDialog;
}
class FindDialog : public QDialog {
Q_OBJECT
public:
FindDialog(QWidget *parent = 0);
~FindDialog();
QString getFindText();
public slots:
void findClicked();
private:
Ui::FindDialog *m_ui;
QPushButton *findButton;
QLineEdit *lineEdit;
QString findText;
};
#endif // FINDDIALOG_H
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>FindDialog</class> <class>FindDialog</class>
<widget class="QDialog" name="FindDialog"> <widget class="QDialog" name="FindDialog">
...@@ -5,14 +6,54 @@ ...@@ -5,14 +6,54 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>486</width>
<height>300</height> <height>65</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Dialog</string> <string>Dialog</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Enter the name of a contact:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit"/>
</item>
<item>
<widget class="QPushButton" name="findButton">
<property name="text">
<string>Find</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections>
<connection>
<sender>findButton</sender>
<signal>clicked()</signal>
<receiver>FindDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>415</x>
<y>42</y>
</hint>
<hint type="destinationlabel">
<x>385</x>
<y>50</y>
</hint>
</hints>
</connection>
</connections>
</ui> </ui>
...@@ -5,8 +5,10 @@ TARGET = part5 ...@@ -5,8 +5,10 @@ TARGET = part5
TEMPLATE = app TEMPLATE = app
SOURCES += main.cpp \ SOURCES += main.cpp \
addressbook.cpp \ addressbook.cpp \
finddialog.cpp \
finddialog.cpp finddialog.cpp
HEADERS += addressbook.h \ HEADERS += addressbook.h \
finddialog.h \
finddialog.h finddialog.h
FORMS += addressbook.ui \ FORMS += addressbook.ui \
finddialog.ui finddialog.ui
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment