diff options
| author | 2010-07-14 13:31:37 +0000 | |
|---|---|---|
| committer | 2010-07-14 13:31:37 +0000 | |
| commit | 484d98ded2038f4dd262d546b4e0fe460d907bd4 (patch) | |
| tree | 4e9541dab6a937b8f580912e8c7d6decce42ef68 /src/modules/raweditor/raweditor.cpp | |
| parent | updated some mediaplayer homepage urls and some other typos, thanks xoffice (diff) | |
| download | KVIrc-484d98ded2038f4dd262d546b4e0fe460d907bd4.tar.gz KVIrc-484d98ded2038f4dd262d546b4e0fe460d907bd4.tar.bz2 KVIrc-484d98ded2038f4dd262d546b4e0fe460d907bd4.zip | |
Rewrite parts of the regchan module in order to
avoid the heavy usage of pointers.
Add some new nice debug macros and tools.
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4669 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/raweditor/raweditor.cpp')
| -rw-r--r-- | src/modules/raweditor/raweditor.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/raweditor/raweditor.cpp b/src/modules/raweditor/raweditor.cpp index 005fa9989..c6e842e19 100644 --- a/src/modules/raweditor/raweditor.cpp +++ b/src/modules/raweditor/raweditor.cpp @@ -144,7 +144,7 @@ void KviRawEditor::customContextMenuRequested(const QPoint &pos) { QTreeWidgetItem *it; it=(QTreeWidgetItem *)m_pTreeWidget->itemAt(pos); - __range_valid(m_bOneTimeSetupDone); + KVI_ASSERT(m_bOneTimeSetupDone); m_pContextPopup->clear(); if(it) { @@ -185,7 +185,7 @@ void KviRawEditor::customContextMenuRequested(const QPoint &pos) void KviRawEditor::getUniqueHandlerName(KviRawTreeWidgetItem *it,QString &buffer) { - __range_valid(m_bOneTimeSetupDone); + KVI_ASSERT(m_bOneTimeSetupDone); QString newName = buffer; if(newName.isEmpty())newName = __tr2qs_ctx("unnamed","editor"); @@ -247,7 +247,7 @@ add_handler: void KviRawEditor::addHandlerForCurrentRaw() { - __range_valid(m_pOneTimeSetupDone); + KVI_ASSERT(m_bOneTimeSetupDone); KviRawTreeWidgetItem * it = (KviRawTreeWidgetItem *) m_pTreeWidget->currentItem(); if(it) @@ -268,7 +268,7 @@ void KviRawEditor::addHandlerForCurrentRaw() void KviRawEditor::removeCurrentHandler() { - __range_valid(m_pOneTimeSetupDone); + KVI_ASSERT(m_bOneTimeSetupDone); if(m_pLastEditedItem) { QTreeWidgetItem * it = m_pLastEditedItem; @@ -283,7 +283,7 @@ void KviRawEditor::removeCurrentHandler() void KviRawEditor::toggleCurrentHandlerEnabled() { - __range_valid(m_pOneTimeSetupDone); + KVI_ASSERT(m_bOneTimeSetupDone); if(m_pLastEditedItem) { m_pLastEditedItem->m_bEnabled = !(m_pLastEditedItem->m_bEnabled); @@ -329,7 +329,7 @@ void KviRawEditor::commit() void KviRawEditor::saveLastEditedItem() { - __range_valid(m_bOneTimeSetupDone); + KVI_ASSERT(m_bOneTimeSetupDone); if(!m_pLastEditedItem)return; QString buffer = m_pNameEditor->text(); @@ -349,7 +349,7 @@ void KviRawEditor::saveLastEditedItem() void KviRawEditor::currentItemChanged(QTreeWidgetItem * it,QTreeWidgetItem *) { - __range_valid(m_bOneTimeSetupDone); + KVI_ASSERT(m_bOneTimeSetupDone); saveLastEditedItem(); if(it->parent()) { |
