Browse Source

update// added speechbubble wigdets

pull/130/head
Strider 4 years ago
parent
commit
d398709da9
  1. 12
      silentdragon-lite.pro
  2. 14
      src/chatbubbleme.cpp
  3. 22
      src/chatbubbleme.h
  4. 57
      src/chatbubbleme.ui
  5. 14
      src/chatbubblepartner.cpp
  6. 22
      src/chatbubblepartner.h
  7. 57
      src/chatbubblepartner.ui
  8. 16
      src/mainwindow.ui

12
silentdragon-lite.pro

@ -65,7 +65,9 @@ SOURCES += \
src/datamodel.cpp \
src/controller.cpp \
src/liteinterface.cpp \
src/camount.cpp
src/camount.cpp \
src/chatbubbleme.cpp \
src/chatbubblepartner.cpp
HEADERS += \
src/firsttimewizard.h \
@ -94,7 +96,9 @@ HEADERS += \
src/controller.h \
src/liteinterface.h \
src/camount.h \
lib/silentdragonlitelib.h
lib/silentdragonlitelib.h \
src/chatbubbleme.h \
src/chatbubblepartner.h
FORMS += \
src/encryption.ui \
@ -117,7 +121,9 @@ FORMS += \
src/recurringdialog.ui \
src/newrecurring.ui \
src/requestdialog.ui \
src/recurringmultiple.ui
src/recurringmultiple.ui \
src/chatbubbleme.ui \
src/chatbubblepartner.ui
TRANSLATIONS = res/silentdragonlite_es.ts \

14
src/chatbubbleme.cpp

@ -0,0 +1,14 @@
#include "chatbubbleme.h"
#include "ui_chatbubbleme.h"
ChatBubbleMe::ChatBubbleMe(QWidget *parent) :
QWidget(parent),
ui(new Ui::ChatBubbleMe)
{
ui->setupUi(this);
}
ChatBubbleMe::~ChatBubbleMe()
{
delete ui;
}

22
src/chatbubbleme.h

@ -0,0 +1,22 @@
#ifndef CHATBUBBLEME_H
#define CHATBUBBLEME_H
#include <QWidget>
namespace Ui {
class ChatBubbleMe;
}
class ChatBubbleMe : public QWidget
{
Q_OBJECT
public:
explicit ChatBubbleMe(QWidget *parent = nullptr);
~ChatBubbleMe();
private:
Ui::ChatBubbleMe *ui;
};
#endif // CHATBUBBLEME_H

57
src/chatbubbleme.ui

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ChatBubbleMe</class>
<widget class="QWidget" name="ChatBubbleMe">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>646</width>
<height>76</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QWidget{
background: whitesmoke;
border: 1px solid #afafaf;
border-radius: 3px;
}
QLabel
{
background: none;
border: none;
}</string>
</property>
<widget class="QLabel" name="lblMessage">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>611</width>
<height>41</height>
</rect>
</property>
<property name="text">
<string>Lorem ipsum dolor sit amet</string>
</property>
</widget>
<widget class="QLabel" name="lblTimestamp">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>611</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>12/03/2020 12:34</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>

14
src/chatbubblepartner.cpp

@ -0,0 +1,14 @@
#include "chatbubblepartner.h"
#include "ui_chatbubblepartner.h"
ChatBubblePartner::ChatBubblePartner(QWidget *parent) :
QWidget(parent),
ui(new Ui::ChatBubblePartner)
{
ui->setupUi(this);
}
ChatBubblePartner::~ChatBubblePartner()
{
delete ui;
}

22
src/chatbubblepartner.h

@ -0,0 +1,22 @@
#ifndef CHATBUBBLEPARTNER_H
#define CHATBUBBLEPARTNER_H
#include <QWidget>
namespace Ui {
class ChatBubblePartner;
}
class ChatBubblePartner : public QWidget
{
Q_OBJECT
public:
explicit ChatBubblePartner(QWidget *parent = nullptr);
~ChatBubblePartner();
private:
Ui::ChatBubblePartner *ui;
};
#endif // CHATBUBBLEPARTNER_H

57
src/chatbubblepartner.ui

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ChatBubblePartner</class>
<widget class="QWidget" name="ChatBubblePartner">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>646</width>
<height>76</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QWidget{
background: #c8e1ff;
border: 1px solid #fefefe;
border-radius: 3px;
}
QLabel
{
background: none;
border: none;
}</string>
</property>
<widget class="QLabel" name="lblMessage">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>611</width>
<height>41</height>
</rect>
</property>
<property name="text">
<string>Lorem ipsum dolor sit amet</string>
</property>
</widget>
<widget class="QLabel" name="lblTimestamp">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>611</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>12/03/2020 12:34</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>

16
src/mainwindow.ui

@ -1356,7 +1356,7 @@
<rect>
<x>340</x>
<y>80</y>
<width>871</width>
<width>908</width>
<height>361</height>
</rect>
</property>
@ -1379,7 +1379,7 @@
<rect>
<x>357</x>
<y>483</y>
<width>851</width>
<width>891</width>
<height>128</height>
</rect>
</property>
@ -1416,7 +1416,7 @@
<widget class="QLabel" name="memoSizeChat">
<property name="geometry">
<rect>
<x>1110</x>
<x>1150</x>
<y>460</y>
<width>91</width>
<height>17</height>
@ -1613,6 +1613,11 @@
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>MemoEdit</class>
<extends>QPlainTextEdit</extends>
<header>memoedit.h</header>
</customwidget>
<customwidget>
<class>AddressCombo</class>
<extends>QComboBox</extends>
@ -1628,11 +1633,6 @@
<extends>QLabel</extends>
<header>fillediconlabel.h</header>
</customwidget>
<customwidget>
<class>MemoEdit</class>
<extends>QPlainTextEdit</extends>
<header>memoedit.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>Address1</tabstop>

Loading…
Cancel
Save