mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 23:31:32 +02:00
Offline transaction signing
This commit is contained in:
+10
-1
@@ -68,7 +68,7 @@ QByteArray Utils::fileOpenQRC(const QString &path) {
|
||||
bool Utils::fileWrite(const QString &path, const QString &data) {
|
||||
QFile file(path);
|
||||
if(file.open(QIODevice::WriteOnly)){
|
||||
QTextStream out(&file); out << data << endl;
|
||||
QTextStream out(&file); out << data << Qt::endl;
|
||||
file.close();
|
||||
return true;
|
||||
}
|
||||
@@ -362,6 +362,15 @@ void Utils::copyToClipboard(const QString &string){
|
||||
#endif
|
||||
}
|
||||
|
||||
QString Utils::copyFromClipboard() {
|
||||
QClipboard * clipboard = QApplication::clipboard();
|
||||
if (!clipboard) {
|
||||
qWarning() << "Unable to access clipboard";
|
||||
return "";
|
||||
}
|
||||
return clipboard->text();
|
||||
}
|
||||
|
||||
QString Utils::blockExplorerLink(const QString &blockExplorer, NetworkType::Type nettype, const QString &txid) {
|
||||
if (blockExplorer == "exploremonero.com") {
|
||||
if (nettype == NetworkType::MAINNET) {
|
||||
|
||||
Reference in New Issue
Block a user