From f44d8e916beb3e1059ba31e149de0cffbcaa02fd Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 30 Jan 2022 13:16:36 +0100 Subject: Remove a few now unused files --- src/ui/OverlayModal.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/ui/OverlayModal.h (limited to 'src/ui/OverlayModal.h') diff --git a/src/ui/OverlayModal.h b/src/ui/OverlayModal.h deleted file mode 100644 index 5e7ecc20..00000000 --- a/src/ui/OverlayModal.h +++ /dev/null @@ -1,40 +0,0 @@ -// SPDX-FileCopyrightText: 2017 Konstantinos Sideris -// SPDX-FileCopyrightText: 2021 Nheko Contributors -// SPDX-FileCopyrightText: 2022 Nheko Contributors -// -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -#include -#include -#include -#include - -#include "OverlayWidget.h" - -class OverlayModal : public OverlayWidget -{ -public: - OverlayModal(QWidget *parent); - - void setColor(QColor color) { color_ = color; } - void setDismissible(bool state) { isDismissible_ = state; } - - void setContentAlignment(QFlags flag) { layout_->setAlignment(flag); } - void setWidget(QWidget *widget); - -protected: - void paintEvent(QPaintEvent *event) override; - void keyPressEvent(QKeyEvent *event) override; - void mousePressEvent(QMouseEvent *event) override; - -private: - QWidget *content_; - QVBoxLayout *layout_; - - QColor color_; - - //! Decides whether or not the modal can be removed by clicking into it. - bool isDismissible_ = true; -}; -- cgit 1.5.1