diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-09-09 08:23:53 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-09-09 08:23:53 +0000 |
| commit | f59f1f1402ef678b0789d14937d7806fd952601a (patch) | |
| tree | e31643854e807a605b7da36467ca99ee13d5098d /examples/GuiClient | |
| parent | 3e0c70ebdb2c77563a5720bfba526c8c2c0dad80 (diff) | |
| download | qxmpp-f59f1f1402ef678b0789d14937d7806fd952601a.tar.gz | |
add profile dialog
Diffstat (limited to 'examples/GuiClient')
| -rw-r--r-- | examples/GuiClient/GuiClient.pro | 10 | ||||
| -rw-r--r-- | examples/GuiClient/profileDialog.cpp | 14 | ||||
| -rw-r--r-- | examples/GuiClient/profileDialog.h | 22 | ||||
| -rw-r--r-- | examples/GuiClient/profileDialog.ui | 132 |
4 files changed, 175 insertions, 3 deletions
diff --git a/examples/GuiClient/GuiClient.pro b/examples/GuiClient/GuiClient.pro index ba06c3c7..da5a6970 100644 --- a/examples/GuiClient/GuiClient.pro +++ b/examples/GuiClient/GuiClient.pro @@ -21,7 +21,9 @@ SOURCES += main.cpp \ avatarWidget.cpp \
statusTextWidget.cpp \
customToolButton.cpp \
- vCardManager.cpp
+ vCardManager.cpp \
+ profileDialog.cpp
+
HEADERS += messageGraphicsItem.h \
chatGraphicsScene.h \
chatGraphicsView.h \
@@ -39,11 +41,13 @@ HEADERS += messageGraphicsItem.h \ avatarWidget.h \
statusTextWidget.h \
customToolButton.h \
- vCardManager.h
+ vCardManager.h \
+ profileDialog.h
FORMS += mainDialog.ui \
chatDialog.ui \
- statusWidget.ui
+ statusWidget.ui \
+ profileDialog.ui
QT += network \
xml
diff --git a/examples/GuiClient/profileDialog.cpp b/examples/GuiClient/profileDialog.cpp new file mode 100644 index 00000000..58d72449 --- /dev/null +++ b/examples/GuiClient/profileDialog.cpp @@ -0,0 +1,14 @@ +#include "profileDialog.h"
+#include "ui_profileDialog.h"
+
+profileDialog::profileDialog(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::profileDialog)
+{
+ ui->setupUi(this);
+}
+
+profileDialog::~profileDialog()
+{
+ delete ui;
+}
diff --git a/examples/GuiClient/profileDialog.h b/examples/GuiClient/profileDialog.h new file mode 100644 index 00000000..264dd94b --- /dev/null +++ b/examples/GuiClient/profileDialog.h @@ -0,0 +1,22 @@ +#ifndef PROFILEDIALOG_H
+#define PROFILEDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+ class profileDialog;
+}
+
+class profileDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit profileDialog(QWidget *parent = 0);
+ ~profileDialog();
+
+private:
+ Ui::profileDialog *ui;
+};
+
+#endif // PROFILEDIALOG_H
diff --git a/examples/GuiClient/profileDialog.ui b/examples/GuiClient/profileDialog.ui new file mode 100644 index 00000000..dfda1498 --- /dev/null +++ b/examples/GuiClient/profileDialog.ui @@ -0,0 +1,132 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>profileDialog</class>
+ <widget class="QDialog" name="profileDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>400</width>
+ <height>238</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Dialog</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
+ <item>
+ <widget class="QLabel" name="label_avatar">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>96</width>
+ <height>96</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>96</width>
+ <height>96</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QLabel" name="label_fullName">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="label_jid">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="label_status">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Close</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>profileDialog</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>343</x>
+ <y>215</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>301</x>
+ <y>191</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
|
