forked from qt-creator/qt-creator
ClearCase: Partially move plugin pimpl to .cpp
Unfortuately, some deep accesses are not easy to get rid of. Make them available by static functions in the plugin itself. Definitely not the favorite setup, but allows to proceed with the QObject removals. Change-Id: Idc1624d2a4751b15159c3e36dcf8d2d476550167 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -65,7 +65,7 @@ SettingsPageWidget::SettingsPageWidget()
|
||||
m_ui.commandPathChooser->setExpectedKind(PathChooser::ExistingCommand);
|
||||
m_ui.commandPathChooser->setHistoryCompleter(QLatin1String("ClearCase.Command.History"));
|
||||
|
||||
ClearCaseSettings s = ClearCasePluginPrivate::instance()->settings();
|
||||
const ClearCaseSettings &s = ClearCasePlugin::settings();
|
||||
|
||||
m_ui.commandPathChooser->setPath(s.ccCommand);
|
||||
m_ui.timeOutSpinBox->setValue(s.timeOutS);
|
||||
@@ -117,7 +117,7 @@ void SettingsPageWidget::apply()
|
||||
rc.indexOnlyVOBs = m_ui.indexOnlyVOBsEdit->text();
|
||||
rc.extDiffAvailable = m_ui.externalDiffRadioButton->isEnabled();
|
||||
|
||||
ClearCasePluginPrivate::instance()->setSettings(rc);
|
||||
ClearCasePlugin::setSettings(rc);
|
||||
}
|
||||
|
||||
ClearCaseSettingsPage::ClearCaseSettingsPage(QObject *parent)
|
||||
|
||||
Reference in New Issue
Block a user