2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Allow inserting links with custom text.

Fixes #4737.
This commit is contained in:
John Preston
2018-05-26 17:58:21 +03:00
parent cca46448fe
commit 07d8dafa5e
13 changed files with 603 additions and 97 deletions

View File

@@ -12,6 +12,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "storage/localimageloader.h"
#include "storage/storage_media_prepare.h"
namespace Window {
class Controller;
} // namespace Window
namespace Ui {
template <typename Enum>
class Radioenum;
@@ -32,6 +36,7 @@ class SendFilesBox : public BoxContent {
public:
SendFilesBox(
QWidget*,
not_null<Window::Controller*> controller,
Storage::PreparedList &&list,
const TextWithTags &caption,
CompressConfirm compressed);
@@ -88,6 +93,8 @@ private:
bool canAddUrls(const QList<QUrl> &urls) const;
bool addFiles(not_null<const QMimeData*> data);
not_null<Window::Controller*> _controller;
QString _titleText;
int _titleHeight = 0;