Commit d398dcbf authored by Edric Milaret's avatar Edric Milaret

im: add send button

Refs #74825

Change-Id: I955ff044e8e1f05e2b0a4050f133641138281620
parent 90bd5a8c
......@@ -113,3 +113,9 @@ InstantMessagingWidget::copyToClipboard()
QApplication::clipboard()->setText(text.value<QString>());
}
}
void
InstantMessagingWidget::on_sendButton_clicked()
{
emit ui->messageInput->returnPressed();
}
......@@ -41,6 +41,10 @@ public:
protected:
virtual void keyPressEvent(QKeyEvent *event);
//UI SLOTS
private slots:
void on_sendButton_clicked();
private slots:
void mediaAdd(Media::Media *media);
......
......@@ -28,17 +28,37 @@
</widget>
</item>
<item>
<widget class="QLineEdit" name="messageInput">
<property name="placeholderText">
<string>Send text message...</string>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="topMargin">
<number>0</number>
</property>
<property name="clearButtonEnabled">
<bool>true</bool>
</property>
</widget>
<item>
<widget class="QLineEdit" name="messageInput">
<property name="placeholderText">
<string>Send text message...</string>
</property>
<property name="clearButtonEnabled">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="sendButton">
<property name="text">
<string>Send</string>
</property>
<property name="icon">
<iconset resource="ressources.qrc">
<normaloff>:/images/arrow-right.png</normaloff>:/images/arrow-right.png</iconset>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="ressources.qrc"/>
</resources>
<connections/>
</ui>
......@@ -23,5 +23,6 @@
<file>images/arrow-up.png</file>
<file>images/spinner.gif</file>
<file>images/folder-download.png</file>
<file>images/arrow-right.png</file>
</qresource>
</RCC>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment