forked from qt-creator/qt-creator
VcsBase: Add a button to reset VCS information cache
Task-number: QTCREATORBUG-14454 Change-Id: I958f58b8b19a8a9453e869daaf0a25ccf6fe57b3 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -65,6 +65,8 @@ CommonSettingsWidget::CommonSettingsWidget(QWidget *parent) :
|
||||
|
||||
connect(Core::VcsManager::instance(), &Core::VcsManager::configurationChanged,
|
||||
this, &CommonSettingsWidget::updatePath);
|
||||
connect(m_ui->cacheResetButton, &QPushButton::clicked,
|
||||
this, [] { Core::VcsManager::clearVersionControlCache(); });
|
||||
}
|
||||
|
||||
CommonSettingsWidget::~CommonSettingsWidget()
|
||||
|
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>322</width>
|
||||
<height>180</height>
|
||||
<width>350</width>
|
||||
<height>212</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
@@ -119,6 +119,32 @@ should a repository require SSH-authentication (see documentation on SSH and the
|
||||
<item row="5" column="1">
|
||||
<widget class="Utils::PathChooser" name="sshPromptChooser" native="true"/>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QPushButton" name="cacheResetButton">
|
||||
<property name="toolTip">
|
||||
<string>Reset information about which version control system handles which directory.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reset VCS Cache</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
Reference in New Issue
Block a user