feather/src/calcwindow.cpp

29 lines
633 B
C++
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2020-12-26 19:56:06 +00:00
// Copyright (c) 2020-2021, The Monero Project.
#include "calcwindow.h"
#include "mainwindow.h"
2021-05-02 18:22:38 +00:00
#include "utils/Icons.h"
#include "utils/AppData.h"
#include "ui_calcwindow.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();
}
CalcWindow::~CalcWindow() {
delete ui;
}