2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2023-01-02 19:30:11 +00:00
|
|
|
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-06-28 17:48:23 +00:00
|
|
|
#include "CalcWindow.h"
|
|
|
|
#include "ui_CalcWindow.h"
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-06-28 17:48:23 +00:00
|
|
|
#include "utils/AppData.h"
|
|
|
|
#include "utils/Icons.h"
|
2020-10-07 10:36:04 +00:00
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2021-06-27 12:13:05 +00:00
|
|
|
CalcWindow::~CalcWindow() = default;
|