From 43f69d8f346bc8bc311fe8549d360c6b33ba58f1 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 1 Mar 2018 19:10:35 +0100 Subject: [PATCH] Remove Frame class --- src/lib/CMakeLists.txt | 1 - src/lib/other/siteinfowidget.ui | 10 +--------- src/lib/tools/frame.cpp | 33 ------------------------------- src/lib/tools/frame.h | 35 --------------------------------- 4 files changed, 1 insertion(+), 78 deletions(-) delete mode 100644 src/lib/tools/frame.cpp delete mode 100644 src/lib/tools/frame.h diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 5a8a7d500..ffb21d17a 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -195,7 +195,6 @@ set(SRCS ${SRCS} tools/docktitlebarwidget.cpp tools/enhancedmenu.cpp tools/focusselectlineedit.cpp - tools/frame.cpp tools/headerview.cpp tools/horizontallistwidget.cpp tools/html5permissions/html5permissionsdialog.cpp diff --git a/src/lib/other/siteinfowidget.ui b/src/lib/other/siteinfowidget.ui index 6c9a66247..b701c3a56 100644 --- a/src/lib/other/siteinfowidget.ui +++ b/src/lib/other/siteinfowidget.ui @@ -21,7 +21,7 @@ 0 - + QFrame::NoFrame @@ -98,14 +98,6 @@ - - - Frame - QFrame -
frame.h
- 1 -
-
diff --git a/src/lib/tools/frame.cpp b/src/lib/tools/frame.cpp deleted file mode 100644 index c9a2383d8..000000000 --- a/src/lib/tools/frame.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* ============================================================ -* Falkon - Qt web browser -* Copyright (C) 2010-2014 David Rosca -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . -* ============================================================ */ -#include "frame.h" - -#include - -Frame::Frame(QWidget* parent) - : QFrame(parent) -{ -} - -void Frame::mousePressEvent(QMouseEvent* event) -{ - //If we proccess mouse events, then menu from bookmarkswidget - //is going to close() with clicking in free space - Q_UNUSED(event) - event->accept(); -} diff --git a/src/lib/tools/frame.h b/src/lib/tools/frame.h deleted file mode 100644 index 1a0d9be3e..000000000 --- a/src/lib/tools/frame.h +++ /dev/null @@ -1,35 +0,0 @@ -/* ============================================================ -* Falkon - Qt web browser -* Copyright (C) 2010-2014 David Rosca -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . -* ============================================================ */ -#ifndef FRAME_H -#define FRAME_H - -#include - -#include "qzcommon.h" - -class FALKON_EXPORT Frame : public QFrame -{ -public: - explicit Frame(QWidget* parent = 0); - -private: - void mousePressEvent(QMouseEvent* event); - -}; - -#endif // FRAME_H