mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-03 17:39:49 +00:00
refactor: misc fixes
This commit is contained in:
parent
57b0be6ef2
commit
afbbeee44f
8 changed files with 6 additions and 13 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include "WindowManager.h"
|
#include "WindowManager.h"
|
||||||
|
|
||||||
|
#include <QApplication>
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#include <QTreeView>
|
#include <QTreeView>
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QApplication>
|
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
|
|
||||||
class SubaddressView : public QTreeView
|
class SubaddressView : public QTreeView
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
||||||
|
|
||||||
|
#include <QApplication>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QtNetwork>
|
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QFontDatabase>
|
#include <QFontDatabase>
|
||||||
|
#include <QTcpSocket>
|
||||||
|
|
||||||
#include "constants.h"
|
#include "constants.h"
|
||||||
#include "networktype.h"
|
#include "networktype.h"
|
||||||
|
@ -25,7 +26,7 @@ bool fileExists(const QString &path) {
|
||||||
QByteArray fileOpen(const QString &path) {
|
QByteArray fileOpen(const QString &path) {
|
||||||
QFile file(path);
|
QFile file(path);
|
||||||
if (!file.open(QFile::ReadOnly | QFile::Text)) {
|
if (!file.open(QFile::ReadOnly | QFile::Text)) {
|
||||||
return QByteArray();
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray data = file.readAll();
|
QByteArray data = file.readAll();
|
||||||
|
@ -37,7 +38,7 @@ QByteArray fileOpenQRC(const QString &path) {
|
||||||
QFile file(path);
|
QFile file(path);
|
||||||
if (!file.open(QIODevice::ReadOnly)) {
|
if (!file.open(QIODevice::ReadOnly)) {
|
||||||
qDebug() << "error: " << file.errorString();
|
qDebug() << "error: " << file.errorString();
|
||||||
return QByteArray();
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray data = file.readAll();
|
QByteArray data = file.readAll();
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QStandardItemModel>
|
#include <QStandardItemModel>
|
||||||
#include <QApplication>
|
|
||||||
#include <QTextCharFormat>
|
#include <QTextCharFormat>
|
||||||
|
|
||||||
#include "libwalletqt/Wallet.h"
|
#include "libwalletqt/Wallet.h"
|
||||||
|
|
|
@ -6,9 +6,7 @@
|
||||||
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QApplication>
|
#include <QHostAddress>
|
||||||
#include <QtNetwork>
|
|
||||||
#include <QNetworkReply>
|
|
||||||
|
|
||||||
#include "model/NodeModel.h"
|
#include "model/NodeModel.h"
|
||||||
#include "utils/Utils.h"
|
#include "utils/Utils.h"
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
#ifndef TAILSOS_H
|
#ifndef TAILSOS_H
|
||||||
#define TAILSOS_H
|
#define TAILSOS_H
|
||||||
|
|
||||||
#include <QApplication>
|
|
||||||
|
|
||||||
|
|
||||||
class TailsOS
|
class TailsOS
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -53,7 +53,6 @@
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QAbstractItemView>
|
#include <QAbstractItemView>
|
||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
#include <QApplication>
|
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QtGlobal>
|
|
||||||
|
|
||||||
#include "libwalletqt/WalletManager.h"
|
#include "libwalletqt/WalletManager.h"
|
||||||
#include "qrcode/QrCodeUtils.h"
|
#include "qrcode/QrCodeUtils.h"
|
||||||
|
|
Loading…
Reference in a new issue