From ed88d77268967fd3f4db9106a37739cc2937cf04 Mon Sep 17 00:00:00 2001 From: Keshav Bhatt Date: Mon, 28 Feb 2022 18:25:49 +0530 Subject: version 3.0 --- src/WhatsApp.pro | 2 +- src/common.h | 5 ++++- src/mainwindow.cpp | 2 +- src/settingswidget.cpp | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/WhatsApp.pro b/src/WhatsApp.pro index c7d256f..103032b 100644 --- a/src/WhatsApp.pro +++ b/src/WhatsApp.pro @@ -43,7 +43,7 @@ CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT # Set program version -VERSION = 2.0 +VERSION = 3.0 DEFINES += VERSIONSTR=\\\"$${VERSION}\\\" SOURCES += \ diff --git a/src/common.h b/src/common.h index 261ee64..92a67c2 100644 --- a/src/common.h +++ b/src/common.h @@ -2,6 +2,9 @@ #define COMMON_H #include -QString defaultUserAgentStr = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.4389.114 Safari/537.36"; +//QString defaultUserAgentStr = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.4389.114 Safari/537.36"; + +QString defaultUserAgentStr = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"; #endif // COMMON_H + diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9f7e187..216ccd6 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -707,7 +707,7 @@ void MainWindow::fullScreenRequested(QWebEngineFullScreenRequest request) { } void MainWindow::handleWebViewTitleChanged(QString title) { - setWindowTitle(title); + setWindowTitle( QApplication::applicationName() +": "+ title); if (notificationsTitleRegExp.exactMatch(title)) { if (notificationsTitleRegExp.isEmpty() == false) { diff --git a/src/settingswidget.cpp b/src/settingswidget.cpp index 5903491..ba42372 100644 --- a/src/settingswidget.cpp +++ b/src/settingswidget.cpp @@ -387,7 +387,7 @@ void SettingsWidget::on_notificationCombo_currentIndexChanged(int index) { } void SettingsWidget::on_tryNotification_clicked() { - emit notify("Test Notification"); + emit notify("This is a test notification..."); } void SettingsWidget::on_automaticThemeCheckBox_toggled(bool checked) { -- cgit v1.2.3