keep going on refactoring vcard

This commit is contained in:
Blue 2023-02-02 21:39:38 +03:00
parent 4af16b75bf
commit edf1ee60cd
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
13 changed files with 483 additions and 55 deletions

View file

@ -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;
};
}