mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-19 12:22:16 +03:00
db337c4457
Fix: #3889 Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
30 lines
585 B
C++
30 lines
585 B
C++
#pragma once
|
|
|
|
#include "ocsprofileconnector.h"
|
|
|
|
#include <QBoxLayout>
|
|
#include <QLabel>
|
|
#include <account.h>
|
|
#include <QMenu>
|
|
|
|
#include <cstddef>
|
|
|
|
namespace OCC {
|
|
|
|
class ProfilePageMenu : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ProfilePageMenu(AccountPtr account, const QString &shareWithUserId, QWidget *parent = nullptr);
|
|
~ProfilePageMenu() override;
|
|
|
|
void exec(const QPoint &globalPosition);
|
|
|
|
private:
|
|
void onHovercardFetched();
|
|
void onIconLoaded(const std::size_t &hovercardActionIndex);
|
|
|
|
OcsProfileConnector _profileConnector;
|
|
QMenu _menu;
|
|
};
|
|
}
|