aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/raweditor/RawEditorWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/raweditor/RawEditorWindow.cpp')
-rw-r--r--src/modules/raweditor/RawEditorWindow.cpp33
1 files changed, 12 insertions, 21 deletions
diff --git a/src/modules/raweditor/RawEditorWindow.cpp b/src/modules/raweditor/RawEditorWindow.cpp
index 8de305fc2..e4b074682 100644
--- a/src/modules/raweditor/RawEditorWindow.cpp
+++ b/src/modules/raweditor/RawEditorWindow.cpp
@@ -25,7 +25,6 @@
#include "RawEditorWindow.h"
#include "KviIconManager.h"
-#include "KviIconManager.h"
#include "KviOptions.h"
#include "KviLocale.h"
#include "KviImageDialog.h"
@@ -149,37 +148,29 @@ void RawEditorWidget::customContextMenuRequested(const QPoint & pos)
if(it->parent())
{
if(!(((RawHandlerTreeWidgetItem *)it)->m_bEnabled))
- m_pContextPopup->addAction(
- *(g_pIconManager->getSmallIcon(KviIconManager::Handler)),
+ m_pContextPopup->addAction(*(g_pIconManager->getSmallIcon(KviIconManager::Handler)),
__tr2qs_ctx("&Enable Handler", "editor"), this, SLOT(toggleCurrentHandlerEnabled()));
else
- m_pContextPopup->addAction(
- *(g_pIconManager->getSmallIcon(KviIconManager::HandlerDisabled)),
+ m_pContextPopup->addAction(*(g_pIconManager->getSmallIcon(KviIconManager::HandlerDisabled)),
__tr2qs_ctx("&Disable Handler", "editor"), this, SLOT(toggleCurrentHandlerEnabled()));
- m_pContextPopup->addAction(
- *(g_pIconManager->getSmallIcon(KviIconManager::Discard)),
- __tr2qs_ctx("Re&move Handler", "editor"),
- this, SLOT(removeCurrentHandler()));
- m_pContextPopup->addAction(
- *(g_pIconManager->getSmallIcon(KviIconManager::Save)),
- __tr2qs_ctx("&Export Handler to...", "editor"),
- this, SLOT(exportCurrentHandler()));
+ m_pContextPopup->addAction(*(g_pIconManager->getSmallIcon(KviIconManager::Discard)),
+ __tr2qs_ctx("Re&move Handler", "editor"), this, SLOT(removeCurrentHandler()));
+
+ m_pContextPopup->addAction(*(g_pIconManager->getSmallIcon(KviIconManager::Save)),
+ __tr2qs_ctx("&Export Handler to...", "editor"), this, SLOT(exportCurrentHandler()));
}
else
{
- m_pContextPopup->addAction(
- *(g_pIconManager->getSmallIcon(KviIconManager::Handler)),
- __tr2qs_ctx("&New Handler", "editor"),
- this, SLOT(addHandlerForCurrentRaw()));
+ m_pContextPopup->addAction(*(g_pIconManager->getSmallIcon(KviIconManager::Handler)),
+ __tr2qs_ctx("&New Handler", "editor"), this, SLOT(addHandlerForCurrentRaw()));
}
}
m_pContextPopup->addSeparator();
- m_pContextPopup->addAction(
- *(g_pIconManager->getSmallIcon(KviIconManager::RawEvent)),
- __tr2qs_ctx("&Add RAW Event...", "editor"),
- this, SLOT(addRaw()));
+
+ m_pContextPopup->addAction(*(g_pIconManager->getSmallIcon(KviIconManager::RawEvent)),
+ __tr2qs_ctx("&Add RAW Event...", "editor"), this, SLOT(addRaw()));
m_pContextPopup->popup(mapToGlobal(QPoint(pos.x() + 15, pos.y())));
}