mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
CookieManager: Change to QDialog
This commit is contained in:
parent
6f880b43cf
commit
f5390ed619
@ -309,7 +309,7 @@ void MainMenu::showDownloadManager()
|
||||
|
||||
void MainMenu::showCookieManager()
|
||||
{
|
||||
CookieManager* m = new CookieManager();
|
||||
CookieManager* m = new CookieManager(m_window);
|
||||
m->show();
|
||||
m->raise();
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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:
|
||||
|
@ -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>
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -709,7 +709,7 @@ void Preferences::allowHtml5storageChanged(bool stat)
|
||||
|
||||
void Preferences::showCookieManager()
|
||||
{
|
||||
CookieManager* dialog = new CookieManager();
|
||||
CookieManager* dialog = new CookieManager(this);
|
||||
dialog->show();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user