[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdewebdev
From: Andreas Hartmetz <ahartmetz () gmail ! com>
Date: 2006-11-24 16:39:34
Message-ID: 1164386374.673310.29963.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 607440 by ahartmetz:
Preparation for explicit constructors in KShortcut
M +10 -10 kimagemapeditor/kimagemapeditor.cpp
M +23 -23 kxsldbg/kxsldbgpart/kxsldbg_part.cpp
--- trunk/KDE/kdewebdev/kimagemapeditor/kimagemapeditor.cpp #607439:607440
@@ -476,7 +476,7 @@
// Edit Delete
deleteAction = new KAction(KIcon("editdelete"), i18n("&Delete"), \
actionCollection(), "edit_delete"); connect(deleteAction, SIGNAL(triggered(bool) ), \
SLOT (slotDelete()));
- deleteAction->setShortcut(Qt::Key_Delete);
+ deleteAction->setShortcut(QKeySequence(Qt::Key_Delete));
Q3MimeSourceFactory::defaultFactory()->setPixmap( "editdeleteimage", \
SmallIcon("editdelete") ); deleteAction->setWhatsThis(i18n("<h3>Delete</h3>"
"Click this to <em>delete</em> the selected area."));
@@ -619,39 +619,39 @@
KAction *action = new KAction(i18n("Cancel Drawing"), actionCollection(), \
"canceldrawing" ); connect(action, SIGNAL(triggered(bool)), SLOT( \
slotCancelDrawing() ));
- action->setShortcut(Qt::Key_Escape);
+ action->setShortcut(QKeySequence(Qt::Key_Escape));
moveLeftAction = new KAction(i18n("Move Left"), actionCollection(), "moveleft" );
connect(moveLeftAction, SIGNAL(triggered(bool)), SLOT( slotMoveLeft() ));
- moveLeftAction->setShortcut(Qt::Key_Left);
+ moveLeftAction->setShortcut(QKeySequence(Qt::Key_Left));
moveRightAction = new KAction(i18n("Move Right"), actionCollection(), "moveright" \
); connect(moveRightAction, SIGNAL(triggered(bool)), SLOT( slotMoveRight() ));
- moveRightAction->setShortcut(Qt::Key_Right);
+ moveRightAction->setShortcut(QKeySequence(Qt::Key_Right));
moveUpAction = new KAction(i18n("Move Up"), actionCollection(), "moveup" );
connect(moveUpAction, SIGNAL(triggered(bool)), SLOT( slotMoveUp() ));
- moveUpAction->setShortcut(Qt::Key_Up);
+ moveUpAction->setShortcut(QKeySequence(Qt::Key_Up));
moveDownAction = new KAction(i18n("Move Down"), actionCollection(), "movedown" );
connect(moveDownAction, SIGNAL(triggered(bool)), SLOT( slotMoveDown() ));
- moveDownAction->setShortcut(Qt::Key_Down);
+ moveDownAction->setShortcut(QKeySequence(Qt::Key_Down));
increaseWidthAction = new KAction(i18n("Increase Width"), actionCollection(), \
"increasewidth" ); connect(increaseWidthAction, SIGNAL(triggered(bool)), SLOT( \
slotIncreaseWidth() ));
- increaseWidthAction->setShortcut(Qt::Key_Right + Qt::SHIFT);
+ increaseWidthAction->setShortcut(QKeySequence(Qt::Key_Right + Qt::SHIFT));
decreaseWidthAction = new KAction(i18n("Decrease Width"), actionCollection(), \
"decreasewidth" ); connect(decreaseWidthAction, SIGNAL(triggered(bool)), SLOT( \
slotDecreaseWidth() ));
- decreaseWidthAction->setShortcut(Qt::Key_Left + Qt::SHIFT);
+ decreaseWidthAction->setShortcut(QKeySequence(Qt::Key_Left + Qt::SHIFT));
increaseHeightAction = new KAction(i18n("Increase Height"), actionCollection(), \
"increaseheight" ); connect(increaseHeightAction, SIGNAL(triggered(bool)), SLOT( \
slotIncreaseHeight() ));
- increaseHeightAction->setShortcut(Qt::Key_Up + Qt::SHIFT);
+ increaseHeightAction->setShortcut(QKeySequence(Qt::Key_Up + Qt::SHIFT));
decreaseHeightAction = new KAction(i18n("Decrease Height"), actionCollection(), \
"decreaseheight" ); connect(decreaseHeightAction, SIGNAL(triggered(bool)), SLOT( \
slotDecreaseHeight() ));
- decreaseHeightAction->setShortcut(Qt::Key_Down + Qt::SHIFT);
+ decreaseHeightAction->setShortcut(QKeySequence(Qt::Key_Down + Qt::SHIFT));
toFrontAction = new KAction(i18n("Bring to Front"), actionCollection(), "tofront" \
); connect(toFrontAction, SIGNAL(triggered(bool)), SLOT( slotToFront() ));
--- trunk/KDE/kdewebdev/kxsldbg/kxsldbgpart/kxsldbg_part.cpp #607439:607440
@@ -112,88 +112,88 @@
connect(action, SIGNAL(triggered(bool)), SLOT(configureEditorCmd_activated()));
action = new KAction(KIcon("configure"), i18n("Configure..."), \
actionCollection(), "configureCmd" ); connect(action, SIGNAL(triggered(bool)), \
SLOT(configureCmd_activated()));
- action->setShortcut(Qt::Key_C);
+ action->setShortcut(QKeySequence(Qt::Key_C));
action = new KAction(KIcon("find"), i18n("Inspect..."), actionCollection(), \
"inspectCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(inspectorCmd_activated()));
- action->setShortcut(Qt::Key_I);
+ action->setShortcut(QKeySequence(Qt::Key_I));
// Motions commands
action = new KAction(KIcon("run"), i18n("Run"), actionCollection(), "runCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(runCmd_activated()));
- action->setShortcut(Qt::Key_F5);
+ action->setShortcut(QKeySequence(Qt::Key_F5));
action = new KAction(KIcon("1downarrow"), i18n("Continue"), actionCollection(), \
"continueCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(continueCmd_activated()));
- action->setShortcut(Qt::Key_F4);
+ action->setShortcut(QKeySequence(Qt::Key_F4));
action = new KAction(KIcon("step"), i18n("Step"), actionCollection(), "stepCmd" \
); connect(action, SIGNAL(triggered(bool)), SLOT(stepCmd_activated()));
- action->setShortcut(Qt::Key_F8);
+ action->setShortcut(QKeySequence(Qt::Key_F8));
action = new KAction(KIcon("next"), i18n("Next"), actionCollection(), "nextCmd" \
); connect(action, SIGNAL(triggered(bool)), SLOT(nextCmd_activated()));
- action->setShortcut(Qt::Key_F10);
+ action->setShortcut(QKeySequence(Qt::Key_F10));
action = new KAction(KIcon("xsldbg_stepup"), i18n("Step Up"), \
actionCollection(), "stepupCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(stepupCmd_activated()));
- action->setShortcut(Qt::Key_F6);
+ action->setShortcut(QKeySequence(Qt::Key_F6));
action = new KAction(KIcon("xsldbg_stepdown"), i18n("Step Down"), \
actionCollection(), "stepdownCmd" ); connect(action, SIGNAL(triggered(bool)), \
SLOT(stepCmd_activated()));
- action->setShortcut(Qt::Key_F7);
+ action->setShortcut(QKeySequence(Qt::Key_F7));
// Breakpoint commands
action = new KAction(KIcon("xsldbg_break"), i18n("Break"), actionCollection(), \
"breakCmd" ); connect(action, SIGNAL(triggered(bool)), SLOT(breakCmd_activated()));
- action->setShortcut(Qt::Key_F2);
+ action->setShortcut(QKeySequence(Qt::Key_F2));
action = new KAction(KIcon("xsldbg_enable"), i18n("Enable/Disable"), \
actionCollection(), "enableCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(enableCmd_activated()));
- action->setShortcut(Qt::Key_F3);
+ action->setShortcut(QKeySequence(Qt::Key_F3));
action = new KAction(KIcon("xsldbg_delete"), i18n("Delete"), \
actionCollection(), "deleteCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(deleteCmd_activated()));
- action->setShortcut(Qt::Key_Delete);
+ action->setShortcut(QKeySequence(Qt::Key_Delete));
action = new KAction(KIcon("xsldbg_source"), i18n("&Source"), \
actionCollection(), "sourceCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(sourceCmd_activated()));
- action->setShortcut(Qt::Key_S);
+ action->setShortcut(QKeySequence(Qt::Key_S));
action = new KAction(KIcon("xsldbg_data"), i18n("&Data"), actionCollection(), \
"dataCmd" ); connect(action, SIGNAL(triggered(bool)), SLOT(dataCmd_activated()));
- action->setShortcut(Qt::Key_D);
+ action->setShortcut(QKeySequence(Qt::Key_D));
action = new KAction(KIcon("xsldbg_output"), i18n("&Output"), \
actionCollection(), "outputCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(outputCmd_activated()));
- action->setShortcut(Qt::Key_O);
+ action->setShortcut(QKeySequence(Qt::Key_O));
action = new KAction(KIcon("xsldbg_refresh"), i18n("Reload Current File From \
Disk"), actionCollection(), "refreshCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(refreshCmd_activated()));
- action->setShortcut(Qt::CTRL + Qt::Key_F5);
+ action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_F5);
/* tracing and walking */
action = new KAction( i18n("Walk Through Stylesheet..."), actionCollection(), \
"walkCmd" ); connect(action, SIGNAL(triggered(bool)), SLOT(walkCmd_activated()));
- action->setShortcut(Qt::Key_W);
+ action->setShortcut(QKeySequence(Qt::Key_W));
action = new KAction( i18n("Stop Wal&king Through Stylesheet"), \
actionCollection(), "walkStopCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(walkStopCmd_activated()));
- action->setShortcut(Qt::Key_K);
+ action->setShortcut(QKeySequence(Qt::Key_K));
action = new KAction( i18n("Tr&ace Execution of Stylesheet"), \
actionCollection(), "traceCmd" ); connect(action, SIGNAL(triggered(bool)), \
SLOT(traceCmd_activated()));
- action->setShortcut(Qt::Key_A);
+ action->setShortcut(QKeySequence(Qt::Key_A));
action = new KAction( i18n("Stop Tracing of Stylesheet"), actionCollection(), \
"traceStopCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(traceStopCmd_activated()));
- action->setShortcut(Qt::Key_K);
+ action->setShortcut(QKeySequence(Qt::Key_K));
action = new KAction( i18n("&Evaluate Expression..."), actionCollection(), \
"evaluateCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(evaluateCmd_activated()));
- action->setShortcut(Qt::Key_E);
+ action->setShortcut(QKeySequence(Qt::Key_E));
action = new KAction( i18n("Goto &XPath..."), actionCollection(), "gotoXPathCmd" \
);
connect(action, SIGNAL(triggered(bool)), SLOT(gotoXPathCmd_activated()));
- action->setShortcut(Qt::Key_X);
+ action->setShortcut(QKeySequence(Qt::Key_X));
action = new KAction( i18n("Lookup SystemID..."), actionCollection(), \
"lookupSystemID" ); connect(action, SIGNAL(triggered(bool)), \
SLOT(slotLookupSystemID())); @@ -203,13 +203,13 @@
action = new KAction( i18n("Quit"), actionCollection(), "file_quit" );
connect(action, SIGNAL(triggered(bool)), SLOT(quit()));
- action->setShortcut(Qt::CTRL + Qt::Key_Q);
+ action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
/*
action = new KAction( i18n("Exit KXsldbg"),
"xsldbg_output", actionCollection(), "exitCmd" );
connect(action, SIGNAL(triggered(bool)), SLOT(exitCmd_activated()));
- action->setShortcut(CTRL + Key_Q);
+ action->setShortcut(QKeySequence(CTRL + Key_Q));
*/
connect( xPathBtn, SIGNAL( clicked() ),
this, SLOT( slotGotoXPath() ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic