task
authornicola <nicola@nicola-x910.(none)>
Fri, 11 Dec 2009 13:13:53 +0000 (14:13 +0100)
committernicola <nicola@nicola-x910.(none)>
Fri, 11 Dec 2009 13:13:53 +0000 (14:13 +0100)
desktop/dialogtask.cpp [new file with mode: 0644]
desktop/dialogtask.h [new file with mode: 0644]
desktop/dialogtask.ui [new file with mode: 0644]

diff --git a/desktop/dialogtask.cpp b/desktop/dialogtask.cpp
new file mode 100644 (file)
index 0000000..2a0ba19
--- /dev/null
@@ -0,0 +1,26 @@
+#include "dialogtask.h"
+#include "ui_dialogtask.h"
+
+DialogTask::DialogTask(QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::DialogTask)
+{
+    ui->setupUi(this);
+}
+
+DialogTask::~DialogTask()
+{
+    delete ui;
+}
+
+void DialogTask::changeEvent(QEvent *e)
+{
+    QDialog::changeEvent(e);
+    switch (e->type()) {
+    case QEvent::LanguageChange:
+        ui->retranslateUi(this);
+        break;
+    default:
+        break;
+    }
+}
diff --git a/desktop/dialogtask.h b/desktop/dialogtask.h
new file mode 100644 (file)
index 0000000..dd5d530
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef DIALOGTASK_H
+#define DIALOGTASK_H
+
+#include <QDialog>
+
+namespace Ui {
+    class DialogTask;
+}
+
+class DialogTask : public QDialog {
+    Q_OBJECT
+public:
+    DialogTask(QWidget *parent = 0);
+    ~DialogTask();
+
+protected:
+    void changeEvent(QEvent *e);
+
+private:
+    Ui::DialogTask *ui;
+};
+
+#endif // DIALOGTASK_H
diff --git a/desktop/dialogtask.ui b/desktop/dialogtask.ui
new file mode 100644 (file)
index 0000000..6a0d834
--- /dev/null
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>DialogTask</class>
+ <widget class="QDialog" name="DialogTask">
+  <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>
+  <layout class="QGridLayout" name="gridLayout">
+   <item row="0" column="0">
+    <widget class="QLabel" name="label">
+     <property name="text">
+      <string>Elapsed Time</string>
+     </property>
+    </widget>
+   </item>
+   <item row="0" column="1">
+    <widget class="QLabel" name="label_2">
+     <property name="text">
+      <string>Activity</string>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="0">
+    <widget class="QTimeEdit" name="timeEdit"/>
+   </item>
+   <item row="1" column="1">
+    <widget class="QLineEdit" name="lineEdit"/>
+   </item>
+   <item row="2" column="0" colspan="2">
+    <widget class="QTableView" name="tableView"/>
+   </item>
+   <item row="3" column="0" colspan="2">
+    <widget class="QDialogButtonBox" name="buttonBox">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="standardButtons">
+      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+     </property>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>accepted()</signal>
+   <receiver>DialogTask</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>DialogTask</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>