Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
dlg_edit_avatar.h
Go to the documentation of this file.
1
6
7
#ifndef DLG_EDITAVATAR_H
8
#define DLG_EDITAVATAR_H
9
10
#include <QByteArray>
11
#include <QDialog>
12
#include <QImage>
13
#include <QLoggingCategory>
14
#include <qtmetamacros.h>
15
16
class
QWidget;
17
18
inline
Q_LOGGING_CATEGORY
(DlgEditAvatarLog,
"dlg_edit_avatar"
);
19
20
class
QLabel;
21
class
QPushButton;
22
23
class
DlgEditAvatar
:
public
QDialog
24
{
25
Q_OBJECT
26
public
:
27
explicit
DlgEditAvatar
(QWidget *parent =
nullptr
);
28
QByteArray
getImage
();
29
private
slots:
30
void
actOk
();
31
void
actBrowse
();
32
33
private
:
34
static
constexpr
int
MAX_AVATAR_DIMENSION
= 1024;
35
QImage
image
;
36
QLabel *
textLabel
, *
imageLabel
, *
hintLabel
;
37
QPushButton *
browseButton
;
38
};
39
40
#endif
DlgEditAvatar::actBrowse
void actBrowse()
Definition
dlg_edit_avatar.cpp:63
DlgEditAvatar::MAX_AVATAR_DIMENSION
static constexpr int MAX_AVATAR_DIMENSION
Definition
dlg_edit_avatar.h:34
DlgEditAvatar::hintLabel
QLabel * hintLabel
Definition
dlg_edit_avatar.h:36
DlgEditAvatar::imageLabel
QLabel * imageLabel
Definition
dlg_edit_avatar.h:36
DlgEditAvatar::image
QImage image
Definition
dlg_edit_avatar.h:35
DlgEditAvatar::getImage
QByteArray getImage()
Definition
dlg_edit_avatar.cpp:83
DlgEditAvatar::browseButton
QPushButton * browseButton
Definition
dlg_edit_avatar.h:37
DlgEditAvatar::textLabel
QLabel * textLabel
Definition
dlg_edit_avatar.h:36
DlgEditAvatar::DlgEditAvatar
DlgEditAvatar(QWidget *parent=nullptr)
Definition
dlg_edit_avatar.cpp:23
DlgEditAvatar::actOk
void actOk()
Definition
dlg_edit_avatar.cpp:58
Q_LOGGING_CATEGORY
Q_LOGGING_CATEGORY(CrashReportLog, "crash_report")
cockatrice
src
interface
widgets
dialogs
dlg_edit_avatar.h
Generated by
1.18.0