1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02: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()
{
CookieManager* m = new CookieManager();
CookieManager* m = new CookieManager(m_window);
m->show();
m->raise();
}

View File

@ -1,6 +1,6 @@
/* ============================================================
* 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
* it under the terms of the GNU General Public License as published by
@ -32,8 +32,8 @@
#include <QInputDialog>
#include <QCloseEvent>
CookieManager::CookieManager()
: QWidget()
CookieManager::CookieManager(QWidget *parent)
: QDialog(parent)
, ui(new Ui::CookieManager)
{
setAttribute(Qt::WA_DeleteOnClose);

View File

@ -1,6 +1,6 @@
/* ============================================================
* 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
* it under the terms of the GNU General Public License as published by
@ -18,7 +18,7 @@
#ifndef COOKIEMANAGER_H
#define COOKIEMANAGER_H
#include <QWidget>
#include <QDialog>
#include "qzcommon.h"
@ -32,12 +32,12 @@ class QNetworkCookie;
class BrowserWindow;
class FALKON_EXPORT CookieManager : public QWidget
class FALKON_EXPORT CookieManager : public QDialog
{
Q_OBJECT
public:
explicit CookieManager();
explicit CookieManager(QWidget *parent = nullptr);
~CookieManager();
private slots:

View File

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

View File

@ -1,6 +1,6 @@
/* ============================================================
* 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
* it under the terms of the GNU General Public License as published by
@ -174,7 +174,7 @@ void ClearPrivateData::optimizeDb()
void ClearPrivateData::showCookieManager()
{
CookieManager* dialog = new CookieManager();
CookieManager* dialog = new CookieManager(this);
dialog->show();
}

View File

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