1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

CookieManager: Change to QDialog

This commit is contained in:
David Rosca 2018-02-09 17:55:27 +01:00
parent 6f880b43cf
commit f5390ed619
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
6 changed files with 12 additions and 12 deletions

View File

@ -309,7 +309,7 @@ void MainMenu::showDownloadManager()
void MainMenu::showCookieManager() void MainMenu::showCookieManager()
{ {
CookieManager* m = new CookieManager(); CookieManager* m = new CookieManager(m_window);
m->show(); m->show();
m->raise(); m->raise();
} }

View File

@ -1,6 +1,6 @@
/* ============================================================ /* ============================================================
* Falkon - Qt web browser * Falkon - Qt web browser
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com> * Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -32,8 +32,8 @@
#include <QInputDialog> #include <QInputDialog>
#include <QCloseEvent> #include <QCloseEvent>
CookieManager::CookieManager() CookieManager::CookieManager(QWidget *parent)
: QWidget() : QDialog(parent)
, ui(new Ui::CookieManager) , ui(new Ui::CookieManager)
{ {
setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_DeleteOnClose);

View File

@ -1,6 +1,6 @@
/* ============================================================ /* ============================================================
* Falkon - Qt web browser * Falkon - Qt web browser
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com> * Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -18,7 +18,7 @@
#ifndef COOKIEMANAGER_H #ifndef COOKIEMANAGER_H
#define COOKIEMANAGER_H #define COOKIEMANAGER_H
#include <QWidget> #include <QDialog>
#include "qzcommon.h" #include "qzcommon.h"
@ -32,12 +32,12 @@ class QNetworkCookie;
class BrowserWindow; class BrowserWindow;
class FALKON_EXPORT CookieManager : public QWidget class FALKON_EXPORT CookieManager : public QDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit CookieManager(); explicit CookieManager(QWidget *parent = nullptr);
~CookieManager(); ~CookieManager();
private slots: private slots:

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>CookieManager</class> <class>CookieManager</class>
<widget class="QWidget" name="CookieManager"> <widget class="QDialog" name="CookieManager">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>

View File

@ -1,6 +1,6 @@
/* ============================================================ /* ============================================================
* Falkon - Qt web browser * Falkon - Qt web browser
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com> * Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -174,7 +174,7 @@ void ClearPrivateData::optimizeDb()
void ClearPrivateData::showCookieManager() void ClearPrivateData::showCookieManager()
{ {
CookieManager* dialog = new CookieManager(); CookieManager* dialog = new CookieManager(this);
dialog->show(); dialog->show();
} }

View File

@ -709,7 +709,7 @@ void Preferences::allowHtml5storageChanged(bool stat)
void Preferences::showCookieManager() void Preferences::showCookieManager()
{ {
CookieManager* dialog = new CookieManager(); CookieManager* dialog = new CookieManager(this);
dialog->show(); dialog->show();
} }