mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: connection to parent method in toxuri.cpp
This commit is contained in:
parent
431fd7bfa2
commit
3c513e2c53
|
@ -20,7 +20,6 @@
|
||||||
#include "src/net/toxuri.h"
|
#include "src/net/toxuri.h"
|
||||||
#include "src/core/core.h"
|
#include "src/core/core.h"
|
||||||
#include "src/widget/gui.h"
|
#include "src/widget/gui.h"
|
||||||
#include "src/widget/tool/friendrequestdialog.h"
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
|
@ -100,8 +99,8 @@ ToxURIDialog::ToxURIDialog(QWidget* parent, Core& _core)
|
||||||
buttonBox->addButton(tr("Send", "Send a friend request"), QDialogButtonBox::AcceptRole);
|
buttonBox->addButton(tr("Send", "Send a friend request"), QDialogButtonBox::AcceptRole);
|
||||||
buttonBox->addButton(tr("Cancel", "Don't send a friend request"), QDialogButtonBox::RejectRole);
|
buttonBox->addButton(tr("Cancel", "Don't send a friend request"), QDialogButtonBox::RejectRole);
|
||||||
|
|
||||||
connect(buttonBox, &QDialogButtonBox::accepted, this, &FriendRequestDialog::accept);
|
connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||||
connect(buttonBox, &QDialogButtonBox::rejected, this, &FriendRequestDialog::reject);
|
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||||
|
|
||||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user