Use UrlClickHandler::Open instead of File::OpenUrl

This commit is contained in:
Ilya Fedin 2020-10-29 01:29:48 +04:00 committed by John Preston
parent bbc59c1a99
commit bb94507af1
4 changed files with 5 additions and 7 deletions

View File

@ -14,7 +14,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/widgets/buttons.h"
#include "ui/widgets/labels.h"
#include "ui/text/text_utilities.h"
#include "core/file_utilities.h"
#include "base/platform/base_platform_info.h"
#include "core/click_handler_types.h"
#include "core/update_checker.h"
@ -108,7 +107,7 @@ void AboutBox::showVersionHistory() {
Ui::show(Box<InformBox>("The link to the current private alpha version of Telegram Desktop was copied to the clipboard."));
} else {
File::OpenUrl(qsl("https://desktop.telegram.org/changelog"));
UrlClickHandler::Open(qsl("https://desktop.telegram.org/changelog"));
}
}

View File

@ -79,7 +79,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtWidgets/QDesktopWidget>
#include <QtCore/QMimeDatabase>
#include <QtGui/QGuiApplication>
#include <QtGui/QDesktopServices>
namespace Core {
namespace {

View File

@ -8,7 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history_location_manager.h"
#include "mainwidget.h"
#include "core/file_utilities.h"
#include "core/click_handler_types.h"
#include "lang/lang_keys.h"
#include "ui/image/image.h"
#include "data/data_file_origin.h"
@ -24,7 +24,7 @@ QString LocationClickHandler::copyToClipboardContextItemText() const {
void LocationClickHandler::onClick(ClickContext context) const {
if (!psLaunchMaps(_point)) {
File::OpenUrl(_text);
UrlClickHandler::Open(_text);
}
}

View File

@ -34,7 +34,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "api/api_sensitive_content.h"
#include "api/api_global_privacy.h"
#include "window/window_session_controller.h"
#include "core/file_utilities.h"
#include "core/click_handler_types.h"
#include "base/call_delayed.h"
#include "facades.h"
#include "app.h"
@ -274,7 +274,7 @@ void SetupInterfaceScale(
}
void OpenFaq() {
File::OpenUrl(telegramFaqLink());
UrlClickHandler::Open(telegramFaqLink());
}
void SetupFaq(not_null<Ui::VerticalLayout*> container, bool icon) {