2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Improve window extension by third column.

This commit is contained in:
John Preston
2017-11-16 20:43:52 +04:00
parent cf977cb41a
commit c872cd76e1
5 changed files with 79 additions and 25 deletions

View File

@@ -76,8 +76,11 @@ public:
}
void showRightColumn(object_ptr<TWidget> widget);
bool canExtendWidthBy(int addToWidth);
void tryToExtendWidthBy(int addToWidth);
int maximalExtendBy() const;
bool canExtendNoMove(int extendBy) const;
// Returns how much could the window get extended.
int tryToExtendWidthBy(int addToWidth);
virtual void updateTrayMenu(bool force = false) {
}
@@ -184,7 +187,7 @@ private:
base::Timer _inactivePressTimer;
base::Observable<void> _dragFinished;
};
} // namespace Window