forked from blue/squawk
keep going on refactoring vcard
This commit is contained in:
parent
4af16b75bf
commit
edf1ee60cd
13 changed files with 483 additions and 55 deletions
|
@ -19,10 +19,16 @@
|
|||
|
||||
#include <QWidget>
|
||||
#include <QScopedPointer>
|
||||
#include <QGraphicsOpacityEffect>
|
||||
#include <QLabel>
|
||||
|
||||
#include <shared/info.h>
|
||||
|
||||
#include "ui/utils/progress.h"
|
||||
|
||||
#include "contactgeneral.h"
|
||||
#include "contactcontacts.h"
|
||||
#include "description.h"
|
||||
|
||||
namespace UI {
|
||||
namespace Ui
|
||||
|
@ -33,11 +39,28 @@ class Info;
|
|||
class Info : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Info(const Shared::Info& info, QWidget* parent = nullptr);
|
||||
Info(QWidget* parent = nullptr);
|
||||
~Info();
|
||||
|
||||
void setData(const Shared::Info& info);
|
||||
void showProgress(const QString& = "");
|
||||
void hideProgress();
|
||||
|
||||
private:
|
||||
void initializeContactGeneral(const Shared::Info& info);
|
||||
void initializeContactContacts(const Shared::Info& info);
|
||||
void initializeDescription(bool editable);
|
||||
void initializeOverlay();
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::Info> m_ui;
|
||||
ContactGeneral* contactGeneral;
|
||||
ContactContacts* contactContacts;
|
||||
Description* description;
|
||||
QWidget* overlay;
|
||||
Progress* progress;
|
||||
QLabel* progressLabel;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue