2011-10-29 12:24:12 +02:00
|
|
|
/* ============================================================
|
|
|
|
* QupZilla - WebKit based browser
|
2014-01-11 16:11:42 +01:00
|
|
|
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
|
2011-10-29 12:24:12 +02:00
|
|
|
*
|
|
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
|
|
* ============================================================ */
|
2011-10-14 20:14:57 +02:00
|
|
|
#ifndef WEBINSPECTORDOCKWIDGET_H
|
|
|
|
#define WEBINSPECTORDOCKWIDGET_H
|
|
|
|
|
2015-01-27 11:01:52 +01:00
|
|
|
#if QTWEBENGINE_DISABLED
|
2011-10-14 20:14:57 +02:00
|
|
|
#include <QWebInspector>
|
2012-01-29 14:05:57 +01:00
|
|
|
|
2014-02-26 20:03:20 +01:00
|
|
|
#include "qzcommon.h"
|
2012-02-29 18:33:50 +01:00
|
|
|
|
2014-03-31 17:46:59 +02:00
|
|
|
class ToolButton;
|
2011-10-14 20:14:57 +02:00
|
|
|
|
2014-03-31 17:46:59 +02:00
|
|
|
class QUPZILLA_EXPORT WebInspector : public QWebInspector
|
2011-10-14 20:14:57 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2012-03-16 16:57:24 +01:00
|
|
|
|
2014-03-31 17:46:59 +02:00
|
|
|
public:
|
|
|
|
explicit WebInspector(QWidget* parent = 0);
|
2011-10-14 20:14:57 +02:00
|
|
|
|
2014-03-31 17:46:59 +02:00
|
|
|
private slots:
|
|
|
|
void updateCloseButton();
|
2014-04-01 16:34:47 +02:00
|
|
|
void hideInspector();
|
2011-10-14 20:14:57 +02:00
|
|
|
|
|
|
|
private:
|
2014-03-31 17:46:59 +02:00
|
|
|
void hideEvent(QHideEvent* event);
|
|
|
|
void resizeEvent(QResizeEvent* event);
|
2012-01-29 14:05:57 +01:00
|
|
|
|
2014-03-31 17:46:59 +02:00
|
|
|
ToolButton* m_closeButton;
|
2014-04-01 16:34:47 +02:00
|
|
|
bool m_blockHideEvent;
|
2011-10-14 20:14:57 +02:00
|
|
|
};
|
2015-01-27 11:01:52 +01:00
|
|
|
#endif
|
2011-10-14 20:14:57 +02:00
|
|
|
|
|
|
|
#endif // WEBINSPECTORDOCKWIDGET_H
|