diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-04-30 16:18:36 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-05-26 18:41:21 +0200 |
commit | e38036524fdb050fcc6739d69360acf5805762ce (patch) | |
tree | 302693b83dac8a8abf0b9859b6e7d4bbdc1ea04e /src/qookie-cast-client.h | |
parent | 0243cbe0170a768f8f8998c6f7f234869c8c77e6 (diff) |
Add title field to qookie-cast network package. Add tabs to Qookie-cast client.
Diffstat (limited to 'src/qookie-cast-client.h')
-rw-r--r-- | src/qookie-cast-client.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/qookie-cast-client.h b/src/qookie-cast-client.h index 766b48b..e22b8e7 100644 --- a/src/qookie-cast-client.h +++ b/src/qookie-cast-client.h @@ -1,22 +1,14 @@ // -*- c++ -*- #include <QtCore> #include <QtNetwork> - -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) -// Qt4 support -#include <QWebView> -using WebView = QWebView; -#else -#include <QTextEdit> -using WebView = QTextEdit; -#endif +#include <QTabWidget> class Server : public QObject { Q_OBJECT public: - Server(WebView& webview, QObject *parent = 0); + Server(QTabWidget& tabs, QObject *parent = 0); signals: void dataReceived(QByteArray); @@ -28,7 +20,18 @@ private slots: private: QTcpServer *server; - WebView& webview; - QString html; - int size{-1}; + QTabWidget& tabs; + QByteArray payload; + int payload_size; +}; + +class MyTabs : public QTabWidget +{ + Q_OBJECT +public: + MyTabs(); + +public slots: + void doCloseIt(int index); }; + |