forked from blue/squawk
some further thinking of info widget
This commit is contained in:
parent
e4a2728ef8
commit
ec362cef55
5 changed files with 64 additions and 48 deletions
|
@ -23,6 +23,7 @@
|
|||
#include <QLabel>
|
||||
|
||||
#include <shared/info.h>
|
||||
#include <shared/global.h>
|
||||
|
||||
#include "ui/utils/progress.h"
|
||||
|
||||
|
@ -42,13 +43,11 @@ public:
|
|||
Info(const QString& jid, QWidget* parent = nullptr);
|
||||
~Info();
|
||||
|
||||
QString getJid() const;
|
||||
void setData(const Shared::Info& info);
|
||||
void showProgress(const QString& = "");
|
||||
void hideProgress();
|
||||
|
||||
public:
|
||||
QString jid;
|
||||
|
||||
signals:
|
||||
void saveInfo(const Shared::Info& info);
|
||||
|
||||
|
@ -56,13 +55,16 @@ private slots:
|
|||
void onButtonBoxAccepted();
|
||||
|
||||
private:
|
||||
void initializeContactGeneral(const Shared::Info& info);
|
||||
void initializeContactContacts(const Shared::Info& info);
|
||||
void initializeDescription(const Shared::Info& info);
|
||||
void initializeContactGeneral(const QString& jid, const Shared::VCard& card, bool editable);
|
||||
void initializeContactContacts(const QString& jid, const Shared::VCard& card, bool editable);
|
||||
void initializeDescription(const QString& description, bool editable);
|
||||
void initializeOverlay();
|
||||
void initializeButtonBox();
|
||||
void clear();
|
||||
|
||||
private:
|
||||
QString jid;
|
||||
Shared::EntryType type;
|
||||
QScopedPointer<Ui::Info> m_ui;
|
||||
ContactGeneral* contactGeneral;
|
||||
ContactContacts* contactContacts;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue