2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 00:25:17 +00:00

Build with QT_NO_KEYWORDS

This commit is contained in:
Ilya Fedin
2021-03-03 22:22:42 +04:00
committed by John Preston
parent a29ff093f6
commit 23272430b4
37 changed files with 133 additions and 133 deletions

View File

@@ -1163,7 +1163,7 @@ void InnerWidget::finishReorderPinned() {
_aboveIndex = -1;
}
if (wasDragging) {
emit draggingScrollDelta(0);
draggingScrollDelta(0);
}
}
@@ -1253,7 +1253,7 @@ bool InnerWidget::updateReorderPinned(QPoint localPosition) {
return 0;
}();
emit draggingScrollDelta(delta);
draggingScrollDelta(delta);
return true;
}
@@ -1466,7 +1466,7 @@ void InnerWidget::handleChatListEntryRefreshes() {
&& (from != to)
&& (entry->folder() == _openedFolder)
&& (_state == WidgetState::Default)) {
emit dialogMoved(from, to);
dialogMoved(from, to);
}
if (event.existenceChanged) {
@@ -1878,7 +1878,7 @@ void InnerWidget::applyFilterUpdate(QString newFilter, bool force) {
clearMouseSelection(true);
}
if (_state != WidgetState::Default) {
emit searchMessages();
searchMessages();
}
}
@@ -2214,7 +2214,7 @@ void InnerWidget::refresh(bool toTop) {
resize(width(), h);
if (toTop) {
stopReorderPinned();
emit mustScrollTo(0, 0);
mustScrollTo(0, 0);
loadPeerPhotos();
}
_controller->dialogsListDisplayForced().set(
@@ -2438,7 +2438,7 @@ void InnerWidget::selectSkip(int32 direction) {
const auto fromY = (_collapsedSelected >= 0)
? (_collapsedSelected * st::dialogsImportantBarHeight)
: (dialogsOffset() + _selected->pos() * st::dialogsRowHeight);
emit mustScrollTo(fromY, fromY + st::dialogsRowHeight);
mustScrollTo(fromY, fromY + st::dialogsRowHeight);
}
} else if (_state == WidgetState::Filtered) {
if (_hashtagResults.empty() && _filterResults.empty() && _peerSearchResults.empty() && _searchResults.empty()) {
@@ -2487,13 +2487,13 @@ void InnerWidget::selectSkip(int32 direction) {
}
}
if (base::in_range(_hashtagSelected, 0, _hashtagResults.size())) {
emit mustScrollTo(_hashtagSelected * st::mentionHeight, (_hashtagSelected + 1) * st::mentionHeight);
mustScrollTo(_hashtagSelected * st::mentionHeight, (_hashtagSelected + 1) * st::mentionHeight);
} else if (base::in_range(_filteredSelected, 0, _filterResults.size())) {
emit mustScrollTo(filteredOffset() + _filteredSelected * st::dialogsRowHeight, filteredOffset() + (_filteredSelected + 1) * st::dialogsRowHeight);
mustScrollTo(filteredOffset() + _filteredSelected * st::dialogsRowHeight, filteredOffset() + (_filteredSelected + 1) * st::dialogsRowHeight);
} else if (base::in_range(_peerSearchSelected, 0, _peerSearchResults.size())) {
emit mustScrollTo(peerSearchOffset() + _peerSearchSelected * st::dialogsRowHeight + (_peerSearchSelected ? 0 : -st::searchedBarHeight), peerSearchOffset() + (_peerSearchSelected + 1) * st::dialogsRowHeight);
mustScrollTo(peerSearchOffset() + _peerSearchSelected * st::dialogsRowHeight + (_peerSearchSelected ? 0 : -st::searchedBarHeight), peerSearchOffset() + (_peerSearchSelected + 1) * st::dialogsRowHeight);
} else {
emit mustScrollTo(searchedOffset() + _searchedSelected * st::dialogsRowHeight + (_searchedSelected ? 0 : -st::searchedBarHeight), searchedOffset() + (_searchedSelected + 1) * st::dialogsRowHeight);
mustScrollTo(searchedOffset() + _searchedSelected * st::dialogsRowHeight + (_searchedSelected ? 0 : -st::searchedBarHeight), searchedOffset() + (_searchedSelected + 1) * st::dialogsRowHeight);
}
}
update();
@@ -2522,7 +2522,7 @@ void InnerWidget::scrollToEntry(const RowDescriptor &entry) {
}
}
if (fromY >= 0) {
emit mustScrollTo(fromY, fromY + st::dialogsRowHeight);
mustScrollTo(fromY, fromY + st::dialogsRowHeight);
}
}
@@ -2556,7 +2556,7 @@ void InnerWidget::selectSkipPage(int32 pixels, int32 direction) {
const auto fromY = (_collapsedSelected >= 0)
? (_collapsedSelected * st::dialogsImportantBarHeight)
: (dialogsOffset() + _selected->pos() * st::dialogsRowHeight);
emit mustScrollTo(fromY, fromY + st::dialogsRowHeight);
mustScrollTo(fromY, fromY + st::dialogsRowHeight);
}
} else {
return selectSkip(direction * toSkip);
@@ -2641,7 +2641,7 @@ void InnerWidget::switchToFilter(FilterId filterId) {
filterId = 0;
}
if (_filterId == filterId) {
emit mustScrollTo(0, 0);
mustScrollTo(0, 0);
return;
}
if (_openedFolder) {
@@ -2674,11 +2674,11 @@ bool InnerWidget::chooseHashtag() {
}
cSetRecentSearchHashtags(recent);
session().local().writeRecentHashtagsAndBots();
emit refreshHashtags();
refreshHashtags();
selectByMouse(QCursor::pos());
} else {
session().local().saveRecentSearchHashtags('#' + hashtag->tag);
emit completeHashtag(hashtag->tag);
completeHashtag(hashtag->tag);
}
return true;
}