2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-12-26 19:56:06 +00:00
|
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
#include "calcwindow.h"
|
|
|
|
#include "mainwindow.h"
|
2021-05-02 18:22:38 +00:00
|
|
|
#include "utils/Icons.h"
|
|
|
|
#include "utils/AppData.h"
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
#include "ui_calcwindow.h"
|
|
|
|
|
2021-05-18 15:59:18 +00:00
|
|
|
CalcWindow::CalcWindow(QWidget *parent)
|
|
|
|
: QMainWindow(parent)
|
|
|
|
, ui(new Ui::CalcWindow)
|
2020-10-07 10:36:04 +00:00
|
|
|
{
|
|
|
|
Qt::WindowFlags flags = this->windowFlags();
|
|
|
|
this->setWindowFlags(flags|Qt::WindowStaysOnTopHint); // on top
|
|
|
|
|
|
|
|
ui->setupUi(this);
|
2021-05-02 18:22:38 +00:00
|
|
|
this->setWindowIcon(icons()->icon("gnome-calc.png"));
|
2020-10-07 10:36:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CalcWindow::closeEvent(QCloseEvent *foo) {
|
|
|
|
emit closed();
|
|
|
|
}
|
|
|
|
|
|
|
|
CalcWindow::~CalcWindow() {
|
|
|
|
delete ui;
|
|
|
|
}
|