feather/src/CalcWindow.cpp

25 lines
608 B
C++
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2023-01-02 19:30:11 +00:00
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
2021-06-28 17:48:23 +00:00
#include "CalcWindow.h"
#include "ui_CalcWindow.h"
2021-06-28 17:48:23 +00:00
#include "utils/AppData.h"
#include "utils/Icons.h"
2021-05-18 15:59:18 +00:00
CalcWindow::CalcWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::CalcWindow)
{
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"));
}
void CalcWindow::closeEvent(QCloseEvent *foo) {
emit closed();
}
2021-06-27 12:13:05 +00:00
CalcWindow::~CalcWindow() = default;