mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Fix build for macOS.
This commit is contained in:
parent
f107866b42
commit
a08dd1f6e1
@ -115,7 +115,7 @@ public:
|
||||
const Window::SectionShow ¶ms) override;
|
||||
std::unique_ptr<Window::SectionMemento> createMemento() override;
|
||||
|
||||
rpl::producer<int> desiredHeightValue() const;
|
||||
rpl::producer<int> desiredHeightValue() const override;
|
||||
|
||||
void updateInternalState(not_null<Memento*> memento);
|
||||
void saveState(not_null<Memento*> memento);
|
||||
@ -127,7 +127,7 @@ public:
|
||||
~WrapWidget();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
void resizeEvent(QResizeEvent *e) override;
|
||||
|
||||
void doSetInnerFocus() override;
|
||||
void showFinishedHook() override;
|
||||
|
@ -189,7 +189,7 @@ private:
|
||||
BaseLayout *_itemUnderCursor = nullptr;
|
||||
BaseLayout *_itemUnderPress = nullptr;
|
||||
HistoryCursorState _mouseCursorState = HistoryDefaultCursorState;
|
||||
uint16 _mouseTextSymbol = 0;
|
||||
// uint16 _mouseTextSymbol = 0;
|
||||
bool _pressWasInactive = false;
|
||||
using SelectedItems = std::map<
|
||||
UniversalMsgId,
|
||||
@ -199,7 +199,7 @@ private:
|
||||
style::cursor _cursor = style::cur_default;
|
||||
BaseLayout *_dragSelFrom = nullptr;
|
||||
BaseLayout *_dragSelTo = nullptr;
|
||||
bool _dragSelecting = false;
|
||||
// bool _dragSelecting = false;
|
||||
bool _wasSelectedText = false; // was some text selected in current drag action
|
||||
Ui::PopupMenu *_contextMenu = nullptr;
|
||||
ClickHandlerPtr _contextMenuLink;
|
||||
|
@ -332,6 +332,8 @@ void Photo::invalidateCache() {
|
||||
}
|
||||
}
|
||||
|
||||
Photo::~Photo() = default;
|
||||
|
||||
Video::Video(
|
||||
not_null<HistoryItem*> parent,
|
||||
not_null<DocumentData*> video)
|
||||
@ -537,6 +539,8 @@ void Video::updateStatusText() {
|
||||
}
|
||||
}
|
||||
|
||||
Video::~Video() = default;
|
||||
|
||||
Voice::Voice(
|
||||
not_null<HistoryItem*> parent,
|
||||
not_null<DocumentData*> voice,
|
||||
|
@ -90,7 +90,7 @@ public:
|
||||
void clickHandlerPressedChanged(const ClickHandlerPtr &action, bool pressed) override;
|
||||
|
||||
protected:
|
||||
not_null<HistoryItem*> _parent = nullptr;
|
||||
not_null<HistoryItem*> _parent;
|
||||
int _position = 0;
|
||||
|
||||
};
|
||||
@ -196,6 +196,8 @@ public:
|
||||
|
||||
void invalidateCache() override;
|
||||
|
||||
~Photo();
|
||||
|
||||
private:
|
||||
void ensureCheckboxCreated();
|
||||
|
||||
@ -225,6 +227,8 @@ public:
|
||||
|
||||
void invalidateCache() override;
|
||||
|
||||
~Video();
|
||||
|
||||
protected:
|
||||
float64 dataProgress() const override;
|
||||
bool dataFinished() const override;
|
||||
|
@ -29,8 +29,8 @@ FadeWrap<RpWidget>::FadeWrap(
|
||||
object_ptr<RpWidget> &&child,
|
||||
bool scaled)
|
||||
: Parent(parent, std::move(child))
|
||||
, _duration(st::fadeWrapDuration)
|
||||
, _animation(this, scaled) {
|
||||
, _animation(this, scaled)
|
||||
, _duration(st::fadeWrapDuration) {
|
||||
if (auto weak = wrapped()) {
|
||||
weak->show();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user