fakevim: code cosmetics

This commit is contained in:
hjk
2010-01-22 16:51:04 +01:00
parent 4d14568afc
commit 4537e2be6c
2 changed files with 6 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ class ActionContainerPrivate;
class MainWindow; class MainWindow;
class CommandPrivate; class CommandPrivate;
class CORE_EXPORT ActionManagerPrivate : public Core::ActionManager class ActionManagerPrivate : public Core::ActionManager
{ {
Q_OBJECT Q_OBJECT

View File

@@ -367,7 +367,7 @@ void FakeVimExCommandsPage::initialize()
if (s_exCommandMap.contains(name)) { if (s_exCommandMap.contains(name)) {
ci->m_regex = s_exCommandMap[name].pattern(); ci->m_regex = s_exCommandMap[name].pattern();
} else { } else {
ci->m_regex = ""; ci->m_regex.clear();
} }
item->setText(2, ci->m_regex); item->setText(2, ci->m_regex);
@@ -380,7 +380,7 @@ void FakeVimExCommandsPage::initialize()
void FakeVimExCommandsPage::commandChanged(QTreeWidgetItem *current) void FakeVimExCommandsPage::commandChanged(QTreeWidgetItem *current)
{ {
if (!current || !current->data(0, Qt::UserRole).isValid()) { if (!current || !current->data(0, Qt::UserRole).isValid()) {
m_ui.regexEdit->setText(""); m_ui.regexEdit->setText(QString());
m_ui.seqGrp->setEnabled(false); m_ui.seqGrp->setEnabled(false);
return; return;
} }
@@ -449,7 +449,7 @@ void FakeVimExCommandsPage::resetRegex()
if (s_defaultExCommandMap.contains(name)) if (s_defaultExCommandMap.contains(name))
setRegex(s_defaultExCommandMap[name].pattern()); setRegex(s_defaultExCommandMap[name].pattern());
else else
setRegex(""); setRegex(QString());
} }
} }
@@ -466,7 +466,7 @@ void FakeVimExCommandsPage::defaultAction()
if (s_defaultExCommandMap.contains(name)) { if (s_defaultExCommandMap.contains(name)) {
item->m_regex = s_defaultExCommandMap[name].pattern(); item->m_regex = s_defaultExCommandMap[name].pattern();
} else { } else {
item->m_regex = ""; item->m_regex.clear();
} }
item->m_item->setText(2, item->m_regex); item->m_item->setText(2, item->m_regex);
if (item->m_item == m_ui.commandList->currentItem()) if (item->m_item == m_ui.commandList->currentItem())
@@ -842,7 +842,7 @@ void FakeVimPluginPrivate::editorOpened(Core::IEditor *editor)
// pop up the bar // pop up the bar
if (theFakeVimSetting(ConfigUseFakeVim)->value().toBool()) if (theFakeVimSetting(ConfigUseFakeVim)->value().toBool())
showCommandBuffer(""); showCommandBuffer(QString());
} }
void FakeVimPluginPrivate::editorAboutToClose(Core::IEditor *editor) void FakeVimPluginPrivate::editorAboutToClose(Core::IEditor *editor)