MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / QuickRefactorDialog

Method QuickRefactorDialog

widgets/QuickRefactorDialog.cpp:82–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82QuickRefactorDialog::QuickRefactorDialog(QWidget *parent, const QString &lastInstructions)
83 : QDialog(parent)
84 , m_lastInstructions(lastInstructions)
85{
86 setWindowTitle(Tr::tr("Quick Refactor"));
87 setupUi();
88
89 if (!m_lastInstructions.isEmpty()) {
90 m_instructionEdit->setPlainText(m_lastInstructions);
91 m_instructionEdit->selectAll();
92 }
93
94 QTimer::singleShot(0, this, &QuickRefactorDialog::updateDialogSize);
95 m_instructionEdit->installEventFilter(this);
96 m_commandsComboBox->installEventFilter(this);
97 updateDialogSize();
98
99 m_instructionEdit->setFocus();
100}
101
102void QuickRefactorDialog::setupUi()
103{

Callers

nothing calls this directly

Calls 2

setFocusMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected