Files
pgadmin4/runtime/WebViewWindow.h
T

39 lines
869 B
C++
Raw Normal View History

2016-01-18 14:33:28 +00:00
//////////////////////////////////////////////////////////////////////////
//
// 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"
2016-02-23 09:10:49 +00:00
#if QT_VERSION >= 0x050000
2016-01-18 14:33:28 +00:00
#include <QtWebKitWidgets>
2016-02-23 09:10:49 +00:00
#else
#include <QWebView>
#endif
2016-01-18 14:33:28 +00:00
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