mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
3aae8dcde7
Fixes #42
48 lines
931 B
C++
48 lines
931 B
C++
#ifndef SETTINGSFORM_H
|
|
#define SETTINGSFORM_H
|
|
|
|
#include <QVBoxLayout>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QString>
|
|
#include <QObject>
|
|
#include <QSpacerItem>
|
|
#include <QCheckBox>
|
|
#include <QPushButton>
|
|
#include <QTextEdit>
|
|
#include "widget/tool/clickablelabel.h"
|
|
#include "ui_widget.h"
|
|
#include "widget/selfcamview.h"
|
|
|
|
class SettingsForm : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SettingsForm();
|
|
~SettingsForm();
|
|
|
|
void show(Ui::Widget& ui);
|
|
|
|
public slots:
|
|
void setFriendAddress(const QString& friendAddress);
|
|
|
|
private slots:
|
|
void onTestVideoClicked();
|
|
void onEnableIPv6Updated();
|
|
void copyIdClicked();
|
|
|
|
private:
|
|
QLabel headLabel, nameLabel, statusTextLabel;
|
|
QTextEdit id;
|
|
ClickableLabel idLabel;
|
|
QPushButton videoTest;
|
|
QCheckBox enableIPv6;
|
|
QVBoxLayout layout, headLayout;
|
|
QWidget *main, *head;
|
|
|
|
public:
|
|
QLineEdit name, statusText;
|
|
};
|
|
|
|
#endif // SETTINGSFORM_H
|