1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/widget/form/settingsform.h

49 lines
984 B
C
Raw Normal View History

2014-06-25 04:11:11 +08:00
#ifndef SETTINGSFORM_H
#define SETTINGSFORM_H
#include <QVBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QString>
#include <QObject>
#include <QSpacerItem>
2014-07-02 06:47:06 +08:00
#include <QCheckBox>
#include <QPushButton>
#include <QTextEdit>
#include "widget/tool/clickablelabel.h"
2014-06-25 04:11:11 +08:00
#include "ui_widget.h"
#include "widget/selfcamview.h"
2014-06-25 04:11:11 +08:00
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();
2014-07-02 06:47:06 +08:00
void onEnableIPv6Updated();
2014-07-05 01:22:43 +08:00
void onUseTranslationUpdated();
void copyIdClicked();
2014-06-25 04:11:11 +08:00
private:
QLabel headLabel, nameLabel, statusTextLabel;
QTextEdit id;
ClickableLabel idLabel;
QPushButton videoTest;
2014-07-05 01:22:43 +08:00
QCheckBox enableIPv6, useTranslations;
2014-06-25 04:11:11 +08:00
QVBoxLayout layout, headLayout;
QWidget *main, *head;
public:
QLineEdit name, statusText;
};
#endif // SETTINGSFORM_H