forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.14' into 4.15
Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri Change-Id: I892ea0c3b42f61b9cd24fa5508ec181d8d245d29
This commit is contained in:
@@ -6,6 +6,6 @@ if (NOT APPLE AND NOT WIN32)
|
|||||||
applications
|
applications
|
||||||
metainfo
|
metainfo
|
||||||
DESTINATION
|
DESTINATION
|
||||||
share
|
${CMAKE_INSTALL_DATAROOTDIR}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
@@ -931,7 +931,10 @@ void HelpWidget::updateCloseButton()
|
|||||||
{
|
{
|
||||||
if (supportsPages()) {
|
if (supportsPages()) {
|
||||||
const bool closeOnReturn = LocalHelpManager::returnOnClose() && m_style == ModeWidget;
|
const bool closeOnReturn = LocalHelpManager::returnOnClose() && m_style == ModeWidget;
|
||||||
m_closeAction->setEnabled(closeOnReturn || m_viewerStack->count() > 1);
|
const bool hasMultiplePages = m_viewerStack->count() > 1;
|
||||||
|
m_closeAction->setEnabled(closeOnReturn || hasMultiplePages);
|
||||||
|
m_gotoPrevious->setEnabled(hasMultiplePages);
|
||||||
|
m_gotoNext->setEnabled(hasMultiplePages);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -81,7 +81,9 @@ void OpenPagesSwitcher::gotoPreviousPage()
|
|||||||
void OpenPagesSwitcher::selectAndHide()
|
void OpenPagesSwitcher::selectAndHide()
|
||||||
{
|
{
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
emit setCurrentPage(m_openPagesWidget->currentIndex());
|
QModelIndex index = m_openPagesWidget->currentIndex();
|
||||||
|
if (index.isValid())
|
||||||
|
emit setCurrentPage(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenPagesSwitcher::selectCurrentPage(int index)
|
void OpenPagesSwitcher::selectCurrentPage(int index)
|
||||||
|
@@ -66,10 +66,12 @@ def startQC(additionalParameters=None, withPreparedSettingsPath=True, closeLinkT
|
|||||||
appWithOptions.extend(('-platform', 'windows:dialogs=none'))
|
appWithOptions.extend(('-platform', 'windows:dialogs=none'))
|
||||||
test.log("Starting now: %s" % ' '.join(appWithOptions))
|
test.log("Starting now: %s" % ' '.join(appWithOptions))
|
||||||
appContext = startApplication(' '.join(appWithOptions))
|
appContext = startApplication(' '.join(appWithOptions))
|
||||||
if closeLinkToQt:
|
if closeLinkToQt or cancelTour:
|
||||||
clickButton(waitForObject(":*Qt Creator.Do Not Show Again_QToolButton"))
|
progressBarWait(3000) # wait for the "Updating documentation" progress bar
|
||||||
if cancelTour:
|
if closeLinkToQt:
|
||||||
clickButton(waitForObject(":*Qt Creator.Do Not Show Again_QToolButton"))
|
clickButton(waitForObject(":*Qt Creator.Do Not Show Again_QToolButton"))
|
||||||
|
if cancelTour:
|
||||||
|
clickButton(waitForObject(":*Qt Creator.Do Not Show Again_QToolButton"))
|
||||||
return appContext;
|
return appContext;
|
||||||
|
|
||||||
def startedWithoutPluginError():
|
def startedWithoutPluginError():
|
||||||
|
Reference in New Issue
Block a user