From e38036524fdb050fcc6739d69360acf5805762ce Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 30 Apr 2022 16:18:36 +0200 Subject: Add title field to qookie-cast network package. Add tabs to Qookie-cast client. --- src/qookie-cast-client.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'src/qookie-cast-client.h') 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 #include - -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) -// Qt4 support -#include -using WebView = QWebView; -#else -#include -using WebView = QTextEdit; -#endif +#include 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); }; + -- cgit v1.2.3