mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-linux] cmainwindow: rename pointInTabs
This commit is contained in:
@ -1563,7 +1563,7 @@ namespace Drop {
|
||||
QObject::connect(drop_timer, &QTimer::timeout, []{
|
||||
CMainWindow * main_window = CAscApplicationManagerWrapper::mainWindow();
|
||||
QPoint current_cursor = QCursor::pos();
|
||||
if ( main_window->pointInTabs(current_cursor) ) {
|
||||
if ( main_window->canPinTabAtPoint(current_cursor) ) {
|
||||
if ( current_cursor == last_cursor_pos ) {
|
||||
drop_timer->stop();
|
||||
|
||||
@ -1578,7 +1578,7 @@ namespace Drop {
|
||||
});
|
||||
}
|
||||
|
||||
if ( main_window->pointInTabs(pt) ) {
|
||||
if ( main_window->canPinTabAtPoint(pt) ) {
|
||||
if ( !drop_timer->isActive() )
|
||||
drop_timer->start(drop_timeout);
|
||||
|
||||
|
||||
@ -187,7 +187,7 @@ int CMainWindow::editorsCount(const std::wstring& portal)
|
||||
return tabWidget()->count(portal, true);
|
||||
}
|
||||
|
||||
bool CMainWindow::pointInTabs(const QPoint& pt)
|
||||
bool CMainWindow::canPinTabAtPoint(const QPoint& pt)
|
||||
{
|
||||
QRect _rc_title(m_pMainPanel->geometry());
|
||||
_rc_title.setHeight(tabWidget()->tabBar()->height());
|
||||
|
||||
@ -63,7 +63,7 @@ public:
|
||||
int attachEditor(QWidget *, const QPoint&);
|
||||
int editorsCount();
|
||||
int editorsCount(const std::wstring& portal);
|
||||
bool pointInTabs(const QPoint& pt);
|
||||
bool canPinTabAtPoint(const QPoint& pt);
|
||||
bool holdView(int id) const;
|
||||
virtual void applyTheme(const std::wstring&) final;
|
||||
virtual void focus() final;
|
||||
|
||||
Reference in New Issue
Block a user