empty searchdialog
authorTommi Asp <tomma.asp@gmail.com>
Sat, 5 Jun 2010 17:23:57 +0000 (20:23 +0300)
committerTommi Asp <tomma.asp@gmail.com>
Sat, 5 Jun 2010 17:23:57 +0000 (20:23 +0300)
src/searchdialog.cpp [new file with mode: 0644]
src/searchdialog.h [new file with mode: 0644]
src/searchdialog.ui [new file with mode: 0644]

diff --git a/src/searchdialog.cpp b/src/searchdialog.cpp
new file mode 100644 (file)
index 0000000..5f99421
--- /dev/null
@@ -0,0 +1,26 @@
+#include "searchdialog.h"
+#include "ui_searchdialog.h"
+
+SearchDialog::SearchDialog(QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::SearchDialog)
+{
+    ui->setupUi(this);
+}
+
+SearchDialog::~SearchDialog()
+{
+    delete ui;
+}
+
+void SearchDialog::changeEvent(QEvent *e)
+{
+    QDialog::changeEvent(e);
+    switch (e->type()) {
+    case QEvent::LanguageChange:
+        ui->retranslateUi(this);
+        break;
+    default:
+        break;
+    }
+}
diff --git a/src/searchdialog.h b/src/searchdialog.h
new file mode 100644 (file)
index 0000000..49dbd25
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef SEARCHDIALOG_H
+#define SEARCHDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+    class SearchDialog;
+}
+
+class SearchDialog : public QDialog {
+    Q_OBJECT
+public:
+    SearchDialog(QWidget *parent = 0);
+    ~SearchDialog();
+
+protected:
+    void changeEvent(QEvent *e);
+
+private:
+    Ui::SearchDialog *ui;
+};
+
+#endif // SEARCHDIALOG_H
diff --git a/src/searchdialog.ui b/src/searchdialog.ui
new file mode 100644 (file)
index 0000000..b78659c
--- /dev/null
@@ -0,0 +1,71 @@
+<ui version="4.0">
+ <author/>
+ <comment/>
+ <exportmacro/>
+ <class>SearchDialog</class>
+ <widget class="QDialog" name="SearchDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <widget class="QDialogButtonBox" name="buttonBox">
+   <property name="geometry">
+    <rect>
+     <x>30</x>
+     <y>240</y>
+     <width>341</width>
+     <height>32</height>
+    </rect>
+   </property>
+   <property name="orientation">
+    <enum>Qt::Horizontal</enum>
+   </property>
+   <property name="standardButtons">
+    <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+   </property>
+  </widget>
+ </widget>
+ <pixmapfunction/>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>accepted()</signal>
+   <receiver>SearchDialog</receiver>
+   <slot>accept()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>248</x>
+     <y>254</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>157</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>rejected()</signal>
+   <receiver>SearchDialog</receiver>
+   <slot>reject()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>316</x>
+     <y>260</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>286</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>