mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 17:50:20 -06:00
40 lines
869 B
C++
40 lines
869 B
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2016, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
// WebViewWindow.h - Declaration of the custom web view widget
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef WEBVIEWWINDOW_H
|
|
#define WEBVIEWWINDOW_H
|
|
|
|
#include "pgAdmin4.h"
|
|
|
|
#if QT_VERSION >= 0x050000
|
|
#include <QtWebKitWidgets>
|
|
#else
|
|
#include <QWebView>
|
|
#endif
|
|
|
|
class WebViewWindow : public QWebView
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
WebViewWindow(QWidget *parent = NULL);
|
|
void setFirstLoadURL(const QString &url);
|
|
QString getFirstLoadURL() const;
|
|
void setTabIndex(const int &tabIndex);
|
|
int getTabIndex() const;
|
|
|
|
private:
|
|
QString m_url;
|
|
int m_tabIndex;
|
|
|
|
};
|
|
|
|
#endif // WEBVIEWWINDOW_H
|